<p style="margin: 0px; padding: 0px;">If I try your command I get</p><p style="margin: 0px; padding: 0px;"><p>ERROR 1: Unable to compute a transformation between pixel/line</p><p>and georeferenced coordinates for temp.tif.</p><p style="margin: 0px; padding: 0px;">There is no affine transformation and no GCPs.</p><p style="margin: 0px; padding: 0px;"><br></p></p>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'>
----Messaggio originale----<br>
Da: <a href="/user/SendEmail.jtp?type=node&node=5048000&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a><br>
Data: 18/04/2013 16.18<br>
A: "laura0"<<a href="/user/SendEmail.jtp?type=node&node=5048000&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>><br>
Ogg: Re: MODIS reprojection<br>
<br>


        I use a similar command, without the -a_ullr argument<div><br></div><div>e.g.</div><div><br></div><div><div>gdal_translate -a_srs '+proj=sinu +R=6371007.181 +nadgrids=@null +wktext' <input HDF subdataset> <output tiff file></div>
<br><div class="gmail_quote">On Thu, Apr 18, 2013 at 6:10 AM, Rutger <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=5047999&i=0" mce_href="../../../../user/SendEmail.jtp?type=node&node=5047999&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote" mce_style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey Laura,<br>
<br>
Since the MxD14.A2 products are already projected in the sinusoidal<br>
projection there is no need to warp using GCP's. Fitting a polynomial<br>
through some GCP's will always be less accurate then using the projection<br>
the data is already in.<br>
<br>
Somewhere in the metadata in the HDF there should be a boundingbox (corner<br>
coordinates, in sinusoidal projection) for the specific tile you are using,<br>
you can then assign these with the projection using gdal_translate. Once<br>
assigned, you can use gdalwarp in the same way as you already described.<br>
<br>
Youre gdal_translate command should look somewhat like this:<br>
gdal_translate -of "VRT" -a_srs "+proj=sinu +lon_0=0 +x_0=0 +y_0=0<br>
+a=<a href="tel:6371007.181" value="+556371007181">6371007.181 +b=<a href="tel:6371007.181" value="+556371007181">6371007.181 +units=m +no_defs" -a_ullr 2223901.039333<br>
-3335851.559000 3335851.559000 -4447802.078667 <input HDF subdataset><br>
<output vrt file><br>
<br>
You can get the correct subdataset reference by running gdalinfo on you HDF.<br>
The coordinates i used are for tile h20v12, so make sure you use the ones<br>
from your tile. I used a vrt as output which you can use as an input for<br>
gdal_translate, but its also fine to use Geotiff or anything else you<br>
prefer.<br>
<br>
Hope this helps.<br>
<br>
Regards,<br>
Rutger<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/MODIS-reprojection-tp5047700p5047887.html" mce_href="http://osgeo-org.1560.x6.nabble.com/MODIS-reprojection-tp5047700p5047887.html" target="_blank" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/MODIS-reprojection-tp5047700p5047887.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="/user/SendEmail.jtp?type=node&node=5047999&i=1" mce_href="../../../../user/SendEmail.jtp?type=node&node=5047999&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" mce_href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br></div>
<br>_______________________________________________
<br>gdal-dev mailing list
<br><a href="/user/SendEmail.jtp?type=node&node=5047999&i=2" mce_href="../../../../user/SendEmail.jtp?type=node&node=5047999&i=2" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" mce_href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a>

        
        
        
        <br>
        <br>
        <hr noshade="noshade" size="1" color="#cccccc">
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;" mce_style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold" mce_style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://osgeo-org.1560.x6.nabble.com/MODIS-reprojection-tp5047700p5047999.html" mce_href="http://osgeo-org.1560.x6.nabble.com/MODIS-reprojection-tp5047700p5047999.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/MODIS-reprojection-tp5047700p5047999.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em" mce_style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from MODIS reprojection, <a href="" mce_href="" target="_top" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" mce_href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" mce_style="font:9px serif" target="_top" link="external">NAML</a>
        </div><br>
</blockquote><p><br></p><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;"> </div>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/R-Re-MODIS-reprojection-tp5048000.html">R: Re: MODIS reprojection</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html">GDAL - Dev mailing list archive</a> at Nabble.com.<br/>