Skip to content

Fix WorldCereal data by using SINGLE_COMPOSITE and setting correct NODATA#507

Open
favyen2 wants to merge 1 commit intomainfrom
favyen/20260303-fix-worldcereal
Open

Fix WorldCereal data by using SINGLE_COMPOSITE and setting correct NODATA#507
favyen2 wants to merge 1 commit intomainfrom
favyen/20260303-fix-worldcereal

Conversation

@favyen2
Copy link
Collaborator

@favyen2 favyen2 commented Mar 4, 2026

WorldCereal consists of overlapping GeoTIFFs, but only one of the GeoTIFFs will be valid (not NODATA) at any given location. Previously, this means that matching may pick the wrong GeoTIFF since it is just arbitrarily selecting one that intersects the window. SINGLE_COMPOSITE will put all intersecting GeoTIFFs into the item group, and FIRST_VALID compositing method (along with setting correct nodata value for the materialization) ensures we handle it correctly.

This seems to increase the number of tiles with non-zero WorldCereal data by about 20%.

The change is a simple config change, but the rslearn_to_olmoearth scripts are also updated to latest version of rslearn (where RasterFormat returns RasterArray instead of numpy array).

…DATA.

WorldCereal consists of overlapping GeoTIFFs, but only one of the GeoTIFFs
will be valid (not NODATA) at any given location. Previously, this means
that matching may pick the wrong GeoTIFF since it is just arbitrarily
selecting one that intersects the window. SINGLE_COMPOSITE will put all
intersecting GeoTIFFs into the item group, and FIRST_VALID compositing
method (along with setting correct nodata value for the materialization)
ensures we handle it correctly.

This seems to increase the number of tiles with non-zero WorldCereal data
by about 20%.
@github-actions github-actions bot added the size/m label Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants