Re: [R] spatialpixelsdataframe
Dave Depew wrote: > I have a spatialpixelsdataframe containing bathymetry data. Is it > possible to save this as something similar to the meuse.grid so it can > be loaded without having to run the spatial interpolation each time the > script is called? > I don't see a straightforward method in the sp documentation. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > Hi Dave, You can save the SpatialPixelsDataFrame to a file using: save(SPDF_object, file ="test.rda") And reload it with: load(test.rda) This is not specific to the sp-package. These kinds of questions are better to post to the r-sig-geo mailing list. Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +31302535773 Fax:+31302531145 http://intamap.geo.uu.nl/~paul __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] spatialpixelsdataframe
Thanks Paul, Will keep that in mind for my next query :-) Paul Hiemstra wrote: > Dave Depew wrote: >> I have a spatialpixelsdataframe containing bathymetry data. Is it >> possible to save this as something similar to the meuse.grid so it >> can be loaded without having to run the spatial interpolation each >> time the script is called? >> I don't see a straightforward method in the sp documentation. >> >> __ >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> > Hi Dave, > > You can save the SpatialPixelsDataFrame to a file using: > > save(SPDF_object, file ="test.rda") > > And reload it with: > > load(test.rda) > > This is not specific to the sp-package. These kinds of questions are > better to post to the r-sig-geo mailing list. > > Paul > __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.