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.
> Hi Ed, > As an add on to my earlier message. I can now get the 64 bit Windows to pass > all of the tests in nctests/driver.c by modifying function nvdims in v2i.c to > look at the group variables when processing NETCDF-4 files. I check to see > if I > am using netcdf3 or netcdf4 (you probably know a better check than the one I > use). If it is netcdf3 I use the original check that looks at ncp->vars. If > it's > NETCDF-4 I get the group info and look at group->nvars to get the number of > variables. This works (at least for driver.c). I have attached my version of > nvdims that works for me. I'm guessing you guys can write a much better > implementation than me but I think this proves to me that there is a bug in > the > NETCDF code. > > Hope this helps as products like NETCDF are a great benefit to the scientific > community. > > Cheers > Nick Lloyd. > > Howdy Nick! Of course as soon as I asserted that this was not a bug, a little part of my brain told me that every time I do that, it turns out to be a bug. Software engineering is funny that way! ;-) I have entered this in our new issue database and it turns out to be the 100th issue in the netCDF database. In celebration of this you may have as many free copies of netCDF as you wish. If you want to track this, see here: https://www.unidata.ucar.edu/jira/browse/NCF-100 You can also register if you have a comment. I suspect this will be fixed before the next release... What I don't understand is why this was never found before. I will have to take a look at the tests to see why we didn't catch this one. Thanks, and keep on netCDFing! Ed Ticket Details =================== Ticket ID: SVH-828273 Department: Support netCDF Priority: Normal Status: Closed