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مخفض، اختياريالدالة المخفِّضة التي تنشئ قيم المحور y يجب أن تعرض قيمة واحدة. القيمة التلقائية هي ee.Reducer.mean().
scaleرقم، اختياريالمقياس الذي سيتم استخدامه مع أداة تقليل الدقة بالمتر
xPropertyسلسلة، اختياريالسمة التي سيتم استخدامها كتسمية لكل صورة على المحور س القيمة التلقائية هي "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);