13 PEcAn workflow (web/workflow.R)

  • How the workflow works
  • How each module is called
  • How to do outside of web interface
  • Link to “folder structure” section below for detailed descriptions

13.1 Read Settings

13.2 Input Conversions

13.2.1 Input Data

Models require input data as drivers, parameters, and boundary conditions. In order to make a variety of data sources that have unique formats compatible with models, conversion scripts are written to convert them into a PEcAn standard format. That format is a netcdf file with variables names and specified to our standard variable table.

Within the PEcAn repository, code pertaining to input conversion is in the MODULES directory under the data.atmosphere and data.land directories.

13.2.2 Initial Conditions

Initial Conditions

13.3 Meteorological Data

To convert meterological data into the PEcAn Standard and then into model formats we follow four main steps:

  1. Downloading raw data - Currently supported products - Example Code
  2. Converting raw data into a CF standard - Example Code
  3. Downscaling and gapfilling - Example Code
  4. Coverting to Model Specific format - Example Code

Common Questions regarding Met Data:

How do I add my Meterological data product to PEcAn? How do I use PEcAn to convert Met data outide the workflow?

The main script that handles Met Processing, is met.process. It acts as a wrapper function that calls individual modules to facilitate the processing of meteorological data from it’s original form to a pecan standard, and then from that standard to model specific formats. It also handles recording these processes in the BETY database.

  1. Downloading raw data - Available Meteorological Drivers - Example Code to download Ameriflux data
  2. Converting raw data into a CF standard (if needed) - Example Code to convert from raw csv to CF standard
  3. Downscaling and gapfilling(if needed) - Example Code to gapfill
  4. Coverting to Model Specific format - Example Code to convert Standard into Sipnet format

13.3.1 Downloading Raw data (Description of Process)

Given the information passed from the pecan.xml met.process will call the download.raw.met.module to facilitate the execution of the necessary functions to download raw data.

  <met>
    <source>AmerifluxLBL</source>
    <output>SIPNET</output>
    <username>pecan</username>
  </met>

13.4 Traits

13.5 Meta Analysis

13.6 Model Configuration

13.7 Run Execution

13.8 Post Run Analysis

13.9 Advanced Analysis