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

20010716: compiling netcdf readers: readncdf_hd.f: ncid 3: variable not found

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: 20010716: compiling netcdf readers: readncdf_hd.f: ncid 3: variable not found
  • Date: Mon, 16 Jul 2001 10:13:44 -0600

Cynthia,

> To: consulting <address@hidden>,
> To: address@hidden
> From: Dan Anderson <address@hidden>
> Subject: Re: Yours?
> Organization: UCAR/Unidata
> Keywords: 200107132026.f6DKQl112380

The above message contained the following:

> > >     Thank you for the compiling information. If I might ask
> > > a follow up question about actually running the program
> > > "readncdf_hd.f": This program calls a number of subroutines
> > > (NCOPN, NCVID, NCAGT, NCVGT) that I assume are netcdf library
> > > subroutines. These calls are generating errors (e.g., "ncvarid:
> > > ncid 3: variable not found") Does this mean the library has not
> > > been correctly linked?
> > >
> > > Thanks,
> > >
> > > Cindy

If those error messages from the netCDF library are being printed, then
it's likely that the library has been correctly linked.  The default
action for the netCDF library, on encountering an error, is to print an
error message to standard error and then terminate the program with an
error status.  If the program continues after emitting the message, then
the program has modified the default action of the netCDF library.

You'll need to look at the documentation for the program (and, perhaps,
even the source code) to determine if the error messages indicate a
severe or ignorable problem.

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