BoldingBruggeman / getm-rewrite

Rewrite of the General Estuarine Transport Model (GETM) in Python (mostly) and Fortran (performance-critical sections)
https://pygetm.readthedocs.io/
Other
7 stars 3 forks source link

rearrange order of dimensions in pygetm.input.woa #24

Open glessin opened 1 year ago

glessin commented 1 year ago

Currently I have to preprocess WOA with:

def woa_times(nc): return nc.transpose('time','lat','lon','depth')

this could be done internally in input.woa, or let pygetm infer it by name...

jornbr commented 1 year ago

I think this can be done internally, yes. The input manager should be able to detect the need for a transpose and add it automatically, provided the depth axis is correctly recognized. NB that requires either the standard_name or the positive attribute to be set on the coordinate variable for depth. TBC