Re: [R-sig-Geo] ASCII grid file - extracting data after import with readGDAL()

2011-08-26 Thread Matthew Landis
No worries. good luck! On 8/26/2011 10:45 AM, Michał Kwieciński wrote: Learning about existence of "band1" was what I actually needed. Apart from one bigger spatial econometrics project, I haven't done much work with R yet, so I still lack some knowledge on basic operations - I will try to reme

Re: [R-sig-Geo] ASCII grid file - extracting data after import with readGDAL()

2011-08-26 Thread Michał Kwieciński
Learning about existence of "band1" was what I actually needed. Apart from one bigger spatial econometrics project, I haven't done much work with R yet, so I still lack some knowledge on basic operations - I will try to remember about the names() function next time. I thought the problem would lie

Re: [R-sig-Geo] ASCII grid file - extracting data after import with readGDAL()

2011-08-26 Thread Matthew Landis
If you want to see more info of the dataset, you can also view it with str(map@data) or head(map@data) Matt On 8/26/2011 9:57 AM, Forrest Stevens wrote: As you said, readGDAL will give you a SpatialGridDataFrame object, which behaves much like a normal data.framet. Your best bet is to run

Re: [R-sig-Geo] ASCII grid file - extracting data after import with readGDAL()

2011-08-26 Thread Forrest Stevens
As you said, readGDAL will give you a SpatialGridDataFrame object, which behaves much like a normal data.framet. Your best bet is to run it through names to see what data are available to work with: names(map) Like a regular data.frame this will give you the bands or data read in from your ASCII

[R-sig-Geo] ASCII grid file - extracting data after import with readGDAL()

2011-08-26 Thread Michał Kwieciński
Hi, I am having difficulty in reading data for further use that is in ASCII grid format (it's the UN population data from http://sedac.ciesin.columbia.edu/gpw). I used readGDAL function which leaves me with SpatialGridDataFrame class object, but apart from creating simple image with map = readGDA