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.
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