[GRASS-user] importing a adf file - resolution question

Markus Metz markus.metz.giswork at gmail.com
Wed Sep 25 01:11:57 PDT 2013


On Tue, Sep 24, 2013 at 6:57 PM, Kirk Wythers <kirk.wythers at gmail.com> wrote:
> I just used r.in.gdal to import a .adf. The files came from the global
> aridity and pet database hosted by CGIAR CSI

CGIAR CSI produces a lot of misaligned raster data.
>
> http://www.cgiar-csi.org/data/global-aridity-and-pet-database
>
> Originally I was getting the warning:
> WARNING: G_set_window(): Illegal latitude for North
>
> so I used the -l option. The file appears to have imported
>
> GRASS 6.4.3 (globe_30s):~ > r.in.gdal -l
> in=~/projects/global_aridity/AI_annual/ai_yr/w001001.adf out=ai
> WARNING: Map bounds have been constrained to geographic coordinates. You
>          will almost certainly want to check map bounds and resolution with
>          r.info and reset them with r.region before going any further.

As the message says, you need to fix the raster extents and resolution
with r.region

>
> GRASS 6.4.3 (globe_30s):~ > r.info ai
>
> +----------------------------------------------------------------------------+
>  | Layer:    ai                             Date: Tue Sep 24 11:06:02 2013
>  |        Projection: Latitude-Longitude
> |
>  |            N:        90N    S:        60S   Res: 0:00:30

North has been fixed during import, it was most probably larger than
90N with 90:00:00.067592N
> |
>  |            E: 179:59:59.932408W    W:       180W   Res: 0:00:00.000002

That should most probably be E: 180E W: 180W

> I'm not sure what to do with this? Any suggestions would be most
> appreciated!
>

Thus try r.region map=ai e=180 w=-180

HTH,

Markus M


More information about the grass-user mailing list