Skip to content

Commit

Permalink
Keep attrs after terrain-correction
Browse files Browse the repository at this point in the history
  • Loading branch information
alexamici committed Apr 26, 2022
1 parent e1fdbeb commit 73ae6ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sarsen/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ def terrain_correction(

logger.info("save output")

geocoded.attrs.update(beta_nought.attrs)
geocoded.x.attrs.update(dem_raster.x.attrs)
geocoded.y.attrs.update(dem_raster.y.attrs)
geocoded.rio.set_crs(dem_raster.rio.crs)
geocoded.rio.to_raster(
output_urlpath,
Expand Down

0 comments on commit 73ae6ba

Please sign in to comment.