ee.Filter.calendarRange

এমন একটি ফিল্টার দেখায় যা অবজেক্টের টাইমস্ট্যাম্প ক্যালেন্ডার ফিল্ডের প্রদত্ত রেঞ্জের মধ্যে থাকলে পাস করে। month, day_of_year, day_of_month এবং day_of_week ১-ভিত্তিক। সময় UTC-তে দেখানো হয়েছে বলে ধরে নেওয়া হয়েছে। সপ্তাহের প্রথম দিন হিসেবে সোমবারকে ধরা হয়।

end < start হলে, এটি value >= start অথবা value <= end-এর জন্য পরীক্ষা করে, যাতে র‍্যাপিংয়ের অনুমতি দেওয়া যায়।

ব্যবহাররিটার্ন
ee.Filter.calendarRange(start, end, field)ফিল্টার
আর্গুমেন্টধরনবিবরণ
startপূর্ণসংখ্যাকাঙ্খিত ক্যালেন্ডার ফিল্ডের শুরু, অন্তর্ভুক্ত।
endপূর্ণসংখ্যা, ডিফল্ট: nullপছন্দসই ক্যালেন্ডার ফিল্ডের শেষ, ইনক্লুসিভ। শুরুর মতো একই ভ্যালুতে ডিফল্ট হয়।
fieldস্ট্রিং, ডিফল্ট: "day_of_year"ক্যালেন্ডারের যে ফিল্ডে ফিল্টার প্রয়োগ করা হবে। বিকল্পগুলি হল: `year`, `month`, `hour`, `minute`, `day_of_year`, `day_of_month` এবং `day_of_week`।

উদাহরণ

কোড এডিটর (জাভাস্ক্রিপ্ট)

// A Sentinel-2 surface reflectance image collection intersecting the peak of
// Mount Shasta, California, USA.
var ic = ee.ImageCollection('COPERNICUS/S2_SR_HARMONIZED')
             .filterBounds(ee.Geometry.Point(-122.196, 41.411));

print('Images for a month range (June-August)',
      ic.filter(ee.Filter.calendarRange(6, 8, 'month')));

print('A start value greater than end value is valid (Dec-Feb)',
      ic.filter(ee.Filter.calendarRange(12, 2, 'month')));

// This example uses the 'year' field value. Note that ee.Filter.date is the
// preferred method when filtering by whole years, as it is much faster.
print('Images for a year range (2020-2021)',
      ic.filter(ee.Filter.calendarRange(2020, 2021, 'year')));

// This example uses the 'day_of_year' field value. Note that
// ee.Filter.dayOfYear is the preferred method for filtering by DOY.
// The ee.Date.getRelative function is used to identify DOY from an ee.Date
// object for a representative year. Be mindful of leap years when filtering
// by DOY.
var startDoy = ee.Date('2000-06-01').getRelative('day', 'year');
var endDoy = ee.Date('2000-06-15').getRelative('day', 'year');
print('start DOY =', startDoy,
      'end DOY =', endDoy,
      'Images for a day-of-year range',
      ic.filter(ee.Filter.calendarRange(startDoy, endDoy, 'day_of_year')));

Python সেট-আপ

Python API এবং ইন্টার‍্যাক্টিভ ডেভেলপমেন্টের জন্য geemap ব্যবহার করা সম্পর্কে তথ্যের জন্য Python এনভায়রনমেন্ট পৃষ্ঠা দেখুন।

import ee
import geemap.core as geemap

Colab (Python)

# A Sentinel-2 surface reflectance image collection intersecting the peak of
# Mount Shasta, California, USA.
ic = ee.ImageCollection('COPERNICUS/S2_SR_HARMONIZED').filterBounds(
    ee.Geometry.Point(-122.196, 41.411))

display('Images for a month range (June-August):',
        ic.filter(ee.Filter.calendarRange(6, 8, 'month')))

display('A start value greater than end value is valid (Dec-Feb):',
        ic.filter(ee.Filter.calendarRange(12, 2, 'month')).size())

# This example uses the 'year' field value. Note that ee.Filter.date is the
# preferred method when filtering by whole years, as it is much faster.
display('Images for a year range (2020-2021):',
        ic.filter(ee.Filter.calendarRange(2020, 2021, 'year')).size())

# This example uses the 'day_of_year' field value. Note that
# ee.Filter.dayOfYear is the preferred method for filtering by DOY.
# The ee.Date.getRelative function is used to identify DOY from an ee.Date
# object for a representative year. Be mindful of leap years when filtering
# by DOY.
start_doy = ee.Date('2000-06-01').getRelative('day', 'year')
end_doy = ee.Date('2000-06-15').getRelative('day', 'year')
display('start DOY =', start_doy, 'end DOY =', end_doy)
display(
    'Images for a day-of-year range:',
    ic.filter(ee.Filter.calendarRange(start_doy, end_doy, 'day_of_year'))
)