/**
 * 卫星影像服务类型定义
 */

export interface SatelliteImage {
  id: string;
  date: string;
  source: string;
  resolution: number;
  cloudCover: number;
  ndvi: number;
  evi: number;
  lai: number;
  season: string;
  thumbnail: string;
  url: string;
}

export interface ImageComparisonResult {
  image1: SatelliteImage;
  image2: SatelliteImage;
  ndviChange: number;
  eviChange: number;
  changeType: 'improvement' | 'decline' | 'stable';
  changeDescription: string;
  recommendations: string[];
}

export interface TimeSeriesAnalysis {
  dates: string[];
  ndviValues: number[];
  trend: 'increasing' | 'decreasing' | 'stable' | 'fluctuating';
  growthStage: string;
  healthScore: string;
  alerts: string[];
}

export interface DataSource {
  name: string;
  resolution: string;
  description: string;
  provider: string;
}

export const DATA_SOURCES: Record<string, DataSource> = {
  'Sentinel-2': {
    name: 'Sentinel-2',
    resolution: '10',
    description: '欧洲航天局，高分辨率多光谱成像',
    provider: 'ESA'
  },
  'Landsat-8': {
    name: 'Landsat-8',
    resolution: '30',
    description: '美国地质调查局，中分辨率多光谱成像',
    provider: 'USGS'
  },
  'MODIS': {
    name: 'MODIS',
    resolution: '250',
    description: '中分辨率成像光谱仪，每日覆盖',
    provider: 'NASA'
  },
  '高分一号': {
    name: '高分一号',
    resolution: '8',
    description: '中国高分系列，高分辨率光学卫星',
    provider: 'CNSA'
  },
  '天地图': {
    name: '天地图',
    resolution: '2',
    description: '中国国产卫星影像服务',
    provider: 'NASG'
  }
};