Skip to content

Commit

Permalink
Update cgflex.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-salles committed Jun 2, 2024
1 parent 870f25e commit ce91a7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gospl/tools/cgflex.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ def _cmptFlex(self, xrutm, regrid=1, shifted=False):
if regrid>1:
xrutm = xrutm.interp(x=xcoord, y=ycoord, method="nearest")
xrutm.flex.rio.write_nodata(np.nan, inplace=True)
xrutm.elevation.rio.write_nodata(np.nan, inplace=True)
xrutm.erodep.rio.write_nodata(np.nan, inplace=True)
xrutm.shiftz.rio.write_nodata(np.nan, inplace=True)
xrutm.shifted.rio.write_nodata(np.nan, inplace=True)
return xrutm.rio.interpolate_na()

return xrutm
Expand Down

0 comments on commit ce91a7d

Please sign in to comment.