View source: R/calc_climatology_anomaly.R
calc_clim | R Documentation |
Function for calculating climatology of a pacea data object.
calc_clim(
data,
clim_years = c(1991:2020),
clim_time = "month",
time_period_return = "all"
)
data |
pacea data object: BCCM, OISST, buoy_sst data only |
clim_years |
climatology period years |
clim_time |
time units (e.g. month) to summarize climatologies |
time_period_return |
vector of value(s) for the specific time units to estimate climatologies (e.g. '4' for week 4 or April). Set to equal 'all' for all time units. |
The functions 'calc_clim' and 'calc_anom' output the climatology of a specified time period and anomaly values relative to a climtological period, respectively. These functions can be used for data from BCCM (e.g. 'bccm_surface_temperature()'), OISST (e.g. 'oisst_7day'), and buoy SST (e.g. 'buoy_sst').
climatology of data
## Not run:
# bccm data
pdata <- bccm_surface_temperature()
clim_bccm <- calc_clim(pdata)
head(clim_bccm)
clim_bccm2 <- calc_clim(pdata, time_period_return = c(1, 6))
head(clim_bccm2)
# oisst data
clim_oi <- calc_clim(oisst_7day)
head(clim_oi)
# pacea buoy sst data
clim_buoy <- calc_clim(buoy_sst)
head(clim_buoy)
clim_buoy2 <- calc_clim(buot_sst, clim_time = "week")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.