Description Usage Arguments Value Author(s) See Also Examples
Summarizes the meteorology of a single location, a set of spatial points, pixels in a grid, or weather stations of interpolation data.
1 2 3 4 5 6 | summarypoint(x, var, fun = mean, freq = NULL, dates = NULL, months = NULL, ...)
summarypoints(points, var, fun = mean, freq = NULL, dates = NULL, months = NULL, ...)
summarygrid(griddata, dates = NULL)
summarypixels(pixelsdata, dates = NULL)
summaryinterpolationdata(object, var, fun = mean, freq = NULL, dates = NULL,
months = NULL, ...)
|
x |
A data frame with dates in rows and meteorological variables in columns. |
points |
An object of class |
var |
The name of the meteorological variable to be summarized. |
fun |
The function to be calculated on values of each point. If |
freq |
A string giving an interval specification (e.g., |
dates |
An object of class |
months |
A numeric vector to indicate the subset of months for which summary is desired (e.g. |
... |
Additional parameters to |
griddata |
An object of class |
pixelsdata |
An object of class |
object |
An object of class |
Function summarypoint
returns a named vector of values with dates as names. Functions summarypoints
and summaryinterpolatoiondata
return an object of class SpatialPointsDataFrame
containing summaries (either one variable or several if freq
is specified). Functions summarygrid
and summarypixels
return an object of class SpatialGridDataFrame
and SpatialPixelsDataFrame
, respectively, containing the summary of all meteorogical variables (sums or precipitation and PET; means for the other variables) calculated over the specified period.
Miquel De Cáceres Ainsa, CTFC
Antoine Cabon,CTFC
SpatialPointsMeteorology-class
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data(examplegridtopography)
data(exampleinterpolationdata)
#Creates spatial topography points from the grid
p = 1:2
spt = as(examplegridtopography, "SpatialPointsTopography")[p]
#Interpolation of two points for the whole time period (2000-2003)
mp = interpolationpoints(exampleinterpolationdata, spt)
#PET sums by months
mp.sum = summarypoints(mp, var="PET", freq="months")
mp.sum
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.