Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
On Tue, Feb 02, 2010 at 08:39:05AM -0700, Jim Edwards wrote: > Hi, > > I am in need of a function that can identify a file as netcdf3, netcdf4, or > pnetcdf 64-bit. > Preferably I would like this function to work without having linked any of > the mentioned netcdf libraries. > > Does anyone have or know of one? Hi Jim. Not sure if there's a function, but the first four bytes of the file are CDF-X, where X is 1, 2, or 5, or X-HDF, where I don't know what X is but at least on one file I'm looking at is 0x86 ==rob -- Rob Latham Mathematics and Computer Science Division Argonne National Lab, IL USA
netcdfgroup
archives: