[GRASS-user] problem importing .adf format with r.in.gdal

William Kyngesburye woklist at kyngchaos.com
Mon Sep 7 10:32:03 EDT 2009


On Sep 7, 2009, at 7:50 AM, Hamish wrote:

> Tim Holland wrote:
>> But when I try exactly the same code with the higher
>> resolution version,
>>> r.in.gdal input=/Users/usr/datasets/c_1km/hdr.adf
>> output=IPCC_Carbon_1km --o -o
>> I get
>> WARNING: G_set_window(): Illegal latitude for North
>> and it will not import.
>
> in grass 6.5 and 7 r.in.gdal has a new -l flag to get around
> that. GRASS in lat/lon mode will refuse to accept e.g. +91 as
> a valid latitude. If georeferencing does not exist it uses
> pixel/cell values as north and east, and if there are more than
> 90 rows you get an error.

I've also noticed rounding errors coming from Arc raster sources,  
especially at higher resolutions.  The cell size will be something  
like 0.000277778 (for 1sec) instead of having more digits.  Added up  
for a full degree, you get slightly more than a degree.

Probably something to do with single precision that is common in Arc.   
I get this when downloading DEM data from the USGS Seamless.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

The equator is so long, it could encircle the earth completely once.



More information about the grass-user mailing list