SpatialPixels               package:sp               R Documentation

_d_e_f_i_n_e _s_p_a_t_i_a_l _g_r_i_d

_D_e_s_c_r_i_p_t_i_o_n:

     defines spatial grid by offset, cell size and dimensions

_U_s_a_g_e:

     GridTopology(cellcentre.offset, cellsize, cells.dim)
     SpatialPixels(points, tolerance = 10 * .Machine$double.eps)
     SpatialGrid(grid, proj4string = CRS(as.character(NA)))
     coordinatevalues(obj)
     points2grid(points, tolerance)
     getGridIndex(cc, grid, all.inside = TRUE)
     getGridTopology(obj)
     areaSpatialGrid(obj)

_A_r_g_u_m_e_n_t_s:

cellcentre.offset: numeric; vector with the smallest coordinates for
          each dimension

cellsize: numeric; vector with the cell size in each dimension

cells.dim: integer; vector with number of cells in each dimension

  points: coordinates, object of class SpatialPoints-class 

    grid: grid topology; object of class GridTopology-class

tolerance: precision, used to which extent points are exactly on a grid

proj4string: object of class CRS-class

     obj: object of class or deriving from SpatialGrid-class

      cc: numeric matrix with coordinates 

all.inside: logical; if TRUE and 'cc' points fall outside the grid
          area, an error message is generated; if FALSE, NA values are
          generated for such points 

_V_a_l_u_e:

     GridTopology returns a value of class GridTopology-class;
     SpatialGrid returns an object of class SpatialGrid-class

     'coordinatevalues' returns a list with the unique x-coordinates,
     the unique y-coordinate, etc. instead of the coordinates of all
     grid cells

     SpatialGrid returns an object of class SpatialGrid-class. 

     points2grid returns the GridTopology-class from a set of points.

     getGridIndex finds the index of a set of point coordinates in a
     given grid topology, and depending on 'all.inside' setting,
     generates NA or an error message if points are outside the grid
     domain.

     getGridTopology returns the slot of class GridTopology-class from
     obj.

     areaSpatialGrid returns the spatial area of (the non-missing
     valued cells of) the grid. For objects of class
     SpatialGridDataFrame-class the area refers to cells where any (one
     or more) of the attribute columns are non-missing valued.

_N_o_t_e:

     SpatialGrid stores grid topology and may or may not store the
     coordinates of the actual points, which may form a subset of the
     full grid. To find out or change this, see fullgrid.

_A_u_t_h_o_r(_s):

     Edzer J. Pebesma, e.pebesma@geo.uu.nl

_R_e_f_e_r_e_n_c_e_s:

_S_e_e _A_l_s_o:

     SpatialGrid-class, SpatialGridDataFrame-class,

_E_x_a_m_p_l_e_s:

     x = GridTopology(c(0,0), c(1,1), c(5,4))
     class(x)
     x
     summary(x)
     coordinates(x)
     coordinates(GridTopology(c(0,0), c(1,1), c(5,4)))
     coordinatevalues(x)

