Function for generating samples based on sampling method, parent or etc

input.ens.gen(settings, input, method = "sampling", parent_ids = NULL)

Arguments

settings

list of PEcAn settings

method

Method for sampling - For now looping or sampling with replacement is implemented

parent_ids

This is basically the order of the paths that the parent is sampled.See Details.

Value

For a given input/tag in the pecan xml and a method, this function returns a list with $id showing the order of sampling and $samples with samples of that input.

Details

If for example met was a parent and it's sampling method resulted in choosing the first, third and fourth samples, these are the ids that need to be sent as parent_ids to this function.

Examples

# NOT RUN {
input.ens.gen(settings,"met","sampling")
# }# NOT RUN {
 
# }