I've tried the script... I also tried changing it a bit.. find it in attachment... I get the following error trace for my 26 subdatasets... any ideas?<br><br><br><br><span style="font-weight: bold;">rasdaman@mattia-desktop
:~/FTPCHINA$ ./modis_hdf2erdas_ll_wgs84.sh AMOD021KM20061229043102.hdf<br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf
":0.<br>There is no affine transformation and no GCPs.<br>ERROR 4: `0.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`0.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":1.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `1.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`1.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":2.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `2.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`2.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":3.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `3.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`3.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":4.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `4.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`4.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":5.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `5.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`5.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":6.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `6.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`6.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":7.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `7.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`7.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":8.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `8.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`8.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":9.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `9.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`9.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":10.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `10.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`10.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":11.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `11.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`11.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":12.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `12.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`12.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":13.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `13.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`13.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":14.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `14.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`14.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":15.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `15.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`15.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":16.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `16.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`16.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":17.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `17.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`17.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":18.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `18.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`18.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":19.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `19.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`19.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":20.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `20.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`20.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":21.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `21.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`21.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":22.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `22.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`22.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":23.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `23.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`23.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":24.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `24.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`24.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":25.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `25.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`25.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br>ERROR 1: Unable to compute a transformation between pixel/line<br>and georeferenced coordinates for HDF4_SDS:UNKNOWN:"AMOD021KM20061229043102.hdf":26.
<br>There is no affine transformation and no GCPs.<br>ERROR 4: `26.tmp.img' does not exist in the file system,<br>and is not recognised as a supported dataset name.<br><br>GDALOpen failed - 4<br>`26.tmp.img' does not exist in the file system,
<br>and is not recognised as a supported dataset name.<br><br></span>THanks again<br>
<br>
Mattia<br><br><br><div><span class="gmail_quote">On 4/13/07, <b class="gmail_sendername">Markus Neteler</b> <<a href="mailto:neteler@itc.it">neteler@itc.it</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, Apr 13, 2007 at 02:08:48PM +0200, mattia wrote:<br>> Hey all, I really have great confusion on how to convert my HDF 4 images<br>> which reside as multiple bands into a single HDF file to a GeoTiff<br>
> geo-referenced image. In reality, I need to convert the format into a<br>> single latitude/longitude WGS-84 referenced TIFF image..I need to do this<br>> and at the same time obtain a .tfw file which specifies the top left
<br>> corner coordinates of the image's bounding box and the pixel resolution of<br>> the image.<br><br>You may want to take a look at this thread:<br> <a href="http://lists.maptools.org/pipermail/gdal-dev/2007-February/011744.html">
http://lists.maptools.org/pipermail/gdal-dev/2007-February/011744.html</a><br><br>Probably it also works for this MODIS data set.<br><br>> I've been told that the images are MODIS images from Terra and Aqua satellites.
<br>> I also read that MODIS is used for snow detection only.. is this correct??<br><br>No. MODIS is used for many applications, not only snow.<br>I have some older pages at<br> <a href="http://mpa.itc.it/rs/">http://mpa.itc.it/rs/
</a><br>illustrating<br> * Surface Reflectance Daily<br> * Snow coverage<br> * NDVI / EVI Vegetation index<br> * Land Surface Temperature (LST, incl. multitemporal analysis example)<br> * Atmosphere Daily Global Product
<br><br>which is a fraction of the available products:<br><a href="http://edcdaac.usgs.gov/modis/dataproducts.asp">http://edcdaac.usgs.gov/modis/dataproducts.asp</a><br>(there is more)<br><br>...<br>> Hence my question is, how do I tell the command to pick up a certain
<br>> dataset?? And, where can I find the relative documentation for this<br>> command when applied to multiple HDF bands??<br><br>See above script and/or<br><a href="http://www.gdal.org/frmt_hdf4.html">http://www.gdal.org/frmt_hdf4.html
</a><br><br>> Finally, I reside in Germany and need to transform a whole lot of images<br>> into GeoTiff to later establish a WMS service .. Hence all conversion will<br>> need be done remotely... Does anyone have any suggestions on how I should
<br>> go on about this?? Should I be using the gdal library or would I best bet<br>> on something else???<br><br>GDAL is just fine for this. Maybe plus some scripting.<br><br>Markus<br><br>> Msphinx?? ENVI??
<br>><br>> --<br>> Mattia<br><br>------------------<br>ITC -> dall'1 marzo 2007 Fondazione Bruno Kessler<br>ITC -> since 1 March 2007 Fondazione Bruno Kessler<br>------------------<br>_______________________________________________
<br>Gdal-dev mailing list<br><a href="mailto:Gdal-dev@lists.maptools.org">Gdal-dev@lists.maptools.org</a><br><a href="http://lists.maptools.org/mailman/listinfo/gdal-dev">http://lists.maptools.org/mailman/listinfo/gdal-dev
</a><br></blockquote></div><br><br clear="all"><br>-- <br>Mattia