29.01.2015 Views

Table of Contents - The Atmospheric Studies Group at TRC

Table of Contents - The Atmospheric Studies Group at TRC

Table of Contents - The Atmospheric Studies Group at TRC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 9: CALPUFF<br />

<strong>The</strong> control file processor searches for pairs <strong>of</strong> special delimiter characters (!). All text outside the<br />

delimiters is assumed to be optional document<strong>at</strong>ion and is echoed back but otherwise ignored by the input<br />

module. Only d<strong>at</strong>a within the delimiter characters is processed. <strong>The</strong> input d<strong>at</strong>a consists <strong>of</strong> a leading<br />

delimiter followed by the variable name, equals sign, input value or values, and a termin<strong>at</strong>ing delimiter<br />

(e.g., !XX = 12.5 !). <strong>The</strong> variable name can be lower or upper case, or a mixture <strong>of</strong> both (i.e., XX, xx, Xx<br />

are all equivalent). <strong>The</strong> variable type can be real, integer, logical, or character and it can be an array or a<br />

scalar. <strong>The</strong> use <strong>of</strong> repetition factors for arrays is allowed (e.g., ! XARRAY = 3 * 1.5 ! instead <strong>of</strong> !<br />

XARRAY = 1.5, 1.5, 1.5 !). Different values must be separ<strong>at</strong>ed by commas. Spaces within the delimiter<br />

pair are ignored. Exponential not<strong>at</strong>ion (E form<strong>at</strong>) for real numbers is allowed. However, the optional<br />

plus sign should be omitted (e.g., enter +1.5E+10 as 1.5E10). <strong>The</strong> d<strong>at</strong>a may be extended over more than<br />

one line (except for character variables, which must be entirely on one line). <strong>The</strong> line being continued<br />

must end with a comma. Each leading delimiter must be paired with a termin<strong>at</strong>ing delimiter. All text<br />

between the delimiters is assumed to be d<strong>at</strong>a, so no optional document<strong>at</strong>ion is allowed to appear within<br />

the delimiters. <strong>The</strong> inclusion in the control file <strong>of</strong> any variable th<strong>at</strong> is being assigned its default value is<br />

optional. <strong>The</strong> control file reader expects th<strong>at</strong> logical variables will be assigned using only a one character<br />

represent<strong>at</strong>ion (i.e., 'T' or 'F').<br />

<strong>The</strong> major Input <strong>Group</strong>s must appear in order, i.e., Input <strong>Group</strong> 0 followed by Input <strong>Group</strong> 1 followed by<br />

Input <strong>Group</strong> 2, etc. However, the variables within an Input <strong>Group</strong> may appear in any order. <strong>The</strong> variable<br />

names in each Input <strong>Group</strong> are independent, so th<strong>at</strong> the same name can be repe<strong>at</strong>ed in different Input<br />

<strong>Group</strong>s (e.g., as shown in the sample control file, species names (SO 2 , SO 4 ) are used in several Input<br />

<strong>Group</strong>s). Each Input <strong>Group</strong> and subgroup must end with an Input <strong>Group</strong> termin<strong>at</strong>or consisting <strong>of</strong> the<br />

word END between two delimiters (i.e., !END!). Every major Input <strong>Group</strong>, even blank Input <strong>Group</strong>s<br />

(i.e., one in which no variables are included) must end with an Input <strong>Group</strong> termin<strong>at</strong>or in order to signal<br />

the end <strong>of</strong> th<strong>at</strong> Input <strong>Group</strong> and the beginning <strong>of</strong> another.<br />

<strong>The</strong> control file module has a list <strong>of</strong> variable names and array dimensions for each Input <strong>Group</strong>. Checks<br />

are performed to ensure th<strong>at</strong> the proper variable names are used in each Input <strong>Group</strong>, and th<strong>at</strong> no array<br />

dimensions are exceeded. Error messages result if an unrecognized variable name is encountered or too<br />

many values are entered for a variable.<br />

As an example, the first group (<strong>Group</strong> 0) identifies all <strong>of</strong> the I/O files to be used in the run, except for the<br />

control file which is specified on the command line. Each CALPUFF input and output file has a default<br />

name and p<strong>at</strong>h (i.e., the current working directory). If the filename is not specified, the default name will<br />

be assumed. Each filename must be less than or equal to 70 characters long.<br />

All text except th<strong>at</strong> between the delimiters (i.e., ! characters) is tre<strong>at</strong>ed as optional document<strong>at</strong>ion, and is<br />

ignored by the input module. Between the delimiters, the character filename variables (e.g., METDAT,<br />

PUFLST, CONDAT, etc.) must be entered as shown in the sample file. <strong>The</strong> control file reader is case<br />

insensitive. <strong>The</strong> filename is placed between the equals sign and the right delimiter character (!). Files<br />

th<strong>at</strong> are not used or are not to be changed from their default names can be omitted from the I/O file.<br />

9-3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!