Python modules for NetCDF, udunits, OPeNDAP?

124 views
Skip to first unread message

Johnolulu

unread,
Oct 25, 2010, 5:13:57 PM10/25/10
to IOOS Model Data Interoperability Working Group
Hi All,
What Python modules are people using for reading NetCDF data and
converting units via udunits? OPeNDAP access would also be a huge
plus. There seem to be several packages available with varying degrees
of complexity/functionality (http://www.unidata.ucar.edu/software/
netcdf/software.html#Python) and rather than try them all myself, I'm
hoping to get recommendations here. CDAT looked promising at first
(http://www2-pcmdi.llnl.gov/cdat) but the installation has proven
beastly. I want to do simple things like read in a variable, gets its
min/max values, convert time units to seconds since the epoch, etc.
for simple sanity checks. Later I will also want to make map and line
plots as well but may end up using something besides Python.
Thanks!,
John Maurer
Hawaii Ocean Observing System (HiOOS)

MBAR...@gmail.com

unread,
May 29, 2012, 6:21:17 PM5/29/12
to ioos_model_...@googlegroups.com
Hi John,

I just saw this post and hope you've gotten some responses. 

I've been using pydap from pydap.org.  Make sure you also install the coards module which performs conversions to & from Python's datetime.datetime to index space.

-Mike

Rich Signell

unread,
May 29, 2012, 6:29:44 PM5/29/12
to ioos_model_...@googlegroups.com
Gang,

I've been promoting NetCDF4-Python over pydap, since this allows you
to access NetCDF files and OpenDAP datasets using exactly the same
methods.

It also handles time nicely, and has the ability open a "multifile
collection", just in case you find yourself trying to access data from
a collection of data that should have been aggregated, but was not.

This is built directly on top of the Unidata C NetCDF library, which
can make building it a pain, but luckily, NetCDF4-Python with OPeNDAP
support is part of the recent Enthought Python Distribution, which
means you can install with a one-line command on 32/64 bit Windows,
Mac and Linux.

-Rich
> --
> You received this message because you are subscribed to the Google Groups
> "IOOS Model Data Interoperability Working Group" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/ioos_model_data_interop/-/d0WTsyhe8m8J.
>
> To post to this group, send email to
> ioos_model_...@googlegroups.com.
> To unsubscribe from this group, send email to
> ioos_model_data_i...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/ioos_model_data_interop?hl=en.



--
Dr. Richard P. Signell   (508) 457-2229
USGS, 384 Woods Hole Rd.
Woods Hole, MA 02543-1598
Reply all
Reply to author
Forward
0 new messages