Skip to contents

Create templates of code (r-scripts and bash job-submission script) to read, post-process and evaluate model results.

Usage

template(
  root,
  template = "WRF",
  case = "case",
  env = "rspatial",
  scheduler = "SBATCH",
  partition = "main",
  project = "PROJECT",
  verbose = TRUE
)

Arguments

root

directory to create the template

template

Character; One of of the following:

argumentTYPEMODELOBSERVATIONWRF
post-processWRFMETAR and INMETWRF-3post-process
WRF triple nestedMETARWRF-Chempost-processWRF-Chem
METAR, AQS in Brazil and AERONETEXPpost-processWRF-ChemMETAR, PBL variables and composition
CAMXpost-processCAMxAERONETCAMX-3
post-processCAMx triple nestedAERONETNCOpost-process
WRFSatelliteterrapost-processWRF
SatelliteSATevaluationWRFSatellite (GPCP)
METevaluationWRFMETARMET-3
evaluationWRF triple nestedMETARAQevaluation
WRF or CAMxO3, Max O3 and PM2.5AQS_BRdownloadany
AQS in Brazil for SP and RJMETARdownlaadanyMETAR from ASOS
INMETpre-processinganyINMET (automatic and conventional)merge
pre-processinganymerge INMET (automatic and conventional)ISDpre-processing
case

case to be evaluated

env

name of the conda environment

scheduler

job scheduler used (SBATCH or PBS)

partition

partition name

project

project name

verbose

display additional information

Value

no value returned, create folders and other template scripts

Examples

temp <- file.path(tempdir(),"POST")
template(root = temp,template = 'WRF', case = 'WRF-only')
#>  folder  /tmp/Rtmp78v9Ph/POST/WRF/WRF-only : link wrf output files here!
#>  bash  /tmp/Rtmp78v9Ph/POST/post-R_wrf.sh : post processing job script
#>  r-script /tmp/Rtmp78v9Ph/POST/extract_metar.R : source code to extract metar using eva3dm::extract_serie()
#>  r-script /tmp/Rtmp78v9Ph/POST/extract_inmet.R : source code to extract inmet using eva3dm::extract_serie()