ui.Chart.image.seriesByRegion

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

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

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

  - सीरीज़ = seriesProperty से लेबल किया गया क्षेत्र (डिफ़ॉल्ट: '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);