[Raster-commits] r419 - in pkg/raster: . inst/doc
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Apr 20 04:34:26 CEST 2009
Author: rhijmans
Date: 2009-04-20 04:34:25 +0200 (Mon, 20 Apr 2009)
New Revision: 419
Modified:
pkg/raster/DESCRIPTION
pkg/raster/inst/doc/
pkg/raster/inst/doc/vignette.Rnw
Log:
Modified: pkg/raster/DESCRIPTION
===================================================================
--- pkg/raster/DESCRIPTION 2009-04-20 02:05:04 UTC (rev 418)
+++ pkg/raster/DESCRIPTION 2009-04-20 02:34:25 UTC (rev 419)
@@ -2,7 +2,7 @@
Type: Package
Title: Raster data handling for geographic data analysis and modeling
Version: 0.8.9-13
-Date: 18-April-2009
+Date: 20-April-2009
Depends: methods, sp, rgdal (>= 0.5-33), R (>= 2.8.0)
Author: Robert J. Hijmans & Jacob van Etten
Maintainer: Robert J. Hijmans <r.hijmans at gmail.com>
Property changes on: pkg/raster/inst/doc
___________________________________________________________________
Name: svn:ignore
+ *.eps
*.pdf
*.tex
Modified: pkg/raster/inst/doc/vignette.Rnw
===================================================================
--- pkg/raster/inst/doc/vignette.Rnw 2009-04-20 02:05:04 UTC (rev 418)
+++ pkg/raster/inst/doc/vignette.Rnw 2009-04-20 02:34:25 UTC (rev 419)
@@ -24,8 +24,9 @@
\section{Abstract}
-This is an vignette for the \verb at raster@ package in R. The \verb at raster@ package deals with basic spatial raster (grid) data access and manipulation. It defines raster classes; can deal with very large files (stored on disk); and includes standard raster management and manipulation functions. The purpose of the 'raster' package is to provide easy to use functions for raster manipulation and analysis. These include high level functions such as overlay, merge, aggregate, projection, resample, distance, polygon to raster conversion. All these functions work for very large raster datasets that cannot be loaded into memory. In addition, the package provides lower level functions such as row by row reading and writing (to many formats via \verb at rgdal@) for creating other functions that operate on very large files. The package is build around a number of S4 classes of which the RasterLayer and RasterStack classes are the most important. Many generic methods are implemented for RasterLayers (arithmic, logical, plot, hist, ...).
+This is an vignette for the \verb at raster@ package in R. The \verb at raster@ package deals with basic spatial raster (grid) data access and manipulation. Its principal aims are (1) to provide an easy interface to common 'high level' functions for raster data manipulation and management; (2) that all functions can work with very large raster datasets that are stored on disk as they cannot be loaded into memory; (3) to provide low-level functions on which new functions can be easily developed; and (4) to provide an easy-to-use raster algebra implementation. High level functions include overlay, merge, aggregate, projection, resample, distance, polygon to raster conversion. All these functions work for raster datasets that cannot be loaded into memory. Lower level functions include row by row reading and writing (from and to many different file formats via \verb at rgdal@).
+
\section{Introduction}
One of the main reasons for developing this package is that we would like to build a bridge to - the powerful statistics and modeling of - R for the "GIS" community. Our perspective is that standard GIS is too map-centric, and that proper data-analysis needs tools that are more model and data centric.
@@ -33,9 +34,15 @@
bla bla bla normally distributed with mean 0 and standard deviation 2.
+
\section{Beginning}
-A frequentist analysis for the problem is done by the following R statements
+The first thing to do is to install \verb at raster@ package of you have not yet done so. As the package is currently not on CRAN, this takes a tiny bit more effort than installing packages that are on CRAN. \verb at raster@ depends on \verb at rgdal@ so if you do not have that, install it first:
+\verb at install.packages("rgdal")@
+Now install \verb at raster@ from the R-Forge repository
+\verb at install.packages("raster", repos="http://R-Forge.R-project.org")@
+
+The following R statements should now work
<<raster-1>>=
library(raster)
r <- raster()
@@ -43,7 +50,7 @@
plot(r)
@
-bla bla bla
+Let's use a file, the famous Meuse dataset:
<<raster-2>>=
r <- raster(system.file("external/test.ag", package="sp"))
@@ -53,16 +60,22 @@
s <- sqrt(r)
@
-The arguments to the \verb at raster@ function here (there are more we don't use here) are
\begin{itemize}
-\item an R function (here \verb at xxx@ that density is \verb at -Inf@.
-\item an initial state (here \verb at beta.init@) of the Markov chain.
+\item this is a bullet point
+\item and so is this
\end{itemize}
-\citet{geyer-temp} came to a similar conclusion,
-that a 20\% acceptance rate is about right, in a very different situation.
+\citet{great-paper} came to a similar conclusion.
+\section{some background: the RasterLayer class}
+pointer to a file
+nrow, ncol, extent
+cells are numbered 1 to ncell(r)
+
+
+\section{Deeper and deeper}
+
Figure~\ref{fig:fig1} (page~\pageref{fig:fig1})
shows the time series plot made by the R statement
<<label=fig1too,include=FALSE>>=
@@ -78,7 +91,8 @@
\label{fig:fig1}
\end{figure}
-Another way to look at the output is an autocorrelation plot.
+Another way to look at the output is:
+
Figure~\ref{fig:fig2} (page~\pageref{fig:fig2})
shows the time series plot made by the R statement
<<label=fig2too,include=FALSE>>=
@@ -97,14 +111,19 @@
\section{RasterStack}
-We have added an argument \verb at outfun@ that gives the ``functional''
+A RasterStack ...
-\subsection{Simple Means}
+\subsection{Simple}
-\subsection{Functions of Means}
+\section{Package design}
+
+S4 classes
+bla bla bla
+
\section{Future plans}
+
In the current version, the design has emphasised simplicity over speed. In later versions we will work on improving speed, which can be very important given the very large size of raster datasets. Currently all code is written in R, for is clarity, and ease of adapation. However, in some future version we would like to also implement C functions to speed up processing of very large datasets.
More information about the Raster-commits
mailing list