get_prec: Get precipitation from raingauge at a given timestep and...

Description Usage Arguments Value Examples

View source: R/get_prec.R

Description

Función para obtener la serie temporal de precipitación para una duración dada"

Usage

1
get_prec(raingauge, timestep, ini.date, end.date)

Arguments

raingauge

Character string that provides the code of the raingauge (i.e. "P01").

timestep

Character string that provides the cumulative interval for precipitation depth. Can be “min”, “hour”, “day”, “DSTday”, “week”, “month”, “quarter” or “year”. (i.e. "10 min")

ini.date

Object of class "POSIXlt with the start date

end.date

Object of class "POSIXlt with the end date

Value

Tibble with two columns: date, and precipitation (mm)

Examples

1
2
3
4
get_prec(raingauge = "P01",
         timestep = "5 min",
         ini.date = strptime("2017-03-22 00:00:00", "%Y-%m-%d %H:%M:%S"),
         end.date = strptime("2017-03-23 00:00:00", "%Y-%m-%d %H:%M:%S"))

rafaelnavas/SanAntonioData documentation built on Dec. 22, 2021, 12:01 p.m.