12 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
12.1 Read Settings
12.2 Input Conversions
12.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.
12.2.2 Initial Conditions
Initial Conditions
12.3 Meteorological Data
To convert meterological data into the PEcAn Standard and then into model formats we follow four main steps:
- Downloading raw data - Currently supported products - Example Code
- Converting raw data into a CF standard - Example Code
- Downscaling and gapfilling - Example Code
- 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.
- Downloading raw data - Available Meteorological Drivers - Example Code to download Ameriflux data
- Converting raw data into a CF standard (if needed) - Example Code to convert from raw csv to CF standard
- Downscaling and gapfilling(if needed) - Example Code to gapfill
- Coverting to Model Specific format - Example Code to convert Standard into Sipnet format
12.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>