[gdal-dev] Convert raster from [0,360] to [-180,180]
Jose Gomez-Dans
jgomezdans at gmail.com
Wed Jan 20 13:20:16 EST 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100120/2ce0d24b/attachment.html
More information about the gdal-dev
mailing list