weatherSet: Updates parameter files with weather from a dataset, then...

View source: R/Ensembles.R

weatherSetR Documentation

Updates parameter files with weather from a dataset, then models fire from non-deterministic plant parameters

Description

Updates parameter files with weather from a dataset, then models fire from non-deterministic plant parameters

Usage

weatherSet(
  base.params,
  weather,
  db.path = "out_mc.db",
  jitters = 10,
  l = 0.1,
  Ms = 0.01,
  Pm = 1,
  Mr = 1.001,
  Hs = 0.2,
  Hr = 1.41,
  updateProgress = NULL
)

Arguments

base.params

Parameter input table

weather

A dataframe with the four fields: tm - Sequential numbering of the records T - Air temperature (deg C) W - Wind velocity (km/h) DFMC - Dead fuel moisture content (proportion ODW)

db.path

Name of the exported database

jitters

Number of repetitions

l

Variation around input leaf dimensions

Ms

Standard deviation of LFMC

Pm

Multiplier of mean LFMC

Mr

Truncates LFMC variability by +/- Mr * LFMC

Hs

Standard deviation of plant height variations

Hr

Truncates plant height variability by +/- Hr * height

updateProgress

Progress bar for use in the dashboard

Value

dataframe

Examples


SPECIFY INPUTS
record <- 1
data(site)
data(structure)
data(flora)
data(traits)
data(Weather)
base.params <- paramBuilder(site, structure, flora, traits, record)

RUN WEATHERSET
weatherSet(base.params, weather, db.path = "out.db", jitters = 5, l = 0.1, 
Ms = 0.01, Pm = 1, Mr = 1.001, Hs = 0.2, Hr = 1.41, updateProgress = NULL)

LOAD AND ORGANISE RESULTS
res<-ffm_db_load("out.db")

pzylstra/frame_r documentation built on Nov. 12, 2023, 1:55 a.m.