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.
Chris, The above message contained the following: > To: address@hidden > From: Chris Webster <address@hidden> > Subject: netCDF no attr > Organization: NCAR Research Aviation Facility > Keywords: 200211081512.gA8FCmX18905 > > ncattinq: ncid 4: Attribute not found > > This drives me nuts, a core dump would be much faster to debug. > > Can the error message also dump the variable name and failed attribute > to the screen? Adding 30 printf's to my program to figure out which > get_attr() failed gets old fast. Good idea. Done. It'll be in the next release. If you can't wait, then apply the attached patch to file libsrc/v2i.c. Regards, Steve Emmerson <http://www.unidata.ucar.edu>
Attachment:
t.t
Description: t.t