<div>Hi :</div>
<div>I want to handle some hdf4 data using gdal,and my goal is to get the subdatasetname of one hdf4,and I know I can use the gdalinfo to get the information,however what I get is just some plain text format as follows:</div>

<div>-------------------------</div>
<div>  WESTBOUNDINGCOORDINATE=94.0216705976118<br>  NORTHBOUNDINGCOORDINATE=58.2075179501186<br>  EASTBOUNDINGCOORDINATE=131.825225491885<br>  SOUTHBOUNDINGCOORDINATE=36.448663754723<br>  PROCESSINGENVIRONMENT=Linux minion5141 2.6.8.1-25mdksmp #1 SMP Tue May 31 09:52:06 MDT 2005 i686 IntelR PentiumR III CPU family      1133MHz unknown<br>
 GNU/Linux<br>  DESCRREVISION=5.0<br>Subdatasets:<br>  SUBDATASET_1_NAME=HDF4_EOS:EOS_SWATH:&quot;D:\data\HDF\MYD29.A2009061.0520.005.2009062044632.hdf&quot;:MOD_Swath_Sea_Ice:Sea_Ice_by_Reflectance<br>  SUBDATASET_1_DESC=[2030x1354] Sea_Ice_by_Reflectance MOD_Swath_Sea_Ice (8-bit unsigned integer)<br>
  SUBDATASET_2_NAME=HDF4_EOS:EOS_SWATH:&quot;D:\data\HDF\MYD29.A2009061.0520.005.2009062044632.hdf&quot;:MOD_Swath_Sea_Ice:Sea_Ice_by_Reflectance_Pixel_QA<br>  SUBDATASET_2_DESC=[2030x1354] Sea_Ice_by_Reflectance_Pixel_QA MOD_Swath_Sea_Ice (8-bit unsigned integer)<br>
  SUBDATASET_3_NAME=HDF4_EOS:EOS_SWATH:&quot;D:\data\HDF\MYD29.A2009061.0520.005.2009062044632.hdf&quot;:MOD_Swath_Sea_Ice:Ice_Surface_Temperature<br>  SUBDATASET_3_DESC=[2030x1354] Ice_Surface_Temperature MOD_Swath_Sea_Ice (16-bit unsigned integer)<br>
  SUBDATASET_4_NAME=HDF4_EOS:EOS_SWATH:&quot;D:\data\HDF\MYD29.A2009061.0520.005.2009062044632.hdf&quot;:MOD_Swath_Sea_Ice:Ice_Surface_Temperature_Pixel_QA<br>  SUBDATASET_4_DESC=[2030x1354] Ice_Surface_Temperature_Pixel_QA MOD_Swath_Sea_Ice (8-bit unsigned integer)</div>

<div>-------------------------------------------------------------------------------</div>
<div>So if I want to extract the subdataset name I should parser the text by myself,</div>
<div>I wonder if there are some liberary can do it using its method(maybe like this [getSubDataSetArrry()]).</div>
<div> </div>
<div>BTW,I am using java,and I want to know how to install the gdal in the xp os? Since I am using the gdal included in FWTools2.2.8,so I have to install the FWTTools frist,I wonder if there is other easy way?</div>