Re: pynio int64 support

From: Ethan Gutmann <gutmann_at_nyahnyahspammersnyahnyah>
Date: Wed Jun 12 2013 - 13:38:55 MDT

Thanks Dave,

Glad to know support is planned somewhere down the line, I'll look into netcdf4-python for now.

Ethan

On Jun 12, 2013, at 1:21 PM, David Brown <dbrown@ucar.edu> wrote:

> Hi Ethan,
> PyNIO currently supports the NetCDF classic model, including the NetCDF-4 classic model format as described here:
>
> http://www.unidata.ucar.edu/software/netcdf/docs/netcdf/NetCDF_002d4-Classic-Model-Format.html
>
> 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 http://code.google.com/p/netcdf4-python/.
> -dave
>
> On Jun 12, 2013, at 12:31 PM, Ethan Gutmann <gutmann@ucar.edu> 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: http://www.pyngl.ucar.edu/NioFormats.shtml And if so is that something that is likely to change?
>>
>> As I understand it, NetCDF supports int64: http://www.unidata.ucar.edu/software/netcdf/docs/variables.html http://www.unidata.ucar.edu/software/netcdf/docs/external_types.html
>> but the pynio docs state that it does not because netCDF does not: http://www.pyngl.ucar.edu/Nio.shtml#create_variable
>>
>> 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
>> -------------------------------------
>> gutmann@ucar.edu
>> (303) 497-8283
>>
>>
>>
>>
>> _______________________________________________
>> pyngl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk

_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Wed Jun 12 13:39:02 2013

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