fnc_app: Central Application

View source: R/fnc_app.R

fnc_appR Documentation

Central Application

Description

Work in progress-version of a function that makes the application extremely easy for final users.

Usage

fnc_app(
  df.ids,
  how_many_points_at_once = 1000,
  start_date,
  end_date,
  treespecies,
  wanted_daily = NA,
  wanted_layer = NA,
  db_name,
  meta = NA,
  ...
)

Arguments

df.ids

a data frame containing the name of the ids ID, as well as the UTM-32632-Coordinates in columns named easting and northing.

how_many_points_at_once

depending on the user's RAM, the function runs 1000 points at once by default (proved useful on a 8GB RAM machine). Can be changed manually if more RAM is available.

start_date

start date as Date-object

end_date

end date as Date-object

treespecies

name of the tree species to be modelled with. Either a single species name that is then used for all points in df.ids, or a vector of the same length as df.ids$ID if the main tree species of each point is known and differs. Must be one of beech, oak, spruce, pine, larch, douglasfir.

db_name

name and file path of the SQL-database

meta

NA by default, a location where meta-information can be written. Will then be written into the database

...

all additional information that can be set in fnc_get_soil. See help page for all options that can be selected

layercols

a sting containing the desired output products. Full list of possible output columns can be find on the help page of run_LWFB90 under Layer outputs

dailycols

same as layercols but for daily output. For possible options see run_LWFB90

Value

An SQLite Database with the tables soil, and daily and/or layer outputs.


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