Learn R Programming

SticsRFiles (version 1.4.0)

get_lai_forcing: Getting LAI forcing for each usm

Description

Is LAI forced for usms in usms.xml

Usage

get_lai_forcing(usm_file_path, usms_list = c())

Value

A named numeric vector with a Boolean value (TRUE = forced) for each usm

Arguments

usm_file_path

Path to usms.xml file

usms_list

Usm(s) name(s) (optional, see details)

Details

Use get_usms_list() to get the list of the usm names for an usms.xml file.

Examples

Run this code
# Xml case
xml_usms <- file.path(get_examples_path(file_type = "xml"), "usms.xml")
get_lai_forcing(xml_usms)
get_lai_forcing(xml_usms, "wheat")
get_lai_forcing(xml_usms, c("wheat", "intercrop_pea_barley"))


Run the code above in your browser using DataLab