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
)
Note
Templates types available:
- WRF (model post-process for METAR + INMET)
- WRF-Chem (model post-process for METAR, AQS in Brazil and AERONET)
- EXP (model post-process for one experimental site including PBL variables)
- METAR (download observations)
- MET (evaluation of meteorology)
- AQ (evaluation of air quality)
- PSA (model post-processing with CDO for satellite evaluation)
- SAT (evaluation of precipitation using GPCP satellite)
Examples
temp <- file.path(tempdir(),"POST")
template(root = temp,template = 'WRF', case = 'WRF-only')
#> folder /tmp/RtmpfF4sGf/POST/WRF/WRF-only : link wrf output files here!
#> bash /tmp/RtmpfF4sGf/POST/post-R_wrf.sh : post processing job script
#> r-script /tmp/RtmpfF4sGf/POST/extract_metar.R : source code to extract metar using eva3dm::extract_serie()
#> r-script /tmp/RtmpfF4sGf/POST/extract_inpet.R : source code to extract inmet using eva3dm::extract_serie()