- X-ऐक्सिस = 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 | रिड्यूसर | y-ऐक्सिस के लिए वैल्यू जनरेट करने वाला रिड्यूसर. इससे एक ही वैल्यू मिलनी चाहिए. |
band | Number|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);