[Gdal-dev] Warping MODIS

Frank Warmerdam warmerdam at pobox.com
Mon Feb 19 16:24:56 EST 2007


guillaume huby wrote:
> I tried (EPSG:27572 is NTF (Paris) / Lambert zone II):
> ################## Code
> gdalwarp -t_srs EPSG:27572 HDF4_EOS:EOS_GRID:"SomeData.hdf":Product:Band 
> SomeData_out.tif
> gdalwarp -s_srs "+proj=sinu +lon_0=0 +x_0=0 +y_0=0 +a=6371007.181 
> +b=6371007.181 +units=m  no_defs <>" -t_srs EPSG:27572 
> HDF4_EOS:EOS_GRID:" SomeData.hdf":Product:Band SomeData_out.tif
> ################## End code
> 
> These commands gave me a shift in the Y axis (around 21 km).
> 
> Using the trick of Markus ( 
> http://mpa.itc.it/markus/useful/modis_hdf2erdas_ll_wgs84.sh) is a 
> solution, but in 3 commands like Jose described.
> 
> Do you know a shorter way to achieve this ?
> 
> Thank you in advance for your reply.

Guillaume,

I have no better suggestions at this time.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list