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

29.01.2015 Views

Section 3: READ62 Upper Air Preprocessor Table 3-5: Sample UP.DAT files (a) UP.DAT - Slash-delimited format UP.DAT 2.1 Hour Start and End Times with Seconds 1 Produced by READ62 Version: 5.6 Level: 041123 NONE UTC+0000 2002 2 12 0 2002 9 7 0 500. 1 1 F F F F 6201 14764 2002 1 2 12 0 2002 1 2 12 0 49 28 1007.0/ 16./279.3/160/ 10 1000.0/ 77./281.0/174/ 13 983.0/ 221./284.6/186/ 19 973.0/ 304./999.9/190/ 21 959.0/ 427./285.2/199/ 23 950.0/ 507./284.9/203/ 24 938.0/ 609./999.9/210/ 26 905.0/ 914./999.9/220/ 29 900.0/ 959./283.1/222/ 30 872.0/1219./999.9/225/ 31 850.0/1433./281.2/222/ 31 822.0/1710./278.5/223/ 30 810.0/1827./999.9/225/ 30 800.0/1931./277.6/226/ 29 780.0/2132./999.9/225/ 29 752.0/2437./999.9/225/ 28 750.0/2456./275.3/226/ 28 724.0/2742./999.9/230/ 27 708.0/2920./273.2/230/ 26 700.0/3011./272.9/231/ 26 697.0/3047./999.9/230/ 26 650.0/3601./269.6/236/ 27 645.0/3657./999.9/235/ 27 600.0/4230./266.1/240/ 31 597.0/4267./999.9/240/ 32 552.0/4875./999.9/240/ 36 550.0/4905./262.2/241/ 36 500.0/5630./257.9/240/ 38 6201 14764 2002 1 2 13 0 2002 1 2 13 0 49 19 994.0/ 16./276.5/240/ 7 979.0/ 140./279.7/250/ 11 968.0/ 233./280.3/254/ 14 950.0/ 388./280.0/254/ 18 933.0/ 536./279.6/250/ 19 900.0/ 832./280.4/243/ 22 898.0/ 852./280.5/242/ 22 850.0/1303./277.8/244/ 24 800.0/1795./275.8/251/ 29 750.0/2316./273.5/256/ 35 742.0/2402./273.1/256/ 36 728.0/2554./272.3/254/ 38 707.0/2787./273.0/249/ 39 700.0/2868./272.5/248/ 39 650.0/3457./268.6/241/ 35 603.0/4042./264.5/230/ 30 600.0/4081./264.4/230/ 30 550.0/4754./262.3/222/ 38 500.0/5482./259.9/219/ 53 (... records removed for clarity) (b) UP.DAT - Comma-delimited format UP.DAT 2.1 Hour Start and End Times with Seconds 1 Produced by READ62 Version: 5.6 Level: 041123 NONE UTC+0000 2002 2 12 0 2002 9 7 0 500. 1 2 F F F F 6201 14764 2002 1 2 12 0 2002 1 2 12 0 49 28 1007.0, 16.,279.3,160, 10.0, 1000.0, 77.,281.0,174, 13.0, 983.0, 221.,284.6,186, 19.0, 973.0, 304.,999.9,190, 21.1, 959.0, 427.,285.2,199, 23.0, 950.0, 507.,284.9,203, 24.0, 938.0, 609.,999.9,210, 26.2, 905.0, 914.,999.9,220, 29.8, 900.0, 959.,283.1,222, 30.0, 872.0,1219.,999.9,225, 31.3, 850.0,1433.,281.2,222, 31.0, 822.0,1710.,278.5,223, 30.0, 810.0,1827.,999.9,225, 30.3, 800.0,1931.,277.6,226, 29.0, 780.0,2132.,999.9,225, 29.8, 752.0,2437.,999.9,225, 28.8, 750.0,2456.,275.3,226, 28.0, 724.0,2742.,999.9,230, 27.2, 708.0,2920.,273.2,230, 26.0, 700.0,3011.,272.9,231, 26.0, 697.0,3047.,999.9,230, 26.7, 650.0,3601.,269.6,236, 27.0, 645.0,3657.,999.9,235, 27.7, 600.0,4230.,266.1,240, 31.0, 597.0,4267.,999.9,240, 32.4, 552.0,4875.,999.9,240, 36.0, 550.0,4905.,262.2,241, 36.0, 500.0,5630.,257.9,240, 38.0 6201 14764 2002 1 2 13 0 2002 1 2 13 0 49 19 994.0, 16.,276.5,240, 7.0, 979.0, 140.,279.7,250, 11.0, 968.0, 233.,280.3,254, 14.0, 950.0, 388.,280.0,254, 18.0, 933.0, 536.,279.6,250, 19.0, 900.0, 832.,280.4,243, 22.0, 898.0, 852.,280.5,242, 22.0, 850.0,1303.,277.8,244, 24.0, 800.0,1795.,275.8,251, 29.0, 750.0,2316.,273.5,256, 35.0, 742.0,2402.,273.1,256, 36.0, 728.0,2554.,272.3,254, 38.0, 707.0,2787.,273.0,249, 39.0, 700.0,2868.,272.5,248, 39.0, 650.0,3457.,268.6,241, 35.0, 603.0,4042.,264.5,230, 30.0, 600.0,4081.,264.4,230, 30.0, 550.0,4754.,262.3,222, 38.0, 500.0,5482.,259.9,219, 53.0 (... records removed for clarity) 3-14

Section 4: PXTRACT Precipitation Data Extract Program 4. PXTRACT PRECIPITATION DATA EXTRACT PROGRAM PXTRACT is a preprocessor program which extracts precipitation data for stations and time periods of interest from a formatted precipitation data file in NCDC TD-3240 format. The TD-3240 data used by PXTRACT can be in either the fixed record length format or the variable record length format. The fixed record length format reports each hourly precipitation event in a separate record, whereas the variable record length format reports all hourly precipitation events that occur on a single day in a single record, and also includes the daily total. The hourly precipitation data usually come in large blocks of data sorted by station. For example, a typical TD-3240 file for California may contain data from over 100 stations statewide in blocks of time of 30 years or more. Modeling applications require the data sorted by time rather than station, and involve specific spatial domains and time periods from less than one year up to five years. PXTRACT allows data for a particular model run to be extracted from the larger data file and creates a set of station files that are used as input files by the second-stage precipitation preprocessor, PMERGE (see Section 5.0). NOTE: If wet removal is not to be considered by the CALPUFF or MESOPUFF II dispersion models, no precipitation processing needs to be done. PXTRACT (and PMERGE) are required only if wet removal is an important removal mechanism for the modeling application of interest. In addition, if wet removal is a factor, the user has the option of creating a free-formatted precipitation data file that can be read by CALMET. This option eliminates the need to run the precipitation preprocessing programs for short CALMET runs (e.g., screening runs) for which the data can easily be input manually. The input files used by PXTRACT include a control file (PXTRACT.INP) containing user inputs, and a data file (TD3240.DAT) containing the NCDC data in TD-3240 format. The precipitation data for stations selected by the user are extracted from the TD3240.DAT file and stored in separate output files (one file per station) called xxxxxx.DAT, where xxxxxx is the station identification code. PXTRACT also creates an output list file (PXTRACT.LST) which contains the user options and summarizes the station data extracted. Table 4-1 contains a summary of PXTRACT's input and output files. The PXTRACT control file contains the user-specified variables which determine the method used to extract precipitation data from the input data file (i.e., by state, by station, or all stations), the appropriate state or station codes, and the time period to be extracted. A sample PXTRACT control file is shown in Table 4-2. The format and contents of the file are described in Table 4-3. The PXTRACT output list file (PXTRACT.LST) contains a listing of the control file inputs and options. It also summarizes the station data extracted from the input TD-3240 data file, including the starting and ending date of the data for each station and the number of data records found. Since the TD-3240 data are not hourly, PXTRACT will extract the records that cover the period requested by the user. Therefore, the dates of the data extracted from different stations may be different although the same time period was requested by the user. If the starting (or ending) record has a data flag, the previous (or next) record will also be extracted to complete the information necessary for PMERGE to interpret the data correctly. A 4-1

Section 4: PXTRACT Precipit<strong>at</strong>ion D<strong>at</strong>a Extract Program<br />

4. PXTRACT PRECIPITATION DATA EXTRACT PROGRAM<br />

PXTRACT is a preprocessor program which extracts precipit<strong>at</strong>ion d<strong>at</strong>a for st<strong>at</strong>ions and time periods <strong>of</strong><br />

interest from a form<strong>at</strong>ted precipit<strong>at</strong>ion d<strong>at</strong>a file in NCDC TD-3240 form<strong>at</strong>. <strong>The</strong> TD-3240 d<strong>at</strong>a used by<br />

PXTRACT can be in either the fixed record length form<strong>at</strong> or the variable record length form<strong>at</strong>. <strong>The</strong> fixed<br />

record length form<strong>at</strong> reports each hourly precipit<strong>at</strong>ion event in a separ<strong>at</strong>e record, whereas the variable<br />

record length form<strong>at</strong> reports all hourly precipit<strong>at</strong>ion events th<strong>at</strong> occur on a single day in a single record,<br />

and also includes the daily total. <strong>The</strong> hourly precipit<strong>at</strong>ion d<strong>at</strong>a usually come in large blocks <strong>of</strong> d<strong>at</strong>a sorted<br />

by st<strong>at</strong>ion. For example, a typical TD-3240 file for California may contain d<strong>at</strong>a from over 100 st<strong>at</strong>ions<br />

st<strong>at</strong>ewide in blocks <strong>of</strong> time <strong>of</strong> 30 years or more. Modeling applic<strong>at</strong>ions require the d<strong>at</strong>a sorted by time<br />

r<strong>at</strong>her than st<strong>at</strong>ion, and involve specific sp<strong>at</strong>ial domains and time periods from less than one year up to<br />

five years. PXTRACT allows d<strong>at</strong>a for a particular model run to be extracted from the larger d<strong>at</strong>a file and<br />

cre<strong>at</strong>es a set <strong>of</strong> st<strong>at</strong>ion files th<strong>at</strong> are used as input files by the second-stage precipit<strong>at</strong>ion preprocessor,<br />

PMERGE (see Section 5.0).<br />

NOTE: If wet removal is not to be considered by the CALPUFF or MESOPUFF II dispersion models, no<br />

precipit<strong>at</strong>ion processing needs to be done. PXTRACT (and PMERGE) are required only if wet removal<br />

is an important removal mechanism for the modeling applic<strong>at</strong>ion <strong>of</strong> interest. In addition, if wet removal<br />

is a factor, the user has the option <strong>of</strong> cre<strong>at</strong>ing a free-form<strong>at</strong>ted precipit<strong>at</strong>ion d<strong>at</strong>a file th<strong>at</strong> can be read by<br />

CALMET. This option elimin<strong>at</strong>es the need to run the precipit<strong>at</strong>ion preprocessing programs for short<br />

CALMET runs (e.g., screening runs) for which the d<strong>at</strong>a can easily be input manually.<br />

<strong>The</strong> input files used by PXTRACT include a control file (PXTRACT.INP) containing user inputs, and a<br />

d<strong>at</strong>a file (TD3240.DAT) containing the NCDC d<strong>at</strong>a in TD-3240 form<strong>at</strong>. <strong>The</strong> precipit<strong>at</strong>ion d<strong>at</strong>a for<br />

st<strong>at</strong>ions selected by the user are extracted from the TD3240.DAT file and stored in separ<strong>at</strong>e output files<br />

(one file per st<strong>at</strong>ion) called xxxxxx.DAT, where xxxxxx is the st<strong>at</strong>ion identific<strong>at</strong>ion code. PXTRACT<br />

also cre<strong>at</strong>es an output list file (PXTRACT.LST) which contains the user options and summarizes the<br />

st<strong>at</strong>ion d<strong>at</strong>a extracted. <strong>Table</strong> 4-1 contains a summary <strong>of</strong> PXTRACT's input and output files.<br />

<strong>The</strong> PXTRACT control file contains the user-specified variables which determine the method used to<br />

extract precipit<strong>at</strong>ion d<strong>at</strong>a from the input d<strong>at</strong>a file (i.e., by st<strong>at</strong>e, by st<strong>at</strong>ion, or all st<strong>at</strong>ions), the appropri<strong>at</strong>e<br />

st<strong>at</strong>e or st<strong>at</strong>ion codes, and the time period to be extracted. A sample PXTRACT control file is shown in<br />

<strong>Table</strong> 4-2. <strong>The</strong> form<strong>at</strong> and contents <strong>of</strong> the file are described in <strong>Table</strong> 4-3.<br />

<strong>The</strong> PXTRACT output list file (PXTRACT.LST) contains a listing <strong>of</strong> the control file inputs and options.<br />

It also summarizes the st<strong>at</strong>ion d<strong>at</strong>a extracted from the input TD-3240 d<strong>at</strong>a file, including the starting and<br />

ending d<strong>at</strong>e <strong>of</strong> the d<strong>at</strong>a for each st<strong>at</strong>ion and the number <strong>of</strong> d<strong>at</strong>a records found. Since the TD-3240 d<strong>at</strong>a are<br />

not hourly, PXTRACT will extract the records th<strong>at</strong> cover the period requested by the user. <strong>The</strong>refore, the<br />

d<strong>at</strong>es <strong>of</strong> the d<strong>at</strong>a extracted from different st<strong>at</strong>ions may be different although the same time period was<br />

requested by the user. If the starting (or ending) record has a d<strong>at</strong>a flag, the previous (or next) record will<br />

also be extracted to complete the inform<strong>at</strong>ion necessary for PMERGE to interpret the d<strong>at</strong>a correctly. A<br />

4-1

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

Saved successfully!

Ooh no, something went wrong!