|
|
Re: netcdf and hdf together [message #49722 is a reply to message #49656] |
Thu, 10 August 2006 11:53  |
liamgumley
Messages: 74 Registered: June 2005
|
Member |
|
|
Mark Hadfield wrote:
> Paul van Delst wrote:
>>
>> $ hdfdump file.hdf | ncgen -b ofile.nc -
>>
>> Then in IDL, just read and write netCDF and forget about HDF. :o)
>
> Perhaps you should explain that hdfdump is a version of ncdump, but
> linked against the HDF libraries instead of the netCDF libraries:
>
> http://www.ferret.noaa.gov/Ferret/Mail_Archives/fu_2002/msg0 0501.html
>
> Does this always work? Aren't there features supported by HDF but not
> netCDF?
If the dimension, variable, and attribute names in the HDF file conform
to netCDF specifications (e.g., no special characters such as *), then
it should work.
Large HDF files may cause problems because the dump step creates an
ASCII representation of the data in the file.
Finally, it's not all that difficult to work with HDF4 files in IDL,
particularly the 'Scientific Data Set' variant. However with HDF5, all
bets are off.
Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
|
|
|