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 />

9. CALPUFF<br />

<strong>The</strong> CALPUFF model obtains inform<strong>at</strong>ion about sources, receptors, meteorological d<strong>at</strong>a, geophysical<br />

d<strong>at</strong>a, and model control parameters from a series <strong>of</strong> input files. <strong>The</strong>se files are listed in <strong>Table</strong> 1-4. A<br />

sample <strong>of</strong> the main control file (CALPUFF.INP) containing the user-specified model options and switch<br />

settings is shown in <strong>Table</strong> 9-2. <strong>The</strong> model cre<strong>at</strong>es several output files, which are listed in <strong>Table</strong> 1-6.<br />

Detailed inform<strong>at</strong>ion on the structure and content <strong>of</strong> each <strong>of</strong> the input and output files is provided in this<br />

section.<br />

<strong>Table</strong>s 1-4 and 1-6 show the Fortran unit numbers associ<strong>at</strong>ed with each file. <strong>The</strong>se unit numbers are<br />

specified in the parameter file (PARAMS.PUF). <strong>The</strong>y can be easily modified to accommod<strong>at</strong>e systemdependent<br />

restrictions on allowable unit numbers. Any changes to variables in the parameter file are<br />

autom<strong>at</strong>ically modified throughout the CALPUFF Fortran code. <strong>The</strong> code must be re-compiled for<br />

changes in the parameter file to take effect, since the parameter values are set <strong>at</strong> the program compil<strong>at</strong>ion<br />

stage r<strong>at</strong>her than <strong>at</strong> program execution.<br />

<strong>The</strong> name and full p<strong>at</strong>h <strong>of</strong> each CALPUFF file (except one) is assigned in the control file (CALPUFF.<br />

INP). <strong>The</strong> exception, the control filename itself, is assigned on the command line. For example, on a<br />

DOS system,<br />

CALPUFF d:\CALPUFF\CALPUFF.INP<br />

will execute the CALPUFF code (CALPUFF.EXE), and read the input and output filenames for the<br />

current run from the file CALPUFF.INP in the directory d:\CALPUFF. If the control filename is not<br />

specified on the command line, the default control filename (i.e., CALPUFF.INP in the current working<br />

directory) will be used. <strong>The</strong> p<strong>at</strong>h and filename can be up to 70 characters long.<br />

<strong>The</strong> utility routine th<strong>at</strong> delivers a command line argument is system dependent. <strong>The</strong> function th<strong>at</strong><br />

provides the system clock time and system CPU time are also system or compiler-specific. All systemdependent<br />

or compiler-specific routines in CALPUFF are isol<strong>at</strong>ed into a file called DATETM.xxx, where<br />

the file extension (.xxx) indic<strong>at</strong>es the system for which the code is designed. For example, DATETM.HP<br />

contains code for Hewlett-Packard Unix systems, DATETM.SUN is for Sun Unix systems,<br />

DATETM.LAH is for Lahey-compiled PC-applic<strong>at</strong>ions, and DATETM.MS is for Micros<strong>of</strong>t-compiled PC<br />

applic<strong>at</strong>ions. By appending the correct system-dependent DATETM file onto the main CALPUFF code,<br />

the code should run without any modific<strong>at</strong>ions.<br />

9.1 User Control File<br />

<strong>The</strong> selection and control <strong>of</strong> CALPUFF options are determined by user-specified inputs contained in a file<br />

called the control file. This file, which has the default name CALPUFF.INP, contains all <strong>of</strong> the<br />

inform<strong>at</strong>ion necessary to define a model run (e.g., starting d<strong>at</strong>e, run length, grid specific<strong>at</strong>ions, technical<br />

9-1

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

Saved successfully!

Ooh no, something went wrong!