Skip to content

Commit

Permalink
Stop using deprecated rioxarray method
Browse files Browse the repository at this point in the history
  • Loading branch information
alexamici committed Dec 26, 2024
1 parent 82d2acc commit b5f384b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sarsen/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def do_terrain_correction(

simulated_beta_nought.x.attrs.update(dem_raster.x.attrs)
simulated_beta_nought.y.attrs.update(dem_raster.y.attrs)
simulated_beta_nought.rio.set_crs(dem_raster.rio.crs)
simulated_beta_nought.rio.write_crs(dem_raster.rio.crs)

logger.info("calibrate image")

Expand All @@ -152,7 +152,7 @@ def do_terrain_correction(

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.write_crs(dem_raster.rio.crs)

return geocoded, simulated_beta_nought

Expand Down

0 comments on commit b5f384b

Please sign in to comment.