[Gdal-dev] translating HDF4 to netCDF, HDF in --formats, but translate says "unsupported"

Edward Fialkowski wef1 at cec.wustl.edu
Sun Sep 30 15:15:54 EDT 2007


Hey List, trying to gdal_translate an HDF4 file to netCDF.

  HDF4 (ro): Hierarchical Data Format Release 4
  HDF4Image (rw+): HDF4 Dataset

shows up in --formats, but...

[edfialk at niceguy apps]$ ./gdal_translate -of netCDF no2track20070909.hdf
no2track20070909.nc
ERROR 4: `no2track20070909.hdf' not recognised as a supported file format.

GDALOpen failed - 4
`no2track20070909.hdf' not recognised as a supported file format.


I'm pretty sure it's hdf4 too, since hdfls reports:
[edfialk at niceguy bin]$ ./hdfls no2track20070910.hdf
no2track20070910.hdf:
File library version: Major= 4, Minor=2, Release=1
String=NCSA HDF Version 4.2 Release 1, February 17, 2005

Version Descriptor            : (tag 30)
        Ref nos: 1
Vdata                         : (tag 1962)
        Ref nos: 2 3 4 5 6 7 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
75 76 77 78 79 80 81 82 83 84
Vdata Storage                 : (tag 1963)
        Ref nos: 2 3 4 5 6 7 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
75 76 77 78 79 80 81 82 83 84
Vgroup                        : (tag 1965)
        Ref nos: 8



so...gdal does have HDF4 as rw, the file is not HDF5 (hd5ls doesn't open
it)...anyone have any ideas?

Thanks!
-Ed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070930/6f3a828e/attachment.html


More information about the Gdal-dev mailing list