fnc_get_clim: Creation of Climate Data

View source: R/fnc_get_clim.R

fnc_get_climR Documentation

Creation of Climate Data

Description

This function creates Climate Data in the format required by run_LWFB90 and run_multisite_LWFB90. Output is a list for direct use as input, not via clim_args and args_function.

Usage

fnc_get_clim(
  df.ids,
  mindate = as.Date("1961-01-01"),
  maxdate = as.Date("2020-12-31"),
  path_std = "R:/klima/whh/brook90_input/locations",
  clim_dir = "R:/klima/whh/brook90_input/uhh_historische_referenz_v2020/rds/"
)

Arguments

df.ids

a data frame containing the following columns:

  • ID_custom - a unique ID-column for assignment that all intermediate products as well as the output will be assigned to.

  • easting and northing - coordinates in UTM EPSG:32632

mindate

first day of modelling time period as Date- object. Optional, default is "1961-01-01"

maxdate

last day of modelling time period as Date- object. Optional, default is "2020-12-31"

path_std

path to standard locations directory

path_climdb

path to climate-rds files

Value

Returns a named list (names from df.ids$ID_custom) of climate data

Examples

fnc_get_clim(df.ids = test.ids.bds, mindate = as.Date("2010-01-01"), maxdate = as.Date("2011-12-31"))


rhabel/modLWFB90 documentation built on Nov. 21, 2024, 3:28 a.m.