fnc_get_climate_args: Short function to create list of climate arguments

View source: R/fnc_get_climate_args.R

fnc_get_climate_argsR Documentation

Short function to create list of climate arguments

Description

When climate data, as needed in run_multisite_LWFB90, isn't provided as a list (which takes up ram if too many points are modelled), but as a list of climate arguments to be read out by fnc_read_climdb, this function quickly creates the argument list.

Usage

fnc_get_climate_args(df.ids, mindate, maxdate, store_as = NA)

Arguments

df.ids

data frame with ID_custom, id_standard, tranche (if df.ids is created by fnc_create_IDs, these columns are already there. Must otherwise be created with fnc_relateCoords), and lower

mindate

used for filtering climate data to certain dates. Date-object, recommended to set to options.b90$startdate.

maxdate

used for filtering climate data to certain dates. Date-object, recommended to set to options.b90$enddate.

store_as

when the file should be stored somewhere, a complete path with file ending ".rds" must be provided, else if NA, list will be returned to the console

Value

list of climate arguments as needed by run_multisite_LWFB90


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