coarseR
is a helper function that helps coarsening spatial
resolution of the input matrix for the HiClimR
function.
1 
x 
an ( 
lon 
a vector of longitudes with length 
lat 
a vector of latitudes with length 
lonStep 
an integer greater than or equal to 
latStep 
an integer greater than or equal to 
verbose 
logical to print processing information if 
For highresolution data, the computational and memory requirements may not be
met on old machines. This function enables the user to use coarser data in any
spatial dimension:longitude, latitude, or both. It is available for testing
or running HiClimR
package on old computers or machines with small memory
resources. The rows of output matrix (x
component) will be also named
by longitude and latitude coordinates. If lonStep = 1
and latStep = 1
,
coarseR
function will just rename rows of matrix x
.
A list with the following components:
lon 
longitude mesh vector for the coarsened data. 
lat 
latitude mesh vector for the coarsened data. 
rownum 
original row numbers for the coarsened data. 
x 
coarsened data of the input data matrix 
Hamada Badr <badr@jhu.edu>, Ben Zaitchik <zaitchik@jhu.edu>, and Amin Dezfuli <dez@jhu.edu>.
Hamada S. Badr, Zaitchik, B. F. and Dezfuli, A. K. (2015): A Tool for Hierarchical Climate Regionalization, Earth Science Informatics, 110, http://dx.doi.org/10.1007/s1214501502217.
Hamada S. Badr, Zaitchik, B. F. and Dezfuli, A. K. (2014): Hierarchical Climate Regionalization, CRAN, http://cran.rproject.org/package=HiClimR.
HiClimR
, validClimR
, geogMask
,
coarseR
, fastCor
, grid2D
, and
minSigCor
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  require(HiClimR)
## Load test case data
x < TestCase$x
## Generate longitude and latitude mesh vectors
xGrid < grid2D(lon = unique(TestCase$lon), lat = unique(TestCase$lat))
lon < c(xGrid$lon)
lat < c(xGrid$lat)
## Coarsening spatial resolution
xc < coarseR(x = x, lon = lon, lat = lat, lonStep = 2, latStep = 2)
lon < xc$lon
lat < xc$lat
x < xc$x

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.