<body><span style="font-size: 9pt;"><span style="font-family: verdana,geneva;"><span style="background-color: transparent;"><span style="color: #000000;"><span style="color: #000000;"><br />hi all,<br />excuse me for not giving up. i undertook some additional tests, and i got the same problems i described below. But i can't believe that nobody is working with gdal and modis level 1b data. At least this format is listet as supported at </span></span></span></span></span>http://www.gdal.org/frmt_hdf4.html.<br />So my question: does anybody in this list work with modis level 1b? If yes, is the georeference of the resulting image ok or does somebody knows an workaround?<br />maybe the answer is, that it is not possible to warp modis level 1b data with gdal because the modis geolocation (mod3xxx) file is missing?<br />i appreciate any help.<br />cheers<br />anna<br /><span style="font-size: 9pt;"><span style="font-family: verdana,geneva;"><span style="background-color: transparent;"><span style="color: #000000;"><span style="color: #000000;"><br /></span></span></span></span></span><span style="font-size: 9pt;"><span style="font-family: verdana,geneva;"><span style="background-color: transparent;"><span style="color: #000000;"><span style="color: #000000;">
<blockquote style="border-left: 2px solid blue; margin-left: 5px; padding-left: 5px; padding-top: 5px;">
<hr />
<b>Von:</b> "Chaitanya kumar CH" <chaitanya.ch@gmail.com><br /><b>Gesendet:</b> 19.01.2011 10:13:49<br /><b>An:</b> "anna auge" <annaauge@web.de><br /><b>Betreff:</b> Re: [gdal-dev] Modis L1B SWATH: georef problem hdf to geotiff<br /><br />Anna,<br /><br />Check a couple of GCPs to rule out bad data. If they are OK, file a ticket at <a href="http://trac.osgeo.org/gdal/newticket">http://trac.osgeo.org/gdal/newticket</a><br /><br />
<div class="gmail_quote">On Wed, Jan 19, 2011 at 1:23 PM, anna auge <span><<a href="mailto:annaauge@web.de">annaauge@web.de</a>></span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;">
<div>
<div align="left"><span></span> </div>
<div align="left"><span><span style="font-family: Arial; color: #0000ff; font-size: x-small;">So it is a problem with gdalwarp and the GCPs ín the GeoTiff. Do you have any hints how to go on with this problem? </span></span></div>
<div><span></span><span style="font-family: Arial;"><span style="color: #0000ff;"><span style="font-size: x-small;">Cheers, Anna</span></span></span></div>
<span style="font-size: 9pt;"><span style="font-family: verdana,geneva;"><span style="background-color: transparent;"><span style="color: #000000;"><span style="color: #000000;"></span></span></span></span></span><span style="font-size: 9pt;"><span style="font-family: verdana,geneva;"><span style="background-color: transparent;"><span style="color: #000000;"><span style="color: #000000;"><br /></span></span></span></span></span><span style="font-size: 9pt;"><span style="font-family: verdana,geneva;"><span style="background-color: transparent;"><span style="color: #000000;"><span style="color: #000000;">
<blockquote style="border-left: 2px solid blue; margin-left: 5px; padding-left: 5px; padding-top: 5px;">
<hr />
<b>Von:</b> "Nikolaos Hatzopoulos" <<a href="mailto:nhatzop@gmail.com" target="_blank">nhatzop@gmail.com</a>><br /><b>Gesendet:</b> 19.01.2011 01:33:43<br /><b>An:</b> "anna auge" <<a href="mailto:annaauge@web.de" target="_blank">annaauge@web.de</a>><br /><b>Betreff:</b> Re: [gdal-dev] Modis L1B SWATH: georef problem hdf to geotiff
<div>
<div></div>
<div class="h5"><br /><br />You are right, I notice that there isn't any difference from the<br />band_1.tiff and band_1_warp.tiff<br /><br />--Nikos Hatzopoulos<br /><br />
<div class="gmail_quote">On Mon, Jan 17, 2011 at 8:15 AM, anna auge <span><<a href="mailto:annaauge@web.de" target="_blank">annaauge@web.de</a>></span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;">
<div style="background-repeat: repeat; background-color: #ffffff; color: #000000; font-family: verdana,geneva; font-size: 9pt; padding-left: 0px;">
<div style="min-height: 200px; background-repeat: repeat; background-color: #ffffff; font-family: verdana,geneva; font-size: 9pt; padding-left: 0px;"><span style="font-size: 9pt;"><span style="font-family: verdana,geneva;"><span style="background-color: transparent;"><span style="color: #000000;"><span style="color: #000000;"></span></span></span></span></span>Hi all,<br /><br />I am trying to convert modis level 1B data (type SWATH) to geotiff following these steps.<br /><br />1) Examining the HDF<br />gdalinfo d:\modis\1b\MOD021KM.A2011008.0850.005.2011008195744.hdf<br />gdalinfo HDF4_EOS:EOS_SWATH:"d:\modis\1b\MOD021KM.A2011008.0850.005.2011008195744.hdf":MODIS_SWATH_Type_L1B:EV_1KM_RefSB<br /> 2) Extracting the 1. band of the subdataset MODIS_SWATH_Type_L1B:EV_1KM_RefSB<br />gdal_translate -of GTiff -b 1 HDF4_EOS:EOS_SWATH:"d:\modis\1b\MOD021KM.A2011008.0850.005.2011008195744.hdf":MODIS_SWATH_Type_L1B:EV_1KM_RefSB d:\modis\1b\band_1.tiff<br /> 4) Warping the image to WGS84<br />gdalwarp -t_srs EPSG:4326 d:\modis\1b\band_1.tiff d:\modis\1b\band_1_warp.tiff<br /><br />The example dataset, which i am using, can be downloaded here<br /><a href="ftp://ladsftp.nascom.nasa.gov/allData/5/MOD021KM/2011/008//MOD021KM.A2011008.0850.005.2011008195744.hdf" target="_blank">ftp://ladsftp.nascom.nasa.gov/allData/5/MOD021KM/2011/008//MOD021KM.A2011008.0850.005.2011008195744.hdf</a><br /><br />And now to my problem: I get always an certain shift (<a href="http://www.flickr.com/photos/54033867@N00/5363471425/in/photostream/" target="_blank">http://www.flickr.com/photos/54033867@N00/5363471425/in/photostream/</a>), which is avoided if i am using the "Georeference MODIS" option in ENVI (<a href="http://www.flickr.com/photos/54033867@N00/5364083966/in/photostream/" target="_blank">http://www.flickr.com/photos/54033867@N00/5364083966/in/photostream/</a>).<br /> I also tried a few workarounds, f.g. <a href="http://thread.gmane.org/gmane.comp.gis.gdal.devel/10482" target="_blank">http://thread.gmane.org/gmane.comp.gis.gdal.devel/10482</a>, but nothing worked properly.<br />As far as I understand gdal supports Modis L1B SWATH, so what I am doing wrong? Any help is appreciated.<br /><br />Regards Anna<br /><br />P.S. I am using FWTools 2.4.7 on Windows</div>
<br /><br />
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td bgcolor="#000000"><img width="1" border="0" height="1" /></td>
</tr>
<tr>
<td style="font-family: verdana; font-size: 12px; line-height: 17px;"><a href="http://WEB.DE" target="_blank">WEB.DE</a> DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt mit <br />gratis Handy-Flat! <a href="http://produkte.web.de/go/DSL_Doppel_Flatrate/2" target="_blank"><b>http://produkte.web.de/go/DSL_Doppel_Flatrate/2</b></a></td>
</tr>
</tbody>
</table>
</div>
<br />_______________________________________________<br /> gdal-dev mailing list<br /><a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br /><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br /></blockquote>
</div>
</div>
</div>
</blockquote>
</span></span></span></span></span> <br /><br />
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td bgcolor="#000000"><img width="1" border="0" height="1" /></td>
</tr>
<tr>
<td style="font-family: verdana; font-size: 12px; line-height: 17px;">NEU: FreePhone - kostenlos mobil telefonieren und surfen!                                 <br />Jetzt informieren: <a href="http://produkte.web.de/go/webdefreephone" target="_blank"><b>http://produkte.web.de/go/webdefreephone</b></a></td>
</tr>
</tbody>
</table>
</div>
<br />_______________________________________________<br /> gdal-dev mailing list<br /><a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br /><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br /></blockquote>
</div>
<br /><br clear="all" /><br />-- <br />Best regards,<br />Chaitanya kumar CH.<br /> /tʃaɪθənjə/ /kʊmɑr/ <br />+91-9494447584<br />17.2416N 80.1426E<br /></blockquote>
</span></span></span></span></span> <br><br><table cellpadding="0" cellspacing="0" border="0"><tr><td bgcolor="#000000"><img src="https://img.web.de/p.gif" width="1" height="1" border="0" alt="" /></td></tr><tr><td style="font-family:verdana; font-size:12px; line-height:17px;">Empfehlen Sie WEB.DE DSL Ihren Freunden und Bekannten und wir <br>belohnen Sie mit bis zu 50,- Euro! <a href="https://freundschaftswerbung.web.de"><b>https://freundschaftswerbung.web.de</b></a></td></tr></table>
</body>