NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[netcdfgroup] netcdf4 -problems

Hi all,

It seems that using netcdf4 API with hdf5 files I have the following problem:
If a dimension is defined in the output file  -- then a  variable of the 
same name as the dimension  defined in output MUST have a single dim 
which is the same name a the defined dimension. This is not the case 
with netcdf3.
what I am saying is that the defined var  is OK as a co-ordinate var but 
not anything else

The below script illustrates the problem:

defdim("a",2); // dim *"a=2"* defined in output defdim("b",3); // dim *"b=3"* defined in output
defdim("c",4);             //  dim *"c=3"*  defined in output
a[$a,$b]=10.0; // variable "a" defined as "*double a[a,b];*" works in netcdf3 but NOT netcdf4 c[$c]=20.0 // variable "c" defined as "*double c[c];" *works in metcdf3 and netcdf4* *

Regards Henry
  • 2008 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: