[R-sig-Geo] IDW example -- gstat, spatstat
Edzer Pebesma
edzer.pebesma at uni-muenster.de
Mon Oct 17 17:59:22 CEST 2011
You are right -- google pointed me to the example:
http://www.asdar-book.org/book/vis_mod.R
chunk 31, where the function "krige", without variogram model, results
in idw. To avoid confusing scripts that suggest kriging takes place,
package gstat also provides a function idw, which does the same thing, by
zn.idw <- idw(log(zinc) ~ 1, meuse, meuse.grid)
In addition, package spatstat contains a function called idw, doing idw
interpolation on a marked point pattern. When loading both spatstat and
gstat, this means the order of loading matters.
On 10/17/2011 03:39 PM, giuseppe calamita wrote:
> Hi Erin,
> did you check the book from Roger Bivand -Edzer Pebesma and Gomez-Rubìo: Applied spatial data analysis with R?
> There is some short explanation of how the algorithm work and just one record of code.
> If you want I think I can send you some line of codes as examples.
>
>
> Giuseppe
>
>
>
> ________________________________
> Da: "r-sig-geo-request at r-project.org"<r-sig-geo-request at r-project.org>
> A: r-sig-geo at r-project.org
> Inviato: Lunedì 17 Ottobre 2011 12:00
> Oggetto: R-sig-Geo Digest, Vol 98, Issue 15
>
> ----- Messaggio inoltrato -----
>
> Send R-sig-Geo mailing list submissions to
> r-sig-geo at r-project.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> or, via email, send a message with subject or body 'help' to
> r-sig-geo-request at r-project.org
>
> You can reach the person managing the list at
> r-sig-geo-owner at r-project.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of R-sig-Geo digest..."
>
> Today's Topics:
>
> 1. errors in installing HDF5 package under windows (zhijie zhang)
> 2. IDW example (Hodgess, Erin)
> 3. Creating big raster from small tiles (steven mosher)
> 4. Re: Creating big raster from small tiles (steven mosher)
> 5. Re: Creating big raster from small tiles (Robert J. Hijmans)
> 6. Re: Getting the other GIS to recognize files created by
> writeRaster() (Robert J. Hijmans)
> 7. measuring angle or relative direction of 2 lines (Tracey Osborne)
> 8. Re: Creating big raster from small tiles (steven mosher)
> 9. Re: errors in installing HDF5 package under windows
> (Paul Hiemstra)
> 10. Re: Delete points within a certain distance of each other
> (Paul Hiemstra)
> 11. Re: Delete points within a certain distance of each other
> (Mathieu Rajerison)
> 12. Re: errors in installing HDF5 package under windows
> (Paul Hiemstra)
> Dear all,
> The HDF5 binary package is not available now, so i download the source
> package and unzip it. When i check it before building the package, some
> errors appeared, see below. I donot think it's related with the R and HDF5
> versions. I guess i missed something here.
> --Errors--
> * installing *source* package 'hdf5' ...
> cygwin warning:
> MS-DOS style path detected:
> C:/PROGRA~1/R/R-213~1.2/bin/i386/HDF5~1.RCH/hdf5/libs
> Preferred POSIX equivalent is:
> /cygdrive/c/PROGRA~1/R/R-213~1.2/bin/i386/HDF5~1.RCH/hdf5/libs
> CYGWIN environment variable option "nodosfilewarning" turns off this
> warning.
> Consult the user's guide for more details about POSIX paths:
> http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
> cp: cannot stat `/cygdrive/d/Backup/my
> documents/hdf5-support/cyghdf5-0.dll': No such file or directory
> cp: cannot stat `/cygdrive/d/Backup/my documents/hdf5-support/mgwz.dll': No
> such file or directory
> ERROR: configuration failed for package 'hdf5'
> * removing 'C:/PROGRA~1/R/R-213~1.2/bin/i386/HDF5~1.RCH/hdf5'
> ---------
> If anybody have some experiences on reading HDF4 and HDF5 datasets
> successfully, please also give me more information on this.
> I have searched the R help, and cannot find a solution. Somebody suggest
> the rgdal, which seems not to work.
> Any suggestions or help are greatly appreciated.
>
>
>
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
--
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763 http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics e.pebesma at wwu.de
More information about the R-sig-Geo
mailing list