Closed zxdawn closed 11 months ago
Hey @zxdawn, the current implementation of the CMR STAC API does not support filtering based on those properties. I think it's an important capability to include, but I can't tell you when or if that would be available. An alternative option would be to use the earthaccess
package. I've include a code snippet below.
search_params = {
"concept_id": "C2408009906-LPCLOUD", # CMR concept ID for EMITL1BRAD.001
#"day_night_flag": "day",
"cloud_cover": (0, 10),
"temporal": ("2022-05", "2023-08"),
"bounding_box": (-99.65, 18.85, -98.5, 19.95)
}
results = earthaccess.search_data(**search_params)
# Get links to data... note that EMITL1BRAD.001 contains 2 data files per 'granule'
[x.data_links() for x in results]
Thanks! It works well. Close now ;)
It would be nice to see the support of pystac. It's useful to use pystac to check the RGB data quickly.
It works well without the cloud_cover filter. However, I get this error if I try to add the filter:
Is this not supported yet? Otherwise, I have to access the cloud_cover properties from the collections: