<!DOCTYPE html><html><head>
<style type="text/css">body { font-family:'Times New Roman'; font-size:13px}</style>
</head>
<body><div>I don't know if this is related to an issue that I posted here some weeks ago where the HDF's array metadata is not read by the HDF5 driver (but this files are not HDF5) but the thing is that I can read it with the GMT developing version (maybe it works too with official releases version too but can't test it).</div><div><br></div><div>grdinfo MOD16A2.A2000193.h31v11.105.2013122033833.hdf=gd?HDF4_EOS:EOS_GRID:"MOD16A2.A2000193.h31v11.105.2013122033833.hdf":MOD_Grid_MOD16A2:ET_1km<br>HDF4_EOS:EOS_GRID:MOD16A2.A2000193.h31v11.105.2013122033833.hdf:MOD_Grid_MOD16A2:ET_1km: Title: Grid imported via GDAL<br>HDF4_EOS:EOS_GRID:MOD16A2.A2000193.h31v11.105.2013122033833.hdf:MOD_Grid_MOD16A2:ET_1km: Command:<br>HDF4_EOS:EOS_GRID:MOD16A2.A2000193.h31v11.105.2013122033833.hdf:MOD_Grid_MOD16A2:ET_1km: Remark:<br>HDF4_EOS:EOS_GRID:MOD16A2.A2000193.h31v11.105.2013122033833.hdf:MOD_Grid_MOD16A2:ET_1km: Gridline node registration used [Cartesian grid]<br>HDF4_EOS:EOS_GRID:MOD16A2.A2000193.h31v11.105.2013122033833.hdf:MOD_Grid_MOD16A2:ET_1km: Grid file format: gd = Import/export through GDAL<br>HDF4_EOS:EOS_GRID:MOD16A2.A2000193.h31v11.105.2013122033833.hdf:MOD_Grid_MOD16A2:ET_1km: x_min: 14455820.0684 x_max: 15566843.9626 x_inc: 926.625433055 name: x nx: 1200<br>HDF4_EOS:EOS_GRID:MOD16A2.A2000193.h31v11.105.2013122033833.hdf:MOD_Grid_MOD16A2:ET_1km: y_min: -3335388.24628 y_max: -2224364.35205 y_inc: 926.625433056 name: y ny: 1200<br>HDF4_EOS:EOS_GRID:MOD16A2.A2000193.h31v11.105.2013122033833.hdf:MOD_Grid_MOD16A2:ET_1km: z_min: 0.2 z_max: 3276.6 name: z<br>HDF4_EOS:EOS_GRID:MOD16A2.A2000193.h31v11.105.2013122033833.hdf:MOD_Grid_MOD16A2:ET_1km: scale_factor: 0.1 add_offset: 0 packed z-range: [2,32766]<br>+proj=sinu +lon_0=0 +x_0=0 +y_0=0 +a=6371007.181 +b=6371007.181 +units=m +no_defs<br></div><div><br></div><div>And for example extracting the first array.</div><div><br>grdconvert MOD16A2.A2000193.h31v11.105.2013122033833.hdf=gd?HDF4_EOS:EOS_GRID:"MOD16A2.A2000193.h31v11.105.2013122033833.hdf":MOD_Grid_MOD16A2:ET_1km lixo.grd</div><div><br></div><div><br></div><div><br></div><div>PS. Even, I did try to add the methods to the HDF5 driver but stumped on how to get the info out of the HDF5 file (damn complicated API) so fall back in GMT to fetch them from the text strings of all metadata. In lack of better, perhaps the same can be in the GDAL HDF5 driver.</div><div><br></div><div>Joaquim</div><div><br></div><div><br></div><blockquote style="margin: 0 0 0.80ex; border-left: #0000FF 2px solid; padding-left: 1ex"><div dir="ltr"><div>Hi,<br><br>I'm fairly new to GIS and could use some help converting MODIS LST and ET data to TIFF format in WGS84 projection.</div><div>Example files can be obtained here:</div><a href="http://e4ftl01.cr.usgs.gov/MOLT/MOD11A1.005/2004.03.31/MOD11A1.A2004091.h34v10.005.2007261231833.hdf" rel="nofollow" style="margin:0px;padding:0px;border:0px;font-size:15px;color:rgb(53,141,170);text-decoration:none;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;line-height:19.5px;background-color:rgba(248,248,248,0.6)">http://e4ftl01.cr.usgs.gov/MOLT/MOD11A1.005/2004.03.31/</a><div><font color="#358daa" face="Arial, Helvetica Neue, Helvetica, sans-serif"><span style="font-size:15px;line-height:19.5px"><a href="ftp://ftp.ntsg.umt.edu/pub/MODIS/NTSG_Products/MOD16/MOD16A2.105_MERRAGMAO/Y2000/D193/">ftp://ftp.ntsg.umt.edu/pub/MODIS/NTSG_Products/MOD16/MOD16A2.105_MERRAGMAO/Y2000/D193/</a></span></font></div><div><br></div><div>I'm haven't been able to figure out how to correctly specify the parameters in the gdalwarp step.</div><div>I've posted a GIS-Stack Exchange question <a href="https://gis.stackexchange.com/questions/194533/convert-modis-hdf-file-in-sinusoidal-projection-into-geotiff-with?noredirect=1#comment294925_194533">here</a>, but haven't gotten any replies yet.</div><div><br></div><div>Thanks a lot.</div></div>
</blockquote><br><br><br></body></html>