climag.modvege_run#

Functions for running ModVege

Some code has been adapted from: https://code.europa.eu/agri4cast/modvege

climag.modvege_run.run_modvege_csv(input_timeseries_file, input_params_file, out_dir)#

Run ModVege for a CSV time series input

Parameters#

input_timeseries_filestr

Path to input time series file

input_params_filestr

Path to input parameters file

out_dirstr

Path to output directory

Notes#

Also creates time series plots

climag.modvege_run.site_specific_params_file(input_params_vector, tseries, params)#

Load the site-specific characteristics layers that vary spatially

Parameters#

input_params_vectorstr

Path to input parameter vector spatial file

tseriesxarray.Dataset

Xarray dataset of time series data

paramsdict[str]

Dictionary of input parameters

climag.modvege_run.run_modvege_nc(input_timeseries_file, input_params_file, out_dir, input_params_vector=None)#

Run ModVege for a netCDF time series (climate data) input

Parameters#

input_timeseries_filestr

Path to input time series file

input_params_filestr

Path to input parameters file

out_dirstr

Path to output directory

input_params_vectorstr

Path to input parameter vector spatial file

climag.modvege_run.run_modvege(input_params_file, input_timeseries_file, out_dir, input_params_vector=None)#

Run ModVege

Parameters#

input_params_filestr

File path for the input parameters

input_timeseries_filestr

File path for the input time series

out_dirstr

Directory to store output file(s)

Notes#

Preprocess the inputs to run ModVege as a function and save the results as a CSV file