It seems interesting I&#39;ll keep a note on this :)<br><br>The question is how you can build a VRT mosaic directly from MODIS hdf files, because<br>the problem is that you have to mosaic first and after that to transform them to the<br>
EPSG:4326 projection. If you transform them first and mosaic them after you might have<br>white lines.<br><br>--Nikos<br><br><div class="gmail_quote">2011/7/25 Brian Case <span dir="ltr">&lt;<a href="mailto:rush@winkey.org">rush@winkey.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">anna, Nikolaos,<br>
<br>
after much experimentation I found something that seems to work.<br>
<br>
gdalwarp --config GEOL_AS_GCPS FULL \<br>
         -tps -geoloc -t_srs EPSG:4326 \<br>
         -te -119.88004906118 13.5092548294379 \<br>
         -92.6036641645677 34.7070050511582 \<br>
HDF4_EOS:EOS_SWATH:&quot;MOD02HKM.A2011169.1750.005.NRT.hdf&quot;:MODIS_SWATH_Type_L1B:EV_500_RefSB \ MOD02HKM.A2011169.1750.005.NRT.tif<br>
<br>
note i tried to escape the newlines to make it easy to read but the<br>
email may mess that up.<br>
<br>
there is about 2.7 million gcp&#39;s in a normal 5min modis swath file, by<br>
default gdal only reads every 10th row and column of gcp&#39;s this is not<br>
enough to handle the bowtie effect.<br>
<br>
<br>
Brian<br>
<br>
On Tue, 2011-01-18 at 16:33 -0800, Nikolaos Hatzopoulos wrote:<br>
&gt; You are right, I notice that there isn&#39;t any difference from the<br>
&gt; band_1.tiff and band_1_warp.tiff<br>
&gt;<br>
&gt; --Nikos Hatzopoulos<br>
&gt;<br>
&gt; On Mon, Jan 17, 2011 at 8:15 AM, anna auge &lt;<a href="mailto:annaauge@web.de">annaauge@web.de</a>&gt; wrote:<br>
&gt;         Hi all,<br>
&gt;<br>
&gt;         I am trying to convert modis level 1B data (type SWATH) to<br>
&gt;         geotiff following these steps.<br>
&gt;<br>
&gt;         1) Examining the HDF<br>
&gt;         gdalinfo d:\modis\1b<br>
&gt;         \MOD021KM.A2011008.0850.005.2011008195744.hdf<br>
&gt;         gdalinfo HDF4_EOS:EOS_SWATH:&quot;d:\modis\1b<br>
&gt;         \MOD021KM.A2011008.0850.005.2011008195744.hdf&quot;:MODIS_SWATH_Type_L1B:EV_1KM_RefSB<br>
&gt;         2) Extracting the 1. band of the subdataset<br>
&gt;         MODIS_SWATH_Type_L1B:EV_1KM_RefSB<br>
&gt;         gdal_translate -of GTiff -b 1 HDF4_EOS:EOS_SWATH:&quot;d:\modis\1b<br>
&gt;         \MOD021KM.A2011008.0850.005.2011008195744.hdf&quot;:MODIS_SWATH_Type_L1B:EV_1KM_RefSB d:\modis\1b\band_1.tiff<br>
&gt;         4) Warping the image to WGS84<br>
&gt;         gdalwarp -t_srs EPSG:4326 d:\modis\1b\band_1.tiff d:\modis\1b<br>
&gt;         \band_1_warp.tiff<br>
&gt;<br>
&gt;         The example dataset, which i am using, can be downloaded here<br>
&gt;         <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>

&gt;<br>
&gt;         And now to my problem: I get always an certain shift<br>
&gt;         (<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 &quot;Georeference MODIS&quot; 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>

&gt;         I also tried a few workarounds, f.g.<br>
&gt;         <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<br>
&gt;         nothing worked properly.<br>
&gt;         As far as I understand gdal supports Modis L1B SWATH, so what<br>
&gt;         I am doing wrong? Any help is appreciated.<br>
&gt;<br>
&gt;         Regards Anna<br>
&gt;<br>
&gt;         P.S. I am using FWTools 2.4.7 on Windows<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         <a href="http://WEB.DE" target="_blank">WEB.DE</a> DSL Doppel-Flat ab 19,99 ¤/mtl.! Jetzt mit<br>
&gt;         gratis Handy-Flat!<br>
&gt;         <a href="http://produkte.web.de/go/DSL_Doppel_Flatrate/2" target="_blank">http://produkte.web.de/go/DSL_Doppel_Flatrate/2</a><br>
&gt;<br>
&gt;         _______________________________________________<br>
&gt;         gdal-dev mailing list<br>
&gt;         <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
&gt;         <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; gdal-dev mailing list<br>
&gt; <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
<br>
<br>
</blockquote></div><br>