Create stand parameters

AUTHORS: Julien Ruffault (julien.ruff@gmail.com), Nicolas Martin-StPaul (nicolas.martin@inrae.fr)

source

create_stand_parameters

 create_stand_parameters (file_path:pathlib.Path=None, lai_max:float=None,
                          latitude:float=None, longitude:float=None,
                          sep:str=';')

Create a dictionary with stand parameters that can be used as in input in

Type Default Details
file_path Path None Path to a csv file containing lai_max, latitude and longitude values i.e path/to/parameter_values.csv
lai_max float None Value indicating the maximum leaf area index of the stand (m2/m2)
latitude float None Value indicating the latitude of the stand
longitude float None Value indicating the longitude of the stand
sep str ; CSV file separator can be ‘,’ or ‘;’
Returns typing.Dict Dictionary containing parameters

source

StandFile

 StandFile (*args, **kwargs)

Schema for validating the input stand parameter data. The CSV must contain columns with the plot_id, lai_max, latitude, and longitude

Example: Create stand parameters dictionary

create_stand_parameters(
    file_path="./sample_data/stand_example.csv",
    lai_max=None,
    latitude=None,
    longitude=None,
    sep=";",
)
defaultdict(list, {'lai_max': 4.5, 'latitude': 48.73, 'longitude': 6.23})
create_stand_parameters(
    file_path=None, lai_max=2.0, latitude=41.1, longitude=2.1
)
defaultdict(list, {'lai_max': 2.0, 'latitude': 41.1, 'longitude': 2.1})