Skip to contents

Loads a data frame stored in an .rds file containing meteorological data formatted similar to the airGR model family. The input must include specific columns as described below.

Usage

load_meteo_data(file, tzone = "UTC")

Arguments

file

A string specifying the path to the .rds file containing the meteorological data.

tzone

A string specifying the time zone to assign to the DatesR column. If "UTC" (default), a Date vector is not converted to another time zone.

Value

A data frame named BasinObs containing the loaded and time-adjusted data.

Details

The input data frame must contain the following columns:

  • DatesR: Dates in Date or POSIXt format

  • P: Average precipitation [mm/day]

  • T: Catchment average air temperature [°C]

  • E: Catchment average potential evapotranspiration [mm/day]

  • Qmm: Outlet discharge [mm/day]

For more information on the required format, see the airGR documentation: https://hydrogr.github.io/airGR/page_1_get_started.html

Examples

if (FALSE) {
load_meteo_data("D:/input/airGR/HSU_2044.rds")
}