Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
ramarty committed Dec 20, 2023
1 parent a041c81 commit e1350b0
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 78 deletions.
118 changes: 41 additions & 77 deletions examples/quality-assessment.ipynb

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/blackmarble/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ def h5_to_geotiff(
offset = dataset.attrs.get("offset", 0)

data = dataset[:]


print(fill_value)
data = np.where(data == fill_value, np.nan, data)
data = scale_factor * data + offset

Expand Down

0 comments on commit e1350b0

Please sign in to comment.