File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88import xarray as xr
99from xarray import DataArray , Dataset
1010
11+
1112# -----------------------------------------------------------------------------
1213def is_nemo_none (var : Optional [float ] = None ) -> bool :
1314 """
@@ -25,11 +26,12 @@ def is_nemo_none(var: Optional[float] = None) -> bool:
2526 """
2627 return var in [None , 999999.0 ]
2728
29+
2830# -----------------------------------------------------------------------------
2931def calc_rmax (depth : DataArray ) -> DataArray :
3032 """
3133 Calculate rmax: measure of steepness
32- This function returns the maximum slope paramater
34+ This function returns the maximum slope paramater
3335
3436 rmax = abs(Hb - Ha) / (Ha + Hb)
3537
@@ -68,6 +70,7 @@ def calc_rmax(depth: DataArray) -> DataArray:
6870
6971 return np .maximum (* both_rmax )
7072
73+
7174# -----------------------------------------------------------------------------
7275def generate_cartesian_grid (
7376 ppe1_m ,
You can’t perform that action at this time.
0 commit comments