ui.Chart.image.seriesByRegion

यह फ़ंक्शन, इमेज के कलेक्शन से चार्ट जनरेट करता है. यह फ़ंक्शन, कलेक्शन में मौजूद हर इमेज के लिए, हर इलाके में मौजूद बैंड की वैल्यू को निकालता है और उसे प्लॉट करता है. आम तौर पर, यह टाइम सीरीज़ होती है.

  - X-ऐक्सिस = xProperty के हिसाब से लेबल की गई इमेज (डिफ़ॉल्ट: 'system:time_start').

  - Y-ऐक्सिस = रिड्यूसर का आउटपुट.

  - Series = Region labeled by seriesProperty (default: 'system:index').

यह फ़ंक्शन, एक चार्ट दिखाता है.

इस्तेमालरिटर्न
ui.Chart.image.seriesByRegion(imageCollection, regions, reducer, band, scale, xProperty, seriesProperty)ui.Chart
आर्ग्यूमेंटटाइपविवरण
imageCollectionImageCollectionचार्ट में शामिल किए जाने वाले डेटा के साथ ImageCollection.
regionsFeature|FeatureCollection|Geometry|List[Feature]|List[Geometry]कम किए जाने वाले क्षेत्र.
reducerरेड्यूसरयह रिड्यूसर, y-ऐक्सिस के लिए वैल्यू जनरेट करता है. इससे एक वैल्यू मिलनी चाहिए.
bandNumber|String, optionalबैंड का नाम, जिसे रिड्यूसर का इस्तेमाल करके कम करना है. डिफ़ॉल्ट रूप से, यह पहले बैंड पर सेट होता है.
scaleनंबर, ज़रूरी नहींमीटर में रिड्यूसर के साथ इस्तेमाल करने के लिए स्केल.
xPropertyस्ट्रिंग, ज़रूरी नहींइस प्रॉपर्टी का इस्तेमाल, x-ऐक्सिस पर मौजूद हर इमेज के लेबल के तौर पर किया जाता है. डिफ़ॉल्ट रूप से, इसकी वैल्यू '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);