<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=505321914-04092006><FONT face=Arial size=2>hello
all,</FONT></SPAN></DIV>
<DIV><SPAN class=505321914-04092006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=505321914-04092006><FONT face=Arial size=2>i am working with
den fwtools (GDAL 1.3.2.0, FWTools 1.0.5, released 2006/07/06) and i
don't get it to convert hdf-files with gdal, especially handling
subsets didn't work. here is the description what i tried. i tested aster- and
modis-hdf4-files</FONT></SPAN></DIV>
<DIV><SPAN class=505321914-04092006></SPAN> </DIV><SPAN
class=505321914-04092006>
<DIV><FONT face=Arial size=2>Aster Level 1B<BR>Data: </FONT><A
href="http://edcftp.cr.usgs.gov/pub/data/disaster/katrina/aster_L1B/AST_L1BE003090320051623270000000.tar.gz"><FONT
face=Arial
size=2>http://edcftp.cr.usgs.gov/pub/data/disaster/katrina/aster_L1B/AST_L1BE003090320051623270000000.tar.gz</FONT></A></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2>gdalinfo -nogcp -nomd
"E:\usgs\aster\AST_L1BE003090320051623270000000.hdf"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Driver: HDF4/Hierarchical Data Format Release
4<BR>Size is 512, 512<BR>Coordinate System is `'<BR>Subdatasets:<BR>
SUBDATASET_1_NAME=HDF4_EOS:EOS_SWATH:"E:\usgs\aster\AST_L1BE003090320051623270<BR>000000.hdf":VNIR_Swath:ImageData1<BR>
SUBDATASET_1_DESC=[4200x4980] ImageData1 (8-bit unsigned integer)<BR>
SUBDATASET_2_NAME=HDF4_EOS:EOS_SWATH:"E:\usgs\aster\AST_L1BE003090320051623270<BR>000000.hdf":VNIR_Swath:ImageData2<BR>
SUBDATASET_2_DESC=[4200x4980] ImageData2 (8-bit unsigned integer)<BR>
SUBDATASET_3_NAME=HDF4_EOS:EOS_SWATH:"E:\usgs\aster\AST_L1BE003090320051623270<BR>000000.hdf":VNIR_Swath:ImageData3N<BR>
SUBDATASET_3_DESC=[4200x4980] ImageData3N (8-bit unsigned integer)<BR>Corner
Coordinates:<BR>Upper Left ( 0.0,
0.0)<BR>Lower Left ( 0.0, 512.0)<BR>Upper Right
( 512.0, 0.0)<BR>Lower Right ( 512.0,
512.0)<BR>Center ( 256.0,
256.0)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>--------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#gdal_translate<BR>gdal_translate -of GTiff
"E:\usgs\aster\AST_L1BE003090320051623270000000.hdf"
e:\usgs\aster\AST_L1BE003090320051623270000000.tif<BR>Input file contains
subdatasets. Please, select one of them for reading.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>--------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>analogue to the description given at </FONT><A
href="http://www.remotesensing.org/gdal/frmt_hdf4.html"><FONT face=Arial
size=2>http://www.remotesensing.org/gdal/frmt_hdf4.html</FONT></A><FONT
face=Arial size=2> i tested gdalinfo for subdatasets</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><BR><FONT face=Arial size=2>gdalinfo
HDF4_EOS:EOS_SWATH:E:\usgs\aster\AST_L1BE003090320051623270000000.hdf:VNIR_Swath:ImageData3N</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>and also some variations:</FONT></DIV>
<DIV><FONT face=Arial size=2>gdalinfo
HDF4_EOS:EOS_SWATH:"E:\usgs\aster\AST_L1BE003090320051623270000000.hdf":VNIR_Swath:ImageData3N<BR>gdalinfo
"HDF4_EOS:EOS_SWATH:E:\usgs\aster\AST_L1BE003090320051623270000000.hdf:VNIR_Swath:ImageData3N"<BR>gdalinfo
'HDF4_EOS:EOS_SWATH:E:\usgs\aster\AST_L1BE003090320051623270000000.hdf:VNIR_Swath:ImageData3N'</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>--------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=505321914-04092006><FONT face=Arial size=2>nothing worked at
all. so i tested a modis-file</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>MODIS Level 1B</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Data: </FONT><A
href="http://outreach.eos.nasa.gov/Terra_CD-01/meta/modis/subset_MOD02_243.1850.hdf"><FONT
face=Arial
size=2>http://outreach.eos.nasa.gov/Terra_CD-01/meta/modis/subset_MOD02_243.1850.hdf</FONT></A></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#without GCP(-nogcp) und
metadata(-nomd)<BR>gdalinfo -nogcp -nomd
"E:\usgs\modis\subset_MOD02_243.1850.hdf"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Driver: HDF4/Hierarchical Data Format Release
4<BR>Size is 512, 512<BR>Coordinate System is `'<BR>Subdatasets:<BR>
SUBDATASET_1_NAME=HDF4_EOS:EOS_SWATH:"E:\usgs\modis\subset_MOD02_243.1850.hdf"<BR>:MODIS_SWATH_Type_L1B:EV_250_Aggr1km_RefSB<BR>
SUBDATASET_1_DESC=[2x2030x1354] EV_250_Aggr1km_RefSB (16-bit unsigned
integer)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
SUBDATASET_2_NAME=HDF4_EOS:EOS_SWATH:"E:\usgs\modis\subset_MOD02_243.1850.hdf"<BR>:MODIS_SWATH_Type_L1B:EV_500_Aggr1km_RefSB<BR>
SUBDATASET_2_DESC=[5x2030x1354] EV_500_Aggr1km_RefSB (16-bit unsigned
integer)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Corner Coordinates:<BR>Upper Left
( 0.0, 0.0)<BR>Lower Left
( 0.0, 512.0)<BR>Upper Right (
512.0, 0.0)<BR>Lower Right ( 512.0,
512.0)<BR>Center ( 256.0,
256.0)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>--------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#gdal_translate<BR>gdal_translate -of GTiff
"E:\usgs\modis\subset_MOD02_243.1850.hdf"
e:\usgs\modis\subset_MOD02_243.1850.tif<BR>Input file contains subdatasets.
Please, select one of them for reading.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>--------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>analogue to the description given at </FONT><A
href="http://www.remotesensing.org/gdal/frmt_hdf4.html"><FONT face=Arial
size=2>http://www.remotesensing.org/gdal/frmt_hdf4.html</FONT></A><FONT
face=Arial size=2> i tested gdalinfo for subdatasets</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><BR><FONT face=Arial size=2>gdalinfo
HDF4_EOS:EOS_SWATH:E:\usgs\modis\subset_MOD02_243.1850.hdf:MODIS_SWATH_Type_L1B:EV_250_Aggr1km_RefSB</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial
size=2>--------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=505321914-04092006>there were the same
problems i had already with the aster-files</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=505321914-04092006><FONT face=Arial size=2>last i tried the
sample files from <A
href="ftp://ftp.remotesensing.org/gdal/data/hdf4/">ftp://ftp.remotesensing.org/gdal/data/hdf4/</A></FONT></SPAN></DIV>
<DIV><SPAN class=505321914-04092006><FONT face=Arial
size=2></FONT></SPAN> </DIV><SPAN class=505321914-04092006>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>gdalinfo -nogcp -nomd
D:\user\OpenSource\Data\gdal\MO36MW14.chlor_MODIS.ADD2001089.004.2002186190207.hdf</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Driver: HDF4Image/HDF4 Dataset<BR>Size is 1024,
512<BR>Coordinate System is `'<BR>Corner Coordinates:<BR>Upper Left
( 0.0, 0.0)<BR>Lower Left
( 0.0, 512.0)<BR>Upper Right ( 1024.0,
0.0)<BR>Lower Right ( 1024.0,
512.0)<BR>Center ( 512.0,
256.0)<BR>Band 1 Block=1024x1 Type=UInt16, ColorInterp=Gray</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><BR><FONT face=Arial size=2>gdalinfo -nogcp -nomd
D:\user\OpenSource\Data\gdal\S2002196124536.L1A_HDUN.BartonBendish.extract.hdf</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Driver: HDF4Image/HDF4 Dataset<BR>Size is 320,
352<BR>Coordinate System is `'<BR>Corner Coordinates:<BR>Upper Left
( 0.0, 0.0)<BR>Lower Left
( 0.0, 352.0)<BR>Upper Right (
320.0, 0.0)<BR>Lower Right ( 320.0,
352.0)<BR>Center ( 160.0,
176.0)<BR>Band 1 Block=320x1 Type=Int16, ColorInterp=Gray<BR>Band 2 Block=320x1
Type=Int16, ColorInterp=Gray<BR>Band 3 Block=320x1 Type=Int16,
ColorInterp=Gray<BR>Band 4 Block=320x1 Type=Int16, ColorInterp=Gray<BR>Band 5
Block=320x1 Type=Int16, ColorInterp=Gray<BR>Band 6 Block=320x1 Type=Int16,
ColorInterp=Gray<BR>Band 7 Block=320x1 Type=Int16, ColorInterp=Gray<BR>Band 8
Block=320x1 Type=Int16, ColorInterp=Gray</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><BR><FONT face=Arial size=2>Both datasets have no subdatasets, so also the
gdal_translate works</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>gdal_translate -of GTiff
D:\user\OpenSource\Data\gdal\MO36MW14.chlor_MODIS.ADD2001089.004.2002186190207.hdf
D:\user\OpenSource\Data\gdal\MO36MW14.chlor_MODIS.ADD2001089.004.2002186190207.tif<BR>gdal_translate
-of GTiff
D:\user\OpenSource\Data\gdal\S2002196124536.L1A_HDUN.BartonBendish.extract.hdf
D:\user\OpenSource\Data\gdal\S2002196124536.L1A_HDUN.BartonBendish.extract.tif</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>the problem: the second result-file i can't
view with a normal image software like irfanview or photoshop, but for example
with erdas. ok, thats not so important for me now. i think i make some mistake
with the syntax defining the datasubsets. maybe somebody can help me<SPAN
class=505321914-04092006>, maybe its a windows special like ogr and
vpf.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>thanks and greetings from
munich<BR>christian</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV></SPAN> </DIV>
<DIV><SPAN class=505321914-04092006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=505321914-04092006><FONT face=Arial
size=2></FONT></SPAN> </DIV></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </SPAN></DIV>
<DIV> </DIV>
<DIV align=left>
<DIV class=Section1><FONT face=Arial
size=2></FONT> </DIV></DIV></BODY></HTML>