upscale | R Documentation |
Change resolution/geometry of a geofield by averaging.
upscale(infield, factor=NULL, newdomain=NULL, method="mean", weights=0, ...)
upscale_factor(infield, factor, method="mean", ...)
upscale_regrid(infield, newdomain, method="mean", weights=NULL, ...)
upscale_regrid_init(olddomain, newdomain)
infield |
A |
factor |
If given, the new grid is simply a coarser version of the original. |
newdomain , olddomain |
A |
method |
The aggregation method. When aggregating by a given factor, this could be a function like |
weights |
Initialised weights for faster computation, output from |
... |
Options for the method (e.g. |
These routines aggregate all grid boxes of the original domain into the new domain. When a factor is used, the result is exactly as expected. When regridding to a different domain, the average is taken of all original cells whose center falls inside the new grid cell. There is no compensation (yet?) for partial grid cells.
A geofield
object.
zoomgrid
,subgrid
,regrid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.