50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

PuffR (version 0.1)

calmet_03_output_opts: Set CALMET parameters for the output options

Description

This function validates and writes CALMET parameters for the output options to the working CALMET.INP file.

Usage

calmet_03_output_opts(calmet_inp = "calmet_template.txt", lsave = TRUE,
  iformo = 1, lprint = FALSE, iprinf = 1, iuvout = NULL, iwout = NULL,
  itout = NULL, stability = TRUE, ustar = TRUE, monin = TRUE,
  mixht = TRUE, wstar = TRUE, precip = TRUE, sensheat = TRUE,
  convzi = TRUE, ldb = TRUE, nn1 = 1, nn2 = 24, ldbcst = FALSE,
  ioutd = FALSE, nzprn2 = FALSE, ipr0 = FALSE, ipr1 = FALSE,
  ipr2 = FALSE, ipr3 = FALSE, ipr4 = FALSE, ipr5 = FALSE,
  ipr6 = FALSE, ipr7 = FALSE, ipr8 = FALSE)

Arguments

calmet_inp
the absolute path and filename for the working CALMET input file.
lsave
save meteorological fields in an unformatted output file.
iformo
type of unformatted output file: (1) CALPUFF/CALGRID type file [CALMET.DAT], (2) MESOPUFF-II type file [PACOUT.DAT].
lprint
whether to print meteorological fields in the iuvout, iwout, and itout options.
iprinf
print interval in hours.
iuvout
specification of which layers of U,V wind component to print; vector must be the same length as the number of levels (nz).
iwout
specification of which layers of the W wind component to print; vector must be the same length as the number of levels (nz).
itout
specification of which levels of the 3D temperature field to print; vector must be the same length as the number of levels (nz).
stability
whether to print the PGT stability class (will only print if lprint is TRUE).
ustar
whether to print the friction velocity (will only print if lprint is TRUE).
monin
whether to print the Monin-Obukhov length (will only print if lprint is TRUE).
mixht
whether to print the mixing height (will only print if lprint is TRUE).
wstar
whether to print the convective velocity scale (will only print if lprint is TRUE).
precip
whether to print the precipitation rate (will only print if lprint is TRUE).
sensheat
whether to print the sensible heat flux (will only print if lprint is TRUE).
convzi
whether to print the convective mixing height (will only print if lprint is TRUE).
ldb
whether to print input meteorological data and internal variables.
nn1
if ldb is TRUE, the first time step for which debug data are printed.
nn2
if ldb is TRUE, the last time step for which debug data are printed.
ldbcst
whether to print distance to land internal variables (output will be a .GRD file DCST.GRD).
ioutd
whether to print the test/debug wind fields to disk files.
nzprn2
number of levels, starting at the surface, to print.
ipr0
print the interpolated wind components?
ipr1
print the terrain-adjusted surface wind components?
ipr2
print the smoothed wind components and the initial divergence fields?
ipr3
print the final wind speed and direction fields?
ipr4
print the final divergence fields?
ipr5
print the winds after kinematic effects are added?
ipr6
print the winds after the Froude number adjustment is made?
ipr7
print the winds after slope flows are added?
ipr8
print the final wind field components?