공지사항: 
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 액세스 권한을 유지하기 위해 
비상업용 자격 요건을 인증해야 합니다. 2025년 9월 26일까지 인증하지 않으면 액세스가 보류될 수 있습니다.
  
        
 
       
     
  
  
  
    
  
  
  
    
      ee.List.filter
    
    
      
    
    
      
      컬렉션을 사용해 정리하기
    
    
      
      내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
  
  
지정된 필터와 일치하는 요소로만 목록을 필터링합니다. 이미지나 지형지물이 아닌 목록 항목을 필터링하려면 'item'이라는 속성을 테스트합니다(예: ee.Filter.gt('item', 3)).
| 사용 | 반환 값 | 
|---|
| List.filter(filter) | 목록 | 
| 인수 | 유형 | 세부정보 | 
|---|
| this: list | 목록 |  | 
| filter | 필터 |  | 
  
  
  예
  
    
  
  
    
    
  
  
  
  
    
    
    
      코드 편집기 (JavaScript)
    
    
  // An ee.Image list object.
var list = ee.List([1, 2, 3, null, 6, 7]);
// Filter the list by a variety of conditions. Note that the property name
// 'item' is used to refer to list elements in ee.Filter functions.
print('List items equal to 3',
      list.filter(ee.Filter.eq('item', 3)));
print('List items greater than 4',
      list.filter(ee.Filter.gt('item', 4)));
print('List items not null',
      list.filter(ee.Filter.notNull(['item'])));
print('List items in another list',
      list.filter(ee.Filter.inList('item', [1, 98, 99])));
print('List items 3 ≤ 𝑥 ≤ 6',
      list.filter(ee.Filter.and(
        ee.Filter.gte('item', 3),
        ee.Filter.lte('item', 6))));
  
    
  
  
    
  
  
  
  
    
  
    
  Python 설정
  Python API 및 대화형 개발을 위한 geemap 사용에 관한 자세한 내용은 
    Python 환경 페이지를 참고하세요.
  import ee
import geemap.core as geemap
  
    
    
      Colab (Python)
    
    
  # An ee.Image list object.
ee_list = ee.List([1, 2, 3, None, 6, 7])
# Filter the list by a variety of conditions. Note that the property name
# 'item' is used to refer to list elements in ee.Filter functions.
display('List items equal to 3:',
        ee_list.filter(ee.Filter.eq('item', 3)))
display('List items greater than 4:',
        ee_list.filter(ee.Filter.gt('item', 4)))
display('List items not None:',
        ee_list.filter(ee.Filter.notNull(['item'])))
display('List items in another list:',
        ee_list.filter(ee.Filter.inList('item', [1, 98, 99])))
display('List items 3 ≤ 𝑥 ≤ 6:',
        ee_list.filter(ee.Filter.And(
            ee.Filter.gte('item', 3),
            ee.Filter.lte('item', 6))))
  
  
  
  
  
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
  최종 업데이트: 2025-10-30(UTC)
  
  
  
    
      [null,null,["최종 업데이트: 2025-10-30(UTC)"],[],["The `List.filter(filter)` method filters a list, returning a new list containing only elements that match the provided filter.  Elements are referenced by the property name 'item' within `ee.Filter` functions.  Filters can test for equality (`eq`), greater than (`gt`), not null (`notNull`), inclusion in another list (`inList`), and combined conditions using `and`. Examples show how to filter numerical lists in both JavaScript and Python using these comparison operations.\n"]]