query.pft_cultivars.Rd
Given a PFT name and optionally a modeltype, finds its pft_id and returns the cultivars associated with it.
query.pft_cultivars(pft, modeltype = NULL, con)
pft | string pft name |
---|---|
modeltype | type of model that is used, this is used to distinguish between different pfts with the same name. |
con | database connection |
tibble containing names and ids for each cultivar and the species it comes from
A PFT is allowed to have associated species or associated
cultivars, but not both. If this function returns no results, try checking
your PFT with query.pft_species
instead.
Note that the cultivars associated with one PFT *are* allowed to come from
multiple species, if desired.