fnc_get_climate_args_poly: Function to create list of climate arguments for polygons as...

View source: R/fnc_get_climate_args_poly.R

fnc_get_climate_args_polyR Documentation

Function to create list of climate arguments for polygons as input

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_poly, this function creates the necessary argument list. Polygons usually need the input of several Climate-Cells. Which ones and how much weight each cell contributes to the climate within the polygons is determined here.

Usage

fnc_get_climate_args_poly(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 fnc_read_climdb_poly


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