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 4: PXTRACT Precipitation Data Extract Program sample output list file is shown in Table 4-4. The PXTRACT output data files consist of precipitation data in TD-3240 format for the time period selected by the user. Each output data file contains the data for one station. A sample output file is shown in Table 4-5. Table 4-1: PXTRACT Input and Output Files Unit File Name Type Format Description IO5 PXTRACT.INP input formatted Control file containing user inputs IO2 TD3240.DAT input formatted Precipitation data in NCDC TD-3240 format IO6 PXTRACT.LST output formatted List file (line printer output file) Unit 7 Unit 7 Plus 1 id1.DAT (id1 is the 6-digit station code for station #1, e.g., 040001) id2.DAT (id2 is the 6-digit station code for station #2, e.g., 040002) output formatted Precipitation data (in TD-3240) format for station #1 for the time period selected by the user output formatted Precipitation data (in TD-3240) format for station #2 for the time period selected by the user . . . (Up to 200 new precipitation data files are allowed by PXTRACT). 4-2

Section 4: PXTRACT Precipitation Data Extract Program Table 4-2: Sample PXTRACT Control File (PXTRACT.INP) ------------------------------------------------------------------------------- PXTRACT PROCESSOR CONTROL FILE ------------------------------ CALMET accepts data for a number of precipitation stations in a single PRECIP.DAT file. These data are obtained in the NCDC TD-3240 format, with either fixed (hourly event records) or variable record length (daily records of hourly precipitation events). This NCDC format typically places data for many stations and long periods in a single file. PXTRACT extracts a subset of stations, for a specific period, into files for subsequent processing by PMERGE. Each output file contains the data for a single station. ------------------------------------------------------------------------------- INPUT GROUP: 0 -- Input and Output Files -------------- Input and Output files: ----------------------- Default Name Type File Name ------------ ---- --------- TD3240.DAT input ! PRECDAT =file0001.dat ! PXTRACT.LST output ! RUNLST =pxtract1.lst ! All file names will be converted to lower case if LCFILES = T Otherwise, if LCFILES = F, file names will be converted to UPPER CASE (LCFILES) Default: T ! LCFILES = F ! T = lower case F = UPPER CASE NOTES: 1) File/path names can be up to 70 characters in length; 2) Output files are named automatically using the state/station ID (e.g., 412797.DAT for station 412707) !END! -------------------------------------------------------------------------------- INPUT GROUP: 1 -- Run control parameters -------------- --- Processing Period --- Starting date: Year (IBYR) -- No default ! IBYR = 1990 ! Month (IBMO) -- No default ! IBMO = 1 ! Day (IBDY) -- No default ! IBDY = 8 ! Ending date: Year (IEYR) -- No default ! IEYR = 1990 ! Month (IEMO) -- No default ! IEMO = 1 ! Day (IEDY) -- No default ! IEDY = 15 ! ------------- 4-3

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

<strong>Table</strong> 4-2:<br />

Sample PXTRACT Control File (PXTRACT.INP)<br />

-------------------------------------------------------------------------------<br />

PXTRACT PROCESSOR CONTROL FILE<br />

------------------------------<br />

CALMET accepts d<strong>at</strong>a for a number <strong>of</strong> precipit<strong>at</strong>ion st<strong>at</strong>ions in a<br />

single PRECIP.DAT file. <strong>The</strong>se d<strong>at</strong>a are obtained in the NCDC TD-3240<br />

form<strong>at</strong>, with either fixed (hourly event records) or variable record<br />

length (daily records <strong>of</strong> hourly precipit<strong>at</strong>ion events). This NCDC form<strong>at</strong><br />

typically places d<strong>at</strong>a for many st<strong>at</strong>ions and long periods in a single<br />

file. PXTRACT extracts a subset <strong>of</strong> st<strong>at</strong>ions, for a specific period,<br />

into files for subsequent processing by PMERGE. Each output file<br />

contains the d<strong>at</strong>a for a single st<strong>at</strong>ion.<br />

-------------------------------------------------------------------------------<br />

INPUT GROUP: 0 -- Input and Output Files<br />

--------------<br />

Input and Output files:<br />

-----------------------<br />

Default Name Type<br />

File Name<br />

------------ ---- ---------<br />

TD3240.DAT input ! PRECDAT =file0001.d<strong>at</strong> !<br />

PXTRACT.LST output ! RUNLST =pxtract1.lst !<br />

All file names will be converted to lower case if LCFILES = T<br />

Otherwise, if LCFILES = F, file names will be converted to UPPER CASE<br />

(LCFILES) Default: T ! LCFILES = F !<br />

T = lower case<br />

F = UPPER CASE<br />

NOTES: 1) File/p<strong>at</strong>h names can be up to 70 characters in length;<br />

2) Output files are named autom<strong>at</strong>ically using the st<strong>at</strong>e/st<strong>at</strong>ion<br />

ID (e.g., 412797.DAT for st<strong>at</strong>ion 412707)<br />

!END!<br />

--------------------------------------------------------------------------------<br />

INPUT GROUP: 1 -- Run control parameters<br />

--------------<br />

--- Processing Period ---<br />

Starting d<strong>at</strong>e: Year (IBYR) -- No default ! IBYR = 1990 !<br />

Month (IBMO) -- No default ! IBMO = 1 !<br />

Day (IBDY) -- No default ! IBDY = 8 !<br />

Ending d<strong>at</strong>e: Year (IEYR) -- No default ! IEYR = 1990 !<br />

Month (IEMO) -- No default ! IEMO = 1 !<br />

Day (IEDY) -- No default ! IEDY = 15 !<br />

-------------<br />

4-3

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

Saved successfully!

Ooh no, something went wrong!