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

20010626: need help with ncvdef call

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: 20010626: need help with ncvdef call
  • Date: Tue, 26 Jun 2001 12:30:15 -0600

Devon,

> To: netCDF support at UCAR <address@hidden>
> From: "Devon S. Prichard" <address@hidden>
> Subject: need help with ncvdef call
> Organization: Virginia Tech/VCES
> Keywords: 200106261656.f5QGuH126144

The above message contained the following:

> Hello, I am using netCDF 3.5 on various
> unix workstations,and have run into a
> problem with a call to ncvdef in one
> of my Fortran programs.
> 
> I can use ncvdef in my test programs
> just fine, and the resulting *.nc file
> is correct. However, in the big messy
> application to which I am adding 
> netCDF output, I get the following
> error message;
> 
> NCVDEF: : NC_UNLIMITED in the wrong index

This means that the dimension index vector to the NCVDEF function has the
unlimited dimension index in something other than the last element of
the vector.

Check the dimension index vector of the NCVDEF function.  What is the
value of the last element?  Which element has the value -1?

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>