- المحور السيني = الصورة المصنّفة حسب xProperty (القيمة التلقائية: 'system:time_start').
- المحور Y = ناتج المخفّض.
- السلسلة = المنطقة المصنّفة حسب السمة seriesProperty (القيمة التلقائية: 'system:index').
تعرض هذه الدالة رسمًا بيانيًا.
الاستخدام | المرتجعات |
---|---|
ui.Chart.image.seriesByRegion(imageCollection, regions, reducer, band, scale, xProperty, seriesProperty) | ui.Chart |
الوسيطة | النوع | التفاصيل |
---|---|---|
imageCollection | ImageCollection | ImageCollection يتضمّن البيانات التي سيتم تضمينها في الرسم البياني. |
regions | Feature|FeatureCollection|Geometry|List<Feature>|List<Geometry> | المناطق التي سيتم تقليلها. |
reducer | Reducer | الدالة المخفِّضة التي تنشئ قيمة المحور y. يجب أن تعرض قيمة واحدة. |
band | Number|String, optional | اسم النطاق المراد تقليله باستخدام أداة التقليل. يتم ضبطها تلقائيًا على النطاق الأول. |
scale | رقم، اختياري | المقياس الذي سيتم استخدامه مع أداة تقليل الدقة بالمتر |
xProperty | سلسلة، اختياري | السمة التي سيتم استخدامها كتسمية لكل صورة على المحور س القيمة التلقائية هي "system:time_start". |
seriesProperty | سلسلة، اختياري | سمة العناصر في opt_regions التي سيتم استخدامها لتصنيفات السلسلة القيمة التلقائية هي "system:index". |
أمثلة
محرّر الرموز البرمجية (JavaScript)
// Define regions of pixels to reduce and chart a time series for. var regions = ee.FeatureCollection([ ee.Feature( ee.Geometry.BBox(-121.916, 37.130, -121.844, 37.076), {label: 'Forest'}), ee.Feature( ee.Geometry.BBox(-122.438, 37.765, -122.396, 37.800), {label: 'Urban'}) ]); // 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.seriesByRegion({ imageCollection: imgCol, band: 'NDVI', regions: regions, reducer: ee.Reducer.mean(), scale: 500, seriesProperty: 'label', xProperty: 'system:time_start' }) .setOptions({ title: 'Average NDVI Value by Date', hAxis: {title: 'Date', titleTextStyle: {italic: false, bold: true}}, vAxis: { title: 'NDVI (x1e4)', titleTextStyle: {italic: false, bold: true} }, lineWidth: 5, colors: ['0f8755', '808080'], }); print(chart);