<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Anna,<br>
    <br>
    I wonder how ENVI does the warping and if there isn't any hidden
    trick that must be applied. I did the warping in Mirone where I can
    choose to do a gdalwarp or warping using a totally independent code
    (from Matlab) and the results are equal and ... wrong.<br>
    <br>
    Joaquim<br>
    <br>
    <blockquote
      cite="mid:337649361.4308538.1296234450867.JavaMail.fmail@mwmweb078"
      type="cite"><span style="font-size: 9pt;"><span
          style="font-family: verdana,geneva;"><span
            style="background-color: transparent;"><span style="color:
              rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><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><a class="moz-txt-link-freetext" href="http://www.gdal.org/frmt_hdf4.html">http://www.gdal.org/frmt_hdf4.html</a>.<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: rgb(0, 0, 0);"><span style="color: rgb(0, 0,
                0);"><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:
              rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">
                <blockquote style="border-left: 2px solid blue;
                  margin-left: 5px; padding-left: 5px; padding-top:
                  5px;">
                  <hr>
                  <b>Von:</b> "Chaitanya kumar CH"
                  <a class="moz-txt-link-rfc2396E" href="mailto:chaitanya.ch@gmail.com">&lt;chaitanya.ch@gmail.com&gt;</a><br>
                  <b>Gesendet:</b> 19.01.2011 10:13:49<br>
                  <b>An:</b> "anna auge" <a class="moz-txt-link-rfc2396E" href="mailto:annaauge@web.de">&lt;annaauge@web.de&gt;</a><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 moz-do-not-send="true"
                    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>&lt;<a moz-do-not-send="true"
                        href="mailto:annaauge@web.de">annaauge@web.de</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin: 0pt
                      0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
                      204, 204); padding-left: 1ex;">
                      <div>
                        <div align="left"><span></span> </div>
                        <div align="left"><span><span
                              style="font-family: Arial; color: rgb(0,
                              0, 255); 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: rgb(0, 0, 255);"><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: rgb(0, 0, 0);"><span
                                  style="color: rgb(0, 0, 0);"></span></span></span></span></span><span
                          style="font-size: 9pt;"><span
                            style="font-family: verdana,geneva;"><span
                              style="background-color: transparent;"><span
                                style="color: rgb(0, 0, 0);"><span
                                  style="color: rgb(0, 0, 0);"><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: rgb(0, 0, 0);"><span
                                  style="color: rgb(0, 0, 0);">
                                  <blockquote style="border-left: 2px
                                    solid blue; margin-left: 5px;
                                    padding-left: 5px; padding-top:
                                    5px;">
                                    <hr>
                                    <b>Von:</b> "Nikolaos Hatzopoulos"
                                    &lt;<a moz-do-not-send="true"
                                      href="mailto:nhatzop@gmail.com"
                                      target="_blank">nhatzop@gmail.com</a>&gt;<br>
                                    <b>Gesendet:</b> 19.01.2011 01:33:43<br>
                                    <b>An:</b> "anna auge" &lt;<a
                                      moz-do-not-send="true"
                                      href="mailto:annaauge@web.de"
                                      target="_blank">annaauge@web.de</a>&gt;<br>
                                    <b>Betreff:</b> Re: [gdal-dev] Modis
                                    L1B SWATH: georef problem hdf to
                                    geotiff
                                    <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>&lt;<a
                                              moz-do-not-send="true"
                                              href="mailto:annaauge@web.de"
                                              target="_blank">annaauge@web.de</a>&gt;</span>
                                          wrote:<br>
                                          <blockquote
                                            class="gmail_quote"
                                            style="margin: 0pt 0pt 0pt
                                            0.8ex; border-left: 1px
                                            solid rgb(204, 204, 204);
                                            padding-left: 1ex;">
                                            <div
                                              style="background-repeat:
                                              repeat; background-color:
                                              rgb(255, 255, 255); color:
                                              rgb(0, 0, 0); font-family:
                                              verdana,geneva; font-size:
                                              9pt; padding-left: 0px;">
                                              <div style="min-height:
                                                200px;
                                                background-repeat:
                                                repeat;
                                                background-color:
                                                rgb(255, 255, 255);
                                                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:
                                                        rgb(0, 0, 0);"><span
                                                          style="color:
                                                          rgb(0, 0, 0);"></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
                                                  moz-do-not-send="true"
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
                                                  moz-do-not-send="true"
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
                                                  moz-do-not-send="true"
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
                                                  moz-do-not-send="true"
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
moz-do-not-send="true" width="1" border="0" height="1"></td>
                                                  </tr>
                                                  <tr>
                                                    <td
                                                      style="font-family:
                                                      verdana;
                                                      font-size: 12px;
                                                      line-height:
                                                      17px;"><a
                                                        moz-do-not-send="true"
href="http://WEB.DE" target="_blank">WEB.DE</a> DSL Doppel-Flat ab 19,99
                                                      €/mtl.! Jetzt mit
                                                         <br>
                                                      gratis Handy-Flat!
                                                      <a
                                                        moz-do-not-send="true"
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 moz-do-not-send="true"
                                              href="mailto:gdal-dev@lists.osgeo.org"
                                              target="_blank">gdal-dev@lists.osgeo.org</a><br>
                                            <a moz-do-not-send="true"
                                              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
                                  moz-do-not-send="true" 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
                                  moz-do-not-send="true"
                                  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 moz-do-not-send="true"
                        href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
                      <a moz-do-not-send="true"
                        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 border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td bgcolor="#000000"><img moz-do-not-send="true"
                src="https://img.web.de/p.gif" alt="" width="1"
                border="0" height="1"></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
                moz-do-not-send="true"
                href="https://freundschaftswerbung.web.de"><b>https://freundschaftswerbung.web.de</b></a></td>
          </tr>
        </tbody>
      </table>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
    </blockquote>
    <br>
  </body>
</html>