Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: [netcdfgroup] Help with unlimited dimension.

Hi,

A netcdf3 file can only have one unlimited dimension.  You'll need to
use netcdf4 to get support for multiple unlimited dimensions.  Take a
look at this:

http://www.unidata.ucar.edu/software/netcdf/docs/netcdf/Dimensions.html


Brice



Jinyun Tang wrote:
> Hi,
>    I have my problem as below. In a file I want to write two variables,
> both of them have a unlimited dimension since I don't in advance how
> long will the records be. But the two variables are somehow correlated,
> such that one variable indicates how many records of the the other
> variable in a single time span. To be specific,
> 
> say for variable 1, at certain time step, var1 holds array, {1, 2, 3}, 
> it indicates: the variable2 should write for case 1 2 3. for another
> time step, var1 ={0, 1, 2}, then variable 2 should write for case 1 2.
> 
> then  dimension information for var1 is
> var1(3, unlimited)
> for variable 2 is
> var2(len, unlimited)
>  but the unlimited dimension of var1 and var2 are not equal. I tried,
> but the ncfile rejected the two unlimited dimension, if there's anyway
> to overcome this? I appreciate any suggestions.
> 
> Regards.
> Jinyun
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit: 
> http://www.unidata.ucar.edu/mailing_lists/ 


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690