Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nodata value in ga_srtm_dem1sv1_0 product #1141

Merged
merged 1 commit into from Jan 31, 2023
Merged

Conversation

robbibt
Copy link
Collaborator

@robbibt robbibt commented Jan 31, 2023

Issue #1348 (opendatacube/datacube-core#1348) discusses issues with the nodata value in the ga_srtm_dem1sv1_0 SRTM DEM product. It appears that the issue is caused by the nodata value being truncated and losing precision when converted to scientific notation format, which then prevents it from being applied correctly by funcs like from datacube.utils.masking import mask_invalid_data.

This PR attempts to fix this issue by using the full non-truncated nodata string instead of the shorter scientific notation.

@robbibt robbibt requested review from pindge and tebadi January 31, 2023 00:37
@pindge pindge merged commit a529675 into master Jan 31, 2023
@pindge pindge deleted the dem_nodata_fix branch January 31, 2023 01:30
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.

None yet

2 participants