[R] Reading in .aux (ESRI raster files) into R

JoH jh643 at york.ac.uk
Fri Sep 24 16:21:41 CEST 2010


Dear All,

I'v tried to read in data in numerous ways including:-
Spain10km<-data.frame(readAsciiGrid("F://RMap//sp10kpointid1.aux"))
Error in readAsciiGrid("F://RMap//sp10kpointid1.aux") : 
  object 'cellsize' not found
In addition: Warning message:
In readLines(t, n = 6) :
  incomplete final line found on 'F://RMap//sp10kpointid1.aux'

Spain10km<-data.frame(readAsciiGrid("F:/GIS.LandcoverEuropeForRisk/Sept10kmmaps/Sp10KPointID.aux"))
Error in
readAsciiGrid("F:/GIS.LandcoverEuropeForRisk/Sept10kmmaps/Sp10KPointID.aux")
: 
  object 'cellsize' not found

My original data in Arc GIS is have a cell size an i'mm curious as to how to
make sure all the details are included.

I also tried to use 

Spain10km<-getRasterData("F://RMap//sp10kpointid1", ,band=NULL,
offset=c(0,0),region.dim=dim(sp10kpointid1,
output.dim=region.dim,interleave=c(0,0),as.is=FALSE))

Error in assertClass(dataset, "GDALReadOnlyDataset") : 
  Object is not a member of class GDALReadOnlyDataset
 Spain10km <- system.file("F://RMap//sp10kpointid1", package="rgdal")
#These lines were used to then try to get it to recognise sp10kpointid1 as a
member og the GDALReadOnly Dataset.
> x <- new("GDALReadOnlyDataset", Spain10km)
Error in .local(.Object, ...) : empty file name
> x <- new("sp10kpointid1", Spain10km)


Which is the best way to read this file into R? Why didn't it include my
classes?

Thank you,

Jo
-- 
View this message in context: http://r.789695.n4.nabble.com/Reading-in-aux-ESRI-raster-files-into-R-tp2553544p2553544.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list