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.
Very nice, Lloyd & Russ. Shiming, could you document this somewhere? Mike At 9:10 PM 3/7/95, Russ Rew wrote: >... But would it be a crude >> workaround for these folks that I working with? > >Yes, that's a clever way to convert an HDF-encoded netCDF file to an >XDR-encoded netCDF file. The invocation would be: > > HDFncdump file.hdf | ncgen -o file.nc - > >where "file.hdf" is the input HDF-encoded netCDF file, and "file.nc" is the >output equivalent netCDF file. > >It's a little slow, but it seems to work fine, except that the default >precision that ncdump uses to output floating-point and double-precision >values (6 and 15 significant digits) may lose some precision in the output >file. There are ncdump flags that permit specifying the precision used. > >--Russ