[GRASS-user] Correct import of a global grid (0E to 360E) to GRASS (-180W to 180E).

Marcello Gorini gorini at gmail.com
Sat Jun 30 23:20:14 PDT 2012


Michael  wrote:

> Which way does it get flipped?
> >
> > Most NetCDF files will import via r.in.gdal correctly, but they
> > are displayed as (from L->R) as 0->180E/180W->0. This is the way
> > that most climate model files are created and then stored.
>
>

It's not a climate model, but that's exactly the way it gets flipped.


Hamish wrote:


> note I've had some data in the past which either had bad meta-
> data embedded in it or GDAL was reading wrong. GRASS itself should
> deal with 0-360 longitudes just fine for raster maps. But if the
> import goes wrong for whatever reason it is easy to fix by
> resetting the bounds with r.region.
>


Thanks a lot, that solved it. Believe it or not I never used r.region,
so it didn't come into my mind: Simply doing:

r.region map=mymap e=180 w=-180

did the trick. Thanks again.

Best regards,
Marcello.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20120701/740c7cb6/attachment.html>


More information about the grass-user mailing list