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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Section 5: PMERGE Precipit<strong>at</strong>ion D<strong>at</strong>a Preprocessor<br />

5. PMERGE PRECIPITATION DATA PREPROCESSOR<br />

PMERGE reads, processes and reform<strong>at</strong>s the precipit<strong>at</strong>ion d<strong>at</strong>a files cre<strong>at</strong>ed by the PXTRACT program,<br />

and cre<strong>at</strong>es either a form<strong>at</strong>ted or an unform<strong>at</strong>ted d<strong>at</strong>a file for input into the CALMET meteorological<br />

model. <strong>The</strong> output file (e.g., PRECIP.DAT) contains the precipit<strong>at</strong>ion d<strong>at</strong>a sorted by hour, as required by<br />

CALMET, r<strong>at</strong>her than by st<strong>at</strong>ion. <strong>The</strong> program can also read an existing unform<strong>at</strong>ted output file and add<br />

st<strong>at</strong>ions to it, cre<strong>at</strong>ing a new output file. PMERGE also resolves "accumul<strong>at</strong>ion periods" and flags<br />

missing or suspicious d<strong>at</strong>a.<br />

Accumul<strong>at</strong>ion periods are intervals during which only the total amount <strong>of</strong> precipit<strong>at</strong>ion is known. <strong>The</strong><br />

time history <strong>of</strong> precipit<strong>at</strong>ion within the accumul<strong>at</strong>ion period is not available. For example, it may be<br />

known th<strong>at</strong> within a six-hour accumul<strong>at</strong>ion period, a total <strong>of</strong> a half inch <strong>of</strong> precipit<strong>at</strong>ion fell, but<br />

inform<strong>at</strong>ion on the hourly precipit<strong>at</strong>ion r<strong>at</strong>es within the period is unavailable. PMERGE resolves<br />

accumul<strong>at</strong>ion periods such as this by assuming a constant precipit<strong>at</strong>ion r<strong>at</strong>e during the accumul<strong>at</strong>ion<br />

period. For modeling purposes, this assumption is suitable as long as the accumul<strong>at</strong>ion time period is<br />

short (e.g., a few hours). However, for longer accumul<strong>at</strong>ion periods, the use <strong>of</strong> precipit<strong>at</strong>ion d<strong>at</strong>a with<br />

poor temporal resolution is not recommended. PMERGE will elimin<strong>at</strong>e and flag as missing any<br />

accumul<strong>at</strong>ion periods longer than a user-defined maximum length.<br />

PMERGE provides an option to "pack" the precipit<strong>at</strong>ion d<strong>at</strong>a in the unform<strong>at</strong>ted output in order to reduce<br />

the size <strong>of</strong> the file. A "zero packing" method is used to pack the precipit<strong>at</strong>ion d<strong>at</strong>a. Because many <strong>of</strong> the<br />

precipit<strong>at</strong>ion values are zero, strings <strong>of</strong> zeros are replaced with a coded integer identifying the number <strong>of</strong><br />

consecutive zeros th<strong>at</strong> are being represented. For example, the following record with d<strong>at</strong>a from 20<br />

st<strong>at</strong>ions requires 20 unpacked “words”:<br />

0.0, 0.0, 0.0, 0.0, 0.0, 1.2, 3.5, 0.0, 0.0, 0.0,<br />

0.0, 0.0, 0.0, 0.7, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,<br />

<strong>The</strong>se d<strong>at</strong>a in packed form would be represented in six words:<br />

-5., 1.2, 3.5, -6., 0.7, -6.<br />

where five zero values are replaced by -5., six zero values are replaced by -6., etc. With many st<strong>at</strong>ions<br />

and a high frequency <strong>of</strong> zeros, very high packing r<strong>at</strong>ios can be obtained with this simple method. All <strong>of</strong><br />

the packing and unpacking oper<strong>at</strong>ions are performed internally by PMERGE and CALMET, and are<br />

transparent to the user. <strong>The</strong> header records <strong>of</strong> the d<strong>at</strong>a file contain inform<strong>at</strong>ion flagging the file to<br />

CALMET as a packed or unpacked file. If the user selects the unpacked form<strong>at</strong>, each precipit<strong>at</strong>ion value<br />

is assigned one full word.<br />

<strong>The</strong> input files used by PMERGE include a control file (PMERGE.INP), an optional unform<strong>at</strong>ted d<strong>at</strong>a file<br />

cre<strong>at</strong>ed in a previous run <strong>of</strong> PMERGE, and up to 150 TD-3240 precipit<strong>at</strong>ion st<strong>at</strong>ion files (e.g., as cre<strong>at</strong>ed<br />

by PXTRACT). <strong>The</strong> output file consists <strong>of</strong> a list file and a new unform<strong>at</strong>ted or form<strong>at</strong>ted d<strong>at</strong>a file in<br />

5-10

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

Saved successfully!

Ooh no, something went wrong!