diff --git a/smmregrid/cdo_weights.py b/smmregrid/cdo_weights.py index f7605dc..4c95cef 100644 --- a/smmregrid/cdo_weights.py +++ b/smmregrid/cdo_weights.py @@ -99,7 +99,7 @@ def cdo_generate_weights(source_grid, target_grid, method="con", extrapolate=Tru processes = [] for lev in block: loggy.info("Generating level: %s", str(lev)) - cdo_extra_vertical = [f"-sellevidx,{lev+1}"] + cdo_extra_vertical = [f"-sellevidx,{lev + 1}"] ppp = Process(target=worker, args=(wlist, lev, source_grid, target_grid), kwargs={ diff --git a/smmregrid/gridtype.py b/smmregrid/gridtype.py index 9083b4d..8e7868a 100644 --- a/smmregrid/gridtype.py +++ b/smmregrid/gridtype.py @@ -3,9 +3,9 @@ # default spatial dimensions and vertical coordinates DEFAULT_DIMS = { - 'horizontal': ['i', 'j', 'x', 'y', 'lon', 'lat', 'longitude', 'latitude', - 'cell', 'cells', 'ncells', 'values', 'value', 'nod2', 'pix', 'elem', - 'nav_lon', 'nav_lat'], + 'horizontal': ['i', 'j', 'x', 'y', 'lon', 'lat', 'longitude', 'latitude', + 'cell', 'cells', 'ncells', 'values', 'value', 'nod2', 'pix', 'elem', + 'nav_lon', 'nav_lat'], 'vertical': ['lev', 'nz1', 'nz', 'depth', 'depth_full', 'depth_half'], 'time': ['time'] }