ui.Chart.image.series

יוצרת תרשים מ-ImageCollection. הפונקציה יוצרת תרשים של ערכים נגזרים של כל פס באזור על פני תמונות. בדרך כלל סדרת זמן.

  – ציר ה-X: תמונה, עם תווית לפי הערך של xProperty.

  – ציר ה-Y: ערך הטווח.

  – סדרה: שמות של להקות.

מחזירה תרשים.

שימושהחזרות
ui.Chart.image.series(imageCollection, region, reducer, scale, xProperty)ui.Chart
ארגומנטסוגפרטים
imageCollectionImageCollection‫ImageCollection עם נתונים שייכללו בתרשים.
regionFeature|FeatureCollection|Geometryהאזור לצמצום.
reducerסף הפרשי גובה, אופציונליפונקציית Reducer שיוצרת את הערכים לציר ה-y. הפונקציה צריכה להחזיר ערך יחיד. ברירת המחדל היא ee.Reducer.mean().
scaleמספר, אופציונליהקנה מידה לשימוש עם הפונקציה לצמצום הנתונים במטרים.
xPropertyמחרוזת, אופציונליהמאפיין שישמש כתווית לכל תמונה בציר ה-X. ברירת המחדל היא 'system:time_start'.

דוגמאות

עורך הקוד (JavaScript)

// Define a region of pixels to reduce and chart a time series for.
var region = ee.Geometry.BBox(-121.916, 37.130, -121.844, 37.076);

// Define an image collection time series to chart, MODIS vegetation indices
// in this case.
var imgCol = ee.ImageCollection('MODIS/006/MOD13A1')
  .filter(ee.Filter.date('2015-01-01', '2020-01-01'))
  .select(['NDVI', 'EVI']);

// Define the chart and print it to the console.
var chart = ui.Chart.image.series({
  imageCollection: imgCol,
  region: region,
  reducer: ee.Reducer.mean(),
  scale: 500,
  xProperty: 'system:time_start'
})
.setSeriesNames(['EVI', 'NDVI'])
.setOptions({
  title: 'Average Vegetation Index Value by Date',
  hAxis: {title: 'Date', titleTextStyle: {italic: false, bold: true}},
  vAxis: {
    title: 'Vegetation index (x1e4)',
    titleTextStyle: {italic: false, bold: true}
  },
  lineWidth: 5,
  colors: ['e37d05', '1d6b99'],
  curveType: 'function'
});
print(chart);