এটি this.filter(ee.Filter.date(...)) এর সমতুল্য; অন্যান্য তারিখ ফিল্টারিং বিকল্পের জন্য ee.ফিল্টার প্রকার দেখুন।
ফিল্টার করা সংগ্রহ ফেরত দেয়।
ব্যবহার | রিটার্নস |
---|---|
ImageCollection. filterDate (start, end ) | সংগ্রহ |
যুক্তি | টাইপ | বিস্তারিত |
---|---|---|
এই: collection | সংগ্রহ | সংগ্রহের উদাহরণ। |
start | তারিখ|সংখ্যা|স্ট্রিং | শুরুর তারিখ (সমেত)। |
end | তারিখ|সংখ্যা|স্ট্রিং, ঐচ্ছিক | শেষ তারিখ (একচেটিয়া)। ঐচ্ছিক। নির্দিষ্ট করা না থাকলে, 'স্টার্ট' থেকে শুরু হওয়া একটি 1-মিলিসেকেন্ড পরিসর তৈরি করা হয়। |
উদাহরণ
কোড এডিটর (জাভাস্ক্রিপ্ট)
// A Landsat 8 TOA image collection intersecting a specific point. var col = ee.ImageCollection('LANDSAT/LC08/C02/T1_TOA') .filterBounds(ee.Geometry.Point(-90.70, 34.71)); // Filter the collection by date using date strings. print('2020 images', col.filterDate('2020', '2021')); print('July images, 2020', col.filterDate('2020-07', '2020-08')); print('Early July images, 2020', col.filterDate('2020-07-01', '2020-07-10')); print('Include time (13 hours, July 7, 2020)', col.filterDate('2020-07-05T06:34:46', '2020-07-05T19:34:46')); // Use milliseconds since Unix epoch. print('Milliseconds inputs', col.filterDate(1593967014062, 1595349419611)); // Use ee.Date objects. print('ee.Date inputs', col.filterDate(ee.Date('2020'), ee.Date('2021'))); // Use an ee.DateRange object. var dateRange = ee.DateRange('2020-07-01', '2020-07-10'); print('ee.DateRange input', col.filterDate(dateRange));
import ee import geemap.core as geemap
Colab (পাইথন)
# A Landsat 8 TOA image collection intersecting a specific point. col = ee.ImageCollection('LANDSAT/LC08/C02/T1_TOA').filterBounds( ee.Geometry.Point(-90.70, 34.71)) # Filter the collection by date using date strings. print('2020 images:', col.filterDate('2020', '2021').getInfo()) print('July images, 2020:', col.filterDate('2020-07', '2020-08').getInfo()) print('Early July images, 2020:', col.filterDate('2020-07-01', '2020-07-10').getInfo()) print('Include time (13 hours, July 7, 2020):', col.filterDate('2020-07-05T06:34:46', '2020-07-05T19:34:46').getInfo()) # Use milliseconds since Unix epoch. print('Milliseconds inputs:', col.filterDate(1593967014062, 1595349419611).getInfo()) # Use ee.Date objects. print('ee.Date inputs', col.filterDate(ee.Date('2020'), ee.Date('2021')).getInfo()) # Use an ee.DateRange object. date_range = ee.DateRange('2020-07-01', '2020-07-10') print('ee.DateRange input', col.filterDate(date_range).getInfo())
এটি this.filter(ee.Filter.date(...)) এর সমতুল্য; অন্যান্য তারিখ ফিল্টারিং বিকল্পের জন্য ee.ফিল্টার প্রকার দেখুন।
ফিল্টার করা সংগ্রহ ফেরত দেয়।
ব্যবহার | রিটার্নস |
---|---|
ImageCollection. filterDate (start, end ) | সংগ্রহ |
যুক্তি | টাইপ | বিস্তারিত |
---|---|---|
এই: collection | সংগ্রহ | সংগ্রহের উদাহরণ। |
start | তারিখ|সংখ্যা|স্ট্রিং | শুরুর তারিখ (সমেত)। |
end | তারিখ|সংখ্যা|স্ট্রিং, ঐচ্ছিক | শেষ তারিখ (একচেটিয়া)। ঐচ্ছিক। নির্দিষ্ট করা না থাকলে, 'স্টার্ট' থেকে শুরু হওয়া একটি 1-মিলিসেকেন্ড পরিসর তৈরি করা হয়। |
উদাহরণ
কোড এডিটর (জাভাস্ক্রিপ্ট)
// A Landsat 8 TOA image collection intersecting a specific point. var col = ee.ImageCollection('LANDSAT/LC08/C02/T1_TOA') .filterBounds(ee.Geometry.Point(-90.70, 34.71)); // Filter the collection by date using date strings. print('2020 images', col.filterDate('2020', '2021')); print('July images, 2020', col.filterDate('2020-07', '2020-08')); print('Early July images, 2020', col.filterDate('2020-07-01', '2020-07-10')); print('Include time (13 hours, July 7, 2020)', col.filterDate('2020-07-05T06:34:46', '2020-07-05T19:34:46')); // Use milliseconds since Unix epoch. print('Milliseconds inputs', col.filterDate(1593967014062, 1595349419611)); // Use ee.Date objects. print('ee.Date inputs', col.filterDate(ee.Date('2020'), ee.Date('2021'))); // Use an ee.DateRange object. var dateRange = ee.DateRange('2020-07-01', '2020-07-10'); print('ee.DateRange input', col.filterDate(dateRange));
import ee import geemap.core as geemap
Colab (পাইথন)
# A Landsat 8 TOA image collection intersecting a specific point. col = ee.ImageCollection('LANDSAT/LC08/C02/T1_TOA').filterBounds( ee.Geometry.Point(-90.70, 34.71)) # Filter the collection by date using date strings. print('2020 images:', col.filterDate('2020', '2021').getInfo()) print('July images, 2020:', col.filterDate('2020-07', '2020-08').getInfo()) print('Early July images, 2020:', col.filterDate('2020-07-01', '2020-07-10').getInfo()) print('Include time (13 hours, July 7, 2020):', col.filterDate('2020-07-05T06:34:46', '2020-07-05T19:34:46').getInfo()) # Use milliseconds since Unix epoch. print('Milliseconds inputs:', col.filterDate(1593967014062, 1595349419611).getInfo()) # Use ee.Date objects. print('ee.Date inputs', col.filterDate(ee.Date('2020'), ee.Date('2021')).getInfo()) # Use an ee.DateRange object. date_range = ee.DateRange('2020-07-01', '2020-07-10') print('ee.DateRange input', col.filterDate(date_range).getInfo())