NOC-MSM / pyBDY

pyBDY: a Python based regional NEMO model configuration toolbox.
GNU General Public License v3.0
7 stars 7 forks source link

NEMO v4 domain_cfg.nc will not have gdept and gdepw #2

Open jdha opened 5 years ago

jdha commented 5 years ago

Need to build the depth functions gdept and gdepw from e3t and e3w.

jdha commented 5 years ago

e3_to_depth.py added

Ideally you would like to read zt and zw. This is still available if a mesh file is produced from a v4.0 run. So I would suggest a 'try' statement e.g. try: read zt & zw except ExplicitException: try: read e3t & e3w covert to zt & zw except: print 'vertical grid variables do not exist'