Peter Willis wrote:
Hello,

Where can I find the specification for the
'DATA' entry in mapserver MAP files where
HDF files are being used?

I am mostly interested in using these in
the context of WCS.

Here is my current non-working example of an HDF
file test in my current WCS map file:
...
  DATA 'HDF4:/public/A20081932008200.L3m_8D_CHLO_9.hdf://l3m_data'

Peter,

You need to use the gdalinfo command on the .hdf base file to get
a list of subdatasets within the file.  If the gdalinfo reports something
like:


SUBDATASET_16_NAME=HDF4_EOS:EOS_SWATH:"MOD07_L2.A2000110.0220.002.2000196104217.hdf":mod07:Retrieved_Moisture_Profile
SUBDATASET_16_DESC=[20x406x270] Retrieved_Moisture_Profile mod07 (16-bit integer)
SUBDATASET_17_NAME=HDF4_EOS:EOS_SWATH:"MOD07_L2.A2000110.0220.002.2000196104217.hdf":mod07:Retrieved_Height_Profile
  SUBDATASET_17_DESC=[20x406x270] Retrieved_Height_Profile mod07 (16-bit 
integer)

Then you might put the following in your .map file:

DATA 'HDF4_EOS:EOS_SWATH:"MOD07_L2.A2000110.0220.002.2000196104217.hdf":mod07:Retrieved_Moisture_Profile'


The key is to use _NAME portion of the subdatasets reported by gdalinfo.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to