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

[netCDF #XBL-623715]: NetCDF Error -57



Lee,

> Is there any way to see the numbers get_var sees?

By default, the libraries are compiled with the -g debugging flag, so you
should
be able to just use a debugger such as dbx, gdb, or maybe something fancier
like
sunstudio, depending on your platform, to set a breakpoint in nf90_get_var and
run your program.  When it stops inside nf90_get_var, you should be able to
print
the arguments and local variables and step one statement at a time to see
exactly what is happening.  You'll find it just calls one of the f77 functions
such as nf_get_vara_float or nf_get_vara_double, which in turn calls the C
function nc_get_vara_float or double.  That function just loops through the
dimensions for the variable, comparing start[i]+count[i] to the length of the
ith dimension and returns an error message if the sum is greater than that
length
for any dimension.

--Russ


Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: XBL-623715
Department: Support netCDF
Priority: Normal
Status: Closed