[gdal-dev] Convert raster from [0,360] to [-180,180]

Frank Warmerdam warmerdam at pobox.com
Thu Jan 21 20:30:43 EST 2010


Jose,

If you file a ticket with details/data on how to reproduce this
problem, I'd be willing to look into it briefly.  I had sort of hoped
the approach you mention would have worked.


On Wed, Jan 20, 2010 at 1:20 PM, Jose Gomez-Dans <jgomezdans at gmail.com> wrote:
> Hi,
> I have some raster files spanning the globe from 0 to 360 degrees longitude.
> However, I would rather they be in the -180 to 180 degree range. While I can
> do this converting into VRTs and playing around with the SimpleSource
> element, I also saw a posting on this list that suggests that one can easily
> use gdalwarp for this
> <http://lists.osgeo.org/pipermail/gdal-dev/2006-June/009293.html>. The
> suggested command is
>
> gdalwarp --config CENTER_LONG 180 openev/utm.tif ll.tif -t_srs WGS84
>
> I have tried this command on my file (which is initially in WGS84 0 to 360),
> set the value of CENTER_LONG to 0, but I basically get my old raster back,
> with the longitudes going from 0 to 360.
>
> Anything other than scripting/VRT editing?
>
> Thanks!
> Jose
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
---------------------------------------+--------------------------------------
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    | Geospatial Programmer for Rent


More information about the gdal-dev mailing list