[GRASS-user] Re: Unable to open gridded data

Hermann Peifer peifer at gmx.eu
Sun Dec 13 10:46:46 EST 2009


I never had any problems with importing ESRI grid data with GRASS 6.4. 

Just follow the Wiki page for the header and use r.in.gdal for importing the data. 

Hermann


-------- Original Message  --------
Subject: Re:Unable to open gridded data
From: Muhammad Rahiz <muhammad.rahiz at ouce.ox.ac.uk>
To: 
Date: 13/12/2009 16:24

> Thanks Hermann,
> 
> My original datafile has no colons. I've tried adding colon, removing 
> colon, removing spaces etc but nothing works.
> 
> Muhammad Rahiz  |  Doctoral Student in Regional Climate Modeling
> Climate Research Laboratory, School of Geography & the Environment   
> Oxford University Centre for the Environment, University of Oxford
> South Parks Road, Oxford, OX1 3QY, United Kingdom
> Tel: +44 (0)1865-285194     Mobile: +44 (0)7854-625974
> Email: muhammad.rahiz at ouce.ox.ac.uk
> 
> 
> 
> Hermann Peifer wrote:
>>> Illegal line in header
>>> ncols:         180
>>>     
>>
>> My guess would be that the colon is the culprit. See also 
>> http://en.wikipedia.org/wiki/ESRI_grid
>>
>>
>> Hermann
>>
>> -------- Original Message  --------
>> Subject: Unable to open gridded data
>> From: Muhammad Rahiz <muhammad.rahiz at ouce.ox.ac.uk>
>> To: Date: 11/12/2009 10:07
>>
>>  
>>> Dear GRASS-users,
>>>
>>> I'm new to GRASS although I'm not new to GIS. I can't seem to be able 
>>> to load my gridded data into GRASS using r.in.arc.
>>>
>>> The following error message appears
>>>
>>> Illegal line in header
>>> ncols:         180
>>> "yllcorner" field missing from header
>>> "xllcorner" field missing from header
>>> "nrows" field missing from header
>>> "ncols" field missing from header
>>> "cellsize" field missing from header
>>> "nodata_value" field missing from header
>>> ERROR: Can't get cell header
>>>
>>> The following is how the format  of the header of my gridded data 
>>> looks like;
>>>
>>> ncols         180
>>> nrows         290
>>> xllcorner     -200000
>>> yllcorner     -200000
>>> cellsize      5000
>>> NODATA_value  -9999
>>>
>>> Does anyone have any suggestions?
>>>
>>> Thanks.
>>>
>>> Muhammad
>>>
>>>     
>>
>>   
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
> 



More information about the grass-user mailing list