annual_climatology: Mean annual climatology of meteorological field

Description Usage Arguments Value

View source: R/raster-functions.R

Description

Mean annual climatology of meteorological field

Usage

1
2
3
4
5
6
7
annual_climatology(
  meteo_brick = import_nc(varnc = "prec", dest_dir = "input"),
  poly_station,
  fun = sum,
  ref_crs = "+proj=longlat +datum=WGS84",
  cutoff = 0
)

Arguments

meteo_brick

brick of meteorological field (e.g.: precipitation, evapotranspiration, etc).

poly_station

sf polygon of station catchment or a extent.

fun

function to apply. Default: sum.

ref_crs

character, coordinate reference system.

cutoff

numeric scalar, Default: 0. Value below which data will be replaced by NA. It is useful to exclude zeroes when plotting annual precipitation fields.

Value

raster with the Mean annual climatology of meteorological field.


lhmet-ped/fuse.prep documentation built on Dec. 7, 2020, 3:08 p.m.