Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1.24 KB

how_to_use.md

File metadata and controls

20 lines (16 loc) · 1.24 KB

This code is able to run a VPRM processing for different tasks: a) get the variables needed to fit a VPRM model for a given set of flux tower data b) Use the fit parameters in a to evaluate fluxes over time c) Prepare the input for further usage in weather forecast systems like WRF

For all applications you need to download the required land type maps from the Copernicus webpage here: https://lcviewer.vito.be/download, as well as the satellite images.

For a)

  1. Prepare a config file (see for example config.cfg) and set your login data for https://urs.earthdata.nasa.gov/ in the logins.yaml
  2. Download the Satellite data from MODIS or VIIRS using 'download_satellite_images.py'. For example: python download_satellite_images.py --config ./config.yaml
  3. Run the fitting code, for example python fit_params_draft.py --config ./config.yaml --h 18 --v 4.
  4. Use the output in the analysis notebook to fit the paramteters and generate plots. See for example ./analysis_notebooks/2012_VPRM_eval.ipynb

For b)

  1. Prepare a config file (see for example config.cfg)
  2. Run the VPRM_predictions.py code with the config file as argument

For c)

  1. Prepare a config file (see for example config_wrf_prepocessor.yaml)
  2. Run the VPRM_preprocessor.py code with the config file