이는 this.filter(ee.Filter.date(...))와 동일합니다. 다른 날짜 필터링 옵션은 ee.Filter 유형을 참고하세요.
필터링된 컬렉션을 반환합니다.
| 사용 | 반환 값 | 
|---|---|
| ImageCollection.filterDate(start, end) | 컬렉션 | 
| 인수 | 유형 | 세부정보 | 
|---|---|---|
| 다음과 같은 경우: collection | 컬렉션 | 컬렉션 인스턴스입니다. | 
| start | 날짜|숫자|문자열 | 시작일 (해당 날짜 포함)입니다. | 
| end | 날짜|숫자|문자열(선택사항) | 종료일 (해당 날짜 제외)입니다. 선택사항입니다. 지정하지 않으면 'start'에서 시작하는 1밀리초 범위가 생성됩니다. | 
예
코드 편집기 (JavaScript)
// 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 (Python)
# 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. display('2020 images:', col.filterDate('2020', '2021')) display('July images, 2020:', col.filterDate('2020-07', '2020-08')) display('Early July images, 2020:', col.filterDate('2020-07-01', '2020-07-10')) display('Include time (13 hours, July 7, 2020):', col.filterDate('2020-07-05T06:34:46', '2020-07-05T19:34:46')) # Use milliseconds since Unix epoch. display('Milliseconds inputs:', col.filterDate(1593967014062, 1595349419611)) # Use ee.Date objects. display('ee.Date inputs', col.filterDate(ee.Date('2020'), ee.Date('2021'))) # Use an ee.DateRange object. date_range = ee.DateRange('2020-07-01', '2020-07-10') display('ee.DateRange input', col.filterDate(date_range))