Skip to content

max_cloud_cover is ignored by Planetary Computer Sentinel‑2 data source #361

@robmarkcole

Description

@robmarkcole

Following examples in rslearn_projects I configured

            "data_source": {
                "cache_dir": "cache/planetary_computer",
                "ingest": false,
                "max_cloud_cover": 0,
                "name": "rslearn.data_sources.planetary_computer.Sentinel2",

But I still get images with clouds, and it appears max_cloud_cover is ignored. I think this should be addressed and errors raised on invalid args.

What is actually required is passing the cloud cover filter directly in the query:

            "data_source": {
                "cache_dir": "cache/planetary_computer",
                "ingest": false,
                "name": "rslearn.data_sources.planetary_computer.Sentinel2",
                "query": {"eo:cloud_cover": {"lte": 0}},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions