A colleague pointed out that the gridded NetCDF file produced by make_gridfiles has depth as the 'x coordinate', and time as the 'y coordinate'.
|
xdimname = 'time' |
|
dsout = xr.Dataset( |
|
coords={'depth': ('depth', depths), 'profile': (xdimname, profiles)} |
|
) |
It feels more intuitive to have these switched? For instance, in the function itself time is referred to as the xdimname.
Also, this (time as the x dim, depth as the y dim) is how the old socib toolbox writes its gridded data files.
I believe the only change would be changing line 275 to coords={'profile': (xdimname, profiles), 'depth': ('depth', depths)}
A colleague pointed out that the gridded NetCDF file produced by
make_gridfileshas depth as the 'x coordinate', and time as the 'y coordinate'.pyglider/pyglider/ncprocess.py
Lines 273 to 276 in c1218ac
It feels more intuitive to have these switched? For instance, in the function itself time is referred to as the
xdimname.Also, this (time as the x dim, depth as the y dim) is how the old socib toolbox writes its gridded data files.
I believe the only change would be changing line 275 to
coords={'profile': (xdimname, profiles), 'depth': ('depth', depths)}