- X-axis = xProperty দ্বারা লেবেল করা ছবি (ডিফল্ট: 'system:time_start')।
- Y-অক্ষ = হ্রাসকারী আউটপুট।
- সিরিজ = সিরিজ প্রোপার্টি দ্বারা লেবেল করা অঞ্চল (ডিফল্ট: 'সিস্টেম: ইনডেক্স')।
একটি চার্ট প্রদান করে।
ব্যবহার | রিটার্নস |
---|---|
ui.Chart.image.seriesByRegion(imageCollection, regions, reducer, band , scale , xProperty , seriesProperty ) | ui.চার্ট |
যুক্তি | টাইপ | বিস্তারিত |
---|---|---|
imageCollection | ইমেজ কালেকশন | চার্টে অন্তর্ভুক্ত করা ডেটা সহ একটি চিত্র সংগ্রহ। |
regions | বৈশিষ্ট্য|ফিচার সংগ্রহ | অঞ্চলগুলি কমাতে হবে। |
reducer | হ্রাসকারী | হ্রাসকারী যা y-অক্ষের জন্য মান তৈরি করে। একটি একক মান ফেরত দিতে হবে। |
band | সংখ্যা|স্ট্রিং, ঐচ্ছিক | ব্যান্ডের নাম রিডুসার ব্যবহার করে কমাতে হবে। প্রথম ব্যান্ডে ডিফল্ট। |
scale | নম্বর, ঐচ্ছিক | মিটারে রিডুসারের সাথে ব্যবহার করার জন্য স্কেল। |
xProperty | স্ট্রিং, ঐচ্ছিক | x-অক্ষের প্রতিটি চিত্রের জন্য লেবেল হিসাবে ব্যবহার করা সম্পত্তি। ডিফল্ট 'system:time_start'। |
seriesProperty | স্ট্রিং, ঐচ্ছিক | সিরিজ লেবেলের জন্য ব্যবহার করা opt_regions-এর বৈশিষ্ট্যের বৈশিষ্ট্য। ডিফল্ট 'system:index'। |
উদাহরণ
কোড এডিটর (জাভাস্ক্রিপ্ট)
// 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);