Skip to content

Commit

Permalink
Merge pull request #34 from trchudley/josseditorcomments
Browse files Browse the repository at this point in the history
JOSS Editor Comments
  • Loading branch information
trchudley authored Oct 8, 2024
2 parents 40ec981 + 4b20b24 commit dd0e816
Show file tree
Hide file tree
Showing 6 changed files with 118 additions and 257 deletions.
Binary file modified images/example_mosaic_terrain.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
133 changes: 27 additions & 106 deletions notebooks/flow_aware_hillshade.ipynb

Large diffs are not rendered by default.

50 changes: 10 additions & 40 deletions notebooks/get_icebergs.ipynb

Large diffs are not rendered by default.

62 changes: 22 additions & 40 deletions notebooks/mosaic_and_terrain.ipynb

Large diffs are not rendered by default.

116 changes: 46 additions & 70 deletions notebooks/strip_search_and_dem_difference.ipynb

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion src/pdemtools/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,22 @@ def mosaic(
else:
dem = dems[0]

dems = None # release dem objects for memory management

# Filter -9999.0 values to np.nan
dem = dem.where(dem > -9999.0)

dems = None # release dem objects for memory management
# Enforce CF-compliant names
dem['x'].attrs['axis'] = 'X'
dem['x'].attrs['long_name'] = 'x coordinate of projection'
dem['x'].attrs['standard_name'] = 'projection_x_coordinate'
dem['x'].attrs['units'] = 'metre'

dem['y'].attrs['axis'] = 'Y'
dem['y'].attrs['long_name'] = 'y coordinate of projection'
dem['y'].attrs['standard_name'] = 'projection_y_coordinate'
dem['y'].attrs['units'] = 'metre'

return dem


Expand Down

0 comments on commit dd0e816

Please sign in to comment.