Re: pynio int64 support

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Wed Jun 12 2013 - 13:21:36 MDT

Hi Ethan,
PyNIO currently supports the NetCDF classic model, including the NetCDF-4 classic model format as described here:

The interface is basically the same as NetCDF3, which means that there is no support for int64, any of the unsigned integer types, or for strings. if these could be added by themselves it would be no big deal to put them into PyNIO.
The main problem with adding full support for NetCDF4 is implementing recognition of groups, compound data types, and variable length arrays. This requires a significant amount of new code that cannot be automatically imported from our NCL implementation, as many improvements to PyNIO have been in the past. Nevertheless, we plan to do this implementation later this year. It will probably not happen until after the next release of NCL, which is due sometime this summer. I hope this explanation clarifies the situation. If you need full NetCDF4 from Python immediately, I would recommend

On Jun 12, 2013, at 12:31 PM, Ethan Gutmann <> wrote:

> Hi all,
> Sorry if this has been talked about before, I didn't see anything in the archives. Are there any plans to support writing int64 (and uint64) to netcdf files in pynio? Is this related to not supporting standard netcdf4 files: And if so is that something that is likely to change?
> As I understand it, NetCDF supports int64:
> but the pynio docs state that it does not because netCDF does not:
> If there are no plans to support 64bit ints, can anyone recommend a way around this? Is there an easy way (e.g. using NCO or NCL commands) to combine two 32bit ints written by PyNio into a single 64bit int?
> thanks,
> Ethan
> -------------------------------------
> Ethan Gutmann
> Hydrometeorological Applications Program
> Research Applications Lab
> National Center for Atmospheric Research
> P.O. Box 3000
> Boulder, CO 80307-3000
> -------------------------------------
> (303) 497-8283
> _______________________________________________
> pyngl-talk mailing list
> List instructions, subscriber options, unsubscribe:

pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Wed Jun 12 13:21:42 2013

This archive was generated by hypermail 2.1.8 : Sun Jun 23 2013 - 14:32:56 MDT