This function creates the required tags inside pecan.xml to link sites with pfts given a look up table. If the required tags are already defined in the pecan xml then they will be updated. If there are multiple pfts that they need to be used for a site, each pft needs to have a separate row in the lookup table, resulting multiple rows for a site.

site.pft.linkage(settings, site.pft.links)

Arguments

settings

pecan settings list.

dataframe. Your look up table should have two columns of site and pft with site ids under site column and pft names under pft column.

Value

pecan setting list

Examples

if (FALSE) { # \dontrun{
#setting up the Look up tables
site.pft.links <-tribble(
 ~site, ~pft,
 "1000025731", "temperate.broadleaf.deciduous1",
 "1000025731", "temperate.needleleaf.evergreen",
 "1000000048", "temperate.broadleaf.deciduous2",
 "772", "temperate.broadleaf.deciduous3",
 "763", "temperate.broadleaf.deciduous4"
)

# sending a multi- setting xml file to the function
site.pft.linkage(settings,site.pft.links)
} # }