[R-sig-Geo] ascii grid from arcgis
Roger Bivand
Roger.Bivand at nhh.no
Wed Jun 20 08:50:13 CEST 2007
On Tue, 19 Jun 2007, Michael Sumner wrote:
> You ought to be able to read that using readGDAL (rgdal) which will
> return you a SpatialGridDataFrame. You then have methods for image and
> spplot that will work:
Or for OSX users without rgdal, there is a simple readAsciiGrid() function
in maptools to do the same.
Roger
>
>
> ## NOT TESTED:
> library(rgdal)
> asc <- "file.asc" ## or whatever it is
> g <- readGDAL(asc)
>
> summary(g)
>
> image(g)
>
> ## OR
> spplot(g)
>
>
> ==============Original message text===============
> On Tue, 19 Jun 2007 5:29:35 +1000 Thomas Szegvary wrote:
>
> sorry for spamming all of you with my problems...but here's another one:
>
> I have ascii grids from ESRI ArcGIS in the following format:
> ncols 42
> nrows 36
> xllcorner -10.311630235357
> yllcorner 35.110501339805
> cellsize 1
> NODATA_value -9999
>
> Is there an already existing comand to plot that type of grid? or do I have to
> (re)define the grid?
>
> Thanks a lot for any help
> Thomas
>
> --
> Thomas Szegvary
> Environmental Geosciences
> University of Basel
> Bernoullistrasse 30
> CH-4056 Basel
> Switzerland
>
> Tel. ++41-61-267 04
> Fax. ++41-61-267 04 79
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
> ===========End of original message text===========
>
>
>
> If it wasn't backed-up, then it wasn't important. ~ Anon sysadmin
>
> Mike Sumner (Phd. Candidate)
> http://www.antcrc.utas.edu.au/~mdsumner/ http://www.zoo.utas.edu.au/awru/ IASOS/AWRU
> University of Tasmania
> Private Bag 80
> Hobart Tasmania 7001
> AUSTRALIA
> Email: mdsumner at utas.edu.au
> Phone: 03 6226 1752 (W)
> 0408599921 (M)
> Fax: 03 6226 2745
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no
More information about the R-sig-Geo
mailing list