NOAA-ORR-ERD / PyGnome

The General NOAA Operational Modeling Environment
https://gnome.orr.noaa.gov/doc/pygnome/index.html
Other
59 stars 44 forks source link

ADCIRC output to ptCur format #47

Open bobsurf00 opened 5 years ago

bobsurf00 commented 5 years ago

Does anyone have a program to convert ADCIRC output to ptCur format? Thanks Rob

HWR-llc commented 5 years ago

Hi Rob, I was originally looking into ptCur as well. I asked about it in #32. To the best of my understanding, PyGnome does not support ASCII ptCur formats.

I've developed some functions that translate ADCIRC into ptCur and NetCDF for use in PyGnome, but they aren't ready for distribution. The GNOME technical documentation has a decent explanation of the NetCDF format.

ChrisBarker-NOAA commented 5 years ago

Thanks @HWR-llc!

He's right, ptCur is deprecated.

You can use the netcdf format in the GNOME TEch Docs, or, even better, UGRID compliant netCDF:

http://ugrid-conventions.github.io/ugrid-conventions/

It's also possible that py_gnome can read the ADCRUC output as is -- did you try that?

Third option: you can tell py_gnome a bit more about the files when you read them in:

https://gnome.orr.noaa.gov/doc/pygnome/env_obj/examples.html#Customizing-environment-objects

Those docs need to more high level examples, but maybe you can figure it out.

bobsurf00 commented 5 years ago

Thanks Chris and Matt you your replies. I'll take a look through the documentation and see if I can work it out.