공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.ImageCollection.filter
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이 컬렉션에 필터를 적용합니다.
필터링된 컬렉션을 반환합니다.
사용 | 반환 값 |
---|
ImageCollection.filter(filter) | 컬렉션 |
인수 | 유형 | 세부정보 |
---|
다음과 같은 경우: collection | 컬렉션 | 컬렉션 인스턴스입니다. |
filter | 필터 | 이 컬렉션에 적용할 필터입니다. |
예
코드 편집기 (JavaScript)
// The GOES Mesoscale images come in two domains.
// Separate the two groups using ee.Filter.eq.
var goes17_mcmipm = ee.ImageCollection('NOAA/GOES/17/MCMIPM');
var goes17_mcmipm_day =
goes17_mcmipm.filterDate('2020-09-26', '2020-09-27');
var d1 = goes17_mcmipm_day.filter('domain == 1');
var d2 = goes17_mcmipm_day.filter('domain == 2');
// domain 3 does not exist.
var d3 = goes17_mcmipm_day.filter('domain == 3');
print(goes17_mcmipm_day.size());
print(d1.size());
print(d2.size());
print(d3.size());
Python 설정
Python API 및 geemap
를 사용한 대화형 개발에 관한 자세한 내용은
Python 환경 페이지를 참고하세요.
import ee
import geemap.core as geemap
Colab (Python)
# The GOES Mesoscale images come in two domains.
# Separate the two groups using ee.Filter.eq.
goes17_mcmipm = ee.ImageCollection('NOAA/GOES/17/MCMIPM')
goes17_mcmipm_day = goes17_mcmipm.filterDate('2020-09-26', '2020-09-27')
d1 = goes17_mcmipm_day.filter('domain == 1')
d2 = goes17_mcmipm_day.filter('domain == 2')
# domain 3 does not exist.
d3 = goes17_mcmipm_day.filter('domain == 3')
print(goes17_mcmipm_day.size().getInfo())
print(d1.size().getInfo())
print(d2.size().getInfo())
print(d3.size().getInfo())
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003e\u003ccode\u003eImageCollection.filter()\u003c/code\u003e allows you to apply a filter to an ImageCollection, resulting in a new collection containing only the images that match the filter criteria.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003efilter\u003c/code\u003e argument accepts a Filter object, such as one created with \u003ccode\u003eee.Filter.eq\u003c/code\u003e, to define the filtering conditions.\u003c/p\u003e\n"],["\u003cp\u003eThis method is useful for subsetting collections based on properties like date, metadata, or image content.\u003c/p\u003e\n"],["\u003cp\u003eApplying a filter with criteria that no images satisfy will return an empty collection.\u003c/p\u003e\n"]]],[],null,["# ee.ImageCollection.filter\n\n\u003cbr /\u003e\n\nApply a filter to this collection.\n\n\u003cbr /\u003e\n\nReturns the filtered collection.\n\n| Usage | Returns |\n|----------------------------------|------------|\n| ImageCollection.filter`(filter)` | Collection |\n\n| Argument | Type | Details |\n|--------------------|------------|---------------------------------------|\n| this: `collection` | Collection | The Collection instance. |\n| `filter` | Filter | A filter to apply to this collection. |\n\nExamples\n--------\n\n### Code Editor (JavaScript)\n\n```javascript\n// The GOES Mesoscale images come in two domains.\n// Separate the two groups using ee.Filter.eq.\nvar goes17_mcmipm = ee.ImageCollection('NOAA/GOES/17/MCMIPM');\nvar goes17_mcmipm_day =\n goes17_mcmipm.filterDate('2020-09-26', '2020-09-27');\n\nvar d1 = goes17_mcmipm_day.filter('domain == 1');\nvar d2 = goes17_mcmipm_day.filter('domain == 2');\n// domain 3 does not exist.\nvar d3 = goes17_mcmipm_day.filter('domain == 3');\n\nprint(goes17_mcmipm_day.size());\nprint(d1.size());\nprint(d2.size());\nprint(d3.size());\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\n# The GOES Mesoscale images come in two domains.\n# Separate the two groups using ee.Filter.eq.\ngoes17_mcmipm = ee.ImageCollection('NOAA/GOES/17/MCMIPM')\ngoes17_mcmipm_day = goes17_mcmipm.filterDate('2020-09-26', '2020-09-27')\n\nd1 = goes17_mcmipm_day.filter('domain == 1')\nd2 = goes17_mcmipm_day.filter('domain == 2')\n# domain 3 does not exist.\nd3 = goes17_mcmipm_day.filter('domain == 3')\n\nprint(goes17_mcmipm_day.size().getInfo())\nprint(d1.size().getInfo())\nprint(d2.size().getInfo())\nprint(d3.size().getInfo())\n```"]]