[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #NSS-704726]: using netcdf



Hello,

NetCDF would work to save the data you are describing.  Regarding how you would 
do it; this would depend on the language you are writing software in. Doing 
this in Python would be different from doing this in C or in Fortran.  If your 
data is a tuple at a given index/set of indices, you would want to define your 
variable as a compound data type.  This will require working with netCDF4, as 
compound data types are achieved by using the underlying HDF5 library used by 
netCDF4.  You may find more information at the following page:  
http://www.unidata.ucar.edu/software/netcdf/docs/data_type.html#nc4_user_defined_types.
  As previously mentioned, the specific way you will do this in your program 
depends on what language you are programming in.

I hope this helps,

-Ward

> Hi netcdf team,
> 
> i don't know if i post on the good mailling list.
> I would like to save numerical data from a physical code in netcdf format.
> I don't know if is it possible for my data. I think yes but i don't know
> how ?
> My data is a spectrum (300 float points) each spectrum must be indexed
> by several parameters by example :
> - "proportion" is a « tuple » like**(0, 0, 1) , (0, 0.002, 0.998), (0,
> 1, 0), (0.001, 0.001, 0.998), (0.002, 0, 0.998) in my case there are 5
> choice.
> - "component_size" is also a « tuple »
> - "incidence_angle" a float value
> - etc.
> 
> 
> is it possible to use netcdl to save several spectrum with each is
> indexing by several simple value and several tuple values ?
> if yes ! How i can define dimension for tuple ?
> I don't find information about this.
> 
> Thanks a lot for information or url.
> 
> Ludovic
> 
> 
> 

Ticket Details
===================
Ticket ID: NSS-704726
Department: Support netCDF
Priority: Normal
Status: Closed