ee.Filter.eq

กรองข้อมูลเมตาที่เท่ากับค่าที่ระบุ

แสดงผลตัวกรองที่สร้างขึ้น

การใช้งานการคืนสินค้า
ee.Filter.eq(name, value)ตัวกรอง
อาร์กิวเมนต์ประเภทรายละเอียด
nameสตริงชื่อพร็อพเพอร์ตี้ที่จะกรอง
valueวัตถุค่าที่จะเปรียบเทียบ

ตัวอย่าง

โปรแกรมแก้ไขโค้ด (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_2019 =
    goes17_mcmipm.filterDate(ee.Date('2019-11-01'), ee.Date('2019-11-05'));

var d1 = goes17_mcmipm_2019.filter(ee.Filter.eq('domain', 1));
var d2 = goes17_mcmipm_2019.filter(ee.Filter.eq('domain', 2));
print(goes17_mcmipm_2019.size()); 
print(d1.size());
print(d2.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_2019 = goes17_mcmipm.filterDate(
    ee.Date('2019-11-01'), ee.Date('2019-11-05')
)

d1 = goes17_mcmipm_2019.filter(ee.Filter.eq('domain', 1))
d2 = goes17_mcmipm_2019.filter(ee.Filter.eq('domain', 2))
print(goes17_mcmipm_2019.size().getInfo())
print(d1.size().getInfo())
print(d2.size().getInfo())