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.
John, Thanks very much for the feedback and bug report. I'll let you know when this gets fixed. --Russ > Hi Russ > > The fix works with some of our raw data files, but not with others where there > is a problem with free() in dumplib.c:1553. I attach a problem file to help > with testing. > > Where ncdump -v works it outputs all the headers as well as the variable data. > This conforms with the section for -h in the man page, but not with the short > help you get if you simple type ncdump, where it says you get the variable > data only. The latter would certainly be more convenient with files with many > variables. > > What about variables names containing special characters? A bullet waiting to > be bitten. Try ' '! > > Regards > John > > On Thursday 21 May 2009, you wrote: > > Hi John, > > > > > There's a bug you may be aware of in ncdump -v applied to netCDF-4 files. > > > It always reports 'group not found'. The reason is that only varid is > > > returned by dumplib.c:nc_inq_gvarid() and saved in a list; the associated > > > ncid isn't returned or saved. But for netCDF-4 it's both you need. > > > > Thanks for reporting this bug. It's now fixed and a test added to the > > distribution, so it should work in the next snapshot. > > > > The behavior is a little more flexible now also. When you name a variable > > in the -v option, you can use either a relative name (not beginning with > > "/") or an absolute name (beginning with "/"). If a relative name is used, > > it specifies all matching variables in the file, perhaps in several groups. > > If an absolute name is used, then it specifies just that variable. > > > > Please let us know if you see any more problems with ncdump after getting > > and trying the next snapshot release. > > > > --Russ > > > > > > Russ Rew UCAR Unidata Program > > address@hidden http://www.unidata.ucar.edu > > > > > > > > Ticket Details > > =================== > > Ticket ID: HKX-214469 > > Department: Support netCDF > > Priority: Normal > > Status: Closed > > > > > > > > Click > > https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== > >iyVjL1c6K3idYVFT06w0rFqheWj7AFxvYd5fHr7iGA== to report this email as spam. > > > > -- > John Storrs, Experiments Dept e-mail: address@hidden > Building D3, UKAEA Fusion tel: 01235 466338 > Culham Science Centre fax: 01235 466379 > Abingdon, Oxfordshire OX14 3DB http://www.fusion.org.uk > > > > > This message has been scanned for viruses by BlackSpider MailControl - > www.blackspider.com > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: HKX-214469 Department: Support netCDF Priority: Normal Status: Closed