Skip to content

[BUGFIX] Enhance EarthDaily Sentinel-2 support for scale/offset metadata and nodata handling#548

Merged
favyen2 merged 6 commits intoallenai:masterfrom
robmarkcole:issue-547
Apr 1, 2026
Merged

[BUGFIX] Enhance EarthDaily Sentinel-2 support for scale/offset metadata and nodata handling#548
favyen2 merged 6 commits intoallenai:masterfrom
robmarkcole:issue-547

Conversation

@robmarkcole
Copy link
Copy Markdown
Collaborator

Address #547

  • Updated asset_scale_offsets to include nodata values in EarthDailyItem.
  • Modified read_raster to preserve nodata pixels during scaling.
  • Added validation for float32 dtype requirement when apply_scale_offset is enabled.
  • Enhanced tests to cover nodata preservation and dtype validation.

…odata handling

- Updated asset_scale_offsets to include nodata values in EarthDailyItem.
- Modified read_raster to preserve nodata pixels during scaling.
- Added validation for float32 dtype requirement when apply_scale_offset is enabled.
- Enhanced tests to cover nodata preservation and dtype validation.
# Conflicts:
#	docs/data_sources/earthdaily_Sentinel2.md
#	rslearn/data_sources/earthdaily.py
#	tests/unit/data_sources/test_earthdaily_scale_offset.py
@robmarkcole robmarkcole changed the title [DRAFT] Enhance EarthDaily Sentinel-2 support for scale/offset metadata and nodata handling [BUGFIX] Enhance EarthDaily Sentinel-2 support for scale/offset metadata and nodata handling Mar 30, 2026
Copy link
Copy Markdown
Collaborator

@favyen2 favyen2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me, one minor comment to simplify the code

Comment thread rslearn/data_sources/earthdaily.py
@favyen2 favyen2 merged commit 7ea0d7a into allenai:master Apr 1, 2026
3 checks passed
@robmarkcole robmarkcole deleted the issue-547 branch April 1, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants