WXP
Program Reference

wmotext

Sections

NAME

wmotext - General data parser

SYNOPSIS

wmotext [parameters...] filename

PARAMETERS

Command Line Resource Default Description
-h help No Lists basic help information.
-df=filename default wxp.cfg Sets the name of the resource file.
-na=name name the program name Specifies the name used in resource file parsing.
-me=level message out2 Specifies level of messages to be displayed
-fp=path file_path the current directory Specifies location of database files.
-dp=path data_path the current directory Specifies the location of the input raw data files.
-nc=name_conv name_conv name.cnv or name_conv file This sets which name convention file to use.
-cu=[hour] current none This specifies to use current data files.
-ho=hour hour none Specifies the exact hour that a data file is valid for.
-nh=hours[,skip] num_hour Value Generally 0 Specifies the number of hours worth of data to use in the program
-ph=product product None Specifies a WMO header for parsing data
-id=ident[,ident...] identifier None Specifies a station identifier to plot or parse for
-pa=param[,param...] parameter none Specifies addition parameters to program.
filename (positional) filename none Specify input filename

DESCRIPTION

EXAMPLES

To parse for the latest state forecast from KIND

   parse -cu -nh=-12 -ph=FPUS1_KIND -pa=last
   ** FPUS1 KIND 022030 ***
SFPIN
INZ002>089-031000-

STATE FORECAST FOR INDIANA
NATIONAL WEATHER SERVICE INDIANAPOLIS IN
330 PM EST THU OCT 2 1997

.TONIGHT...FAIR AND WARMER. LOWS 50 TO 55.
.FRIDAY...MOSTLY SUNNY...BREEZY AND WARMER. HIGHS 80 TO 85.
.FRIDAY NIGHT...BECOMING MOSTLY CLOUDY. A CHANCE OF THUNDERSTORMS.
LOWS IN THE LOWER 60S.
.SATURDAY...MOSTLY CLOUDY...BREEZY AND A CHANCE OF THUNDERSTORMS.
WARM. HIGHS MIDDLE 70S TO AROUND 80.

.EXTENDED FORECAST...
.SUNDAY AND MONDAY...MOSTLY CLEAR AND WARM. LOWS MIDDLE 50S TO AROUND
60. HIGHS UPPER 70S TO LOWER 80S.
.TUESDAY...PARTLY CLOUDY AND MILD. LOWS AROUND 50 TO MIDDLE 50S.
HIGHS IN THE 70S.
DS

To parse for the latest state forecast using the AFOS PIL. Note the in_file is specified since the product header does not appear in the parse.lup file.

   parse -cu -nh=-12 -if=for_dat -ph=/SFPIN -pa=last

To parse for the latest zone forecast

   parse -cu -nh=-12 -ph=FPUS53_KIND -id=%INZ029 -pa=dollar,last
** FPUS53 KIND 022040 COR ***
INZ020>023-028>030-035-036-043-044-051-052-060-067-030930-
CARROLL-CASS-CLAY-CLINTON-FOUNTAIN-KNOX-MIAMI-MONTGOMERY-PARKE-
SULLIVAN-TIPPECANOE-VERMILLION-VIGO-WARREN-WHITE-
INCLUDING THE CITIES OF...CRAWFORDSVILLE...FRANKFORT...LAFAYETTE...
LOGANSPORT...TERRE HAUTE...VINCENNES
330 PM EST THU OCT 2 1997

.TONIGHT...PARTLY CLOUDY AND WARMER. LOW IN THE MIDDLE 50S. SOUTHWEST
WIND 5 TO 10 MPH.
.FRIDAY...MOSTLY SUNNY AND WARMER. HIGH 80 TO 85. BREEZY SOUTHWEST
WIND 15 TO 20 MPH.
.FRIDAY NIGHT...BECOMING MOSTLY CLOUDY. A 40 PERCENT CHANCE OF
THUNDERSTORMS. MILD. LOW IN THE LOWER 60S.
.SATURDAY...MOSTLY CLOUDY...BREEZY AND A 40 PERCENT CHANCE OF
THUNDERSTORMS. MILD. HIGH IN THE UPPER 70S.

FILES

SEE ALSO


Last updated November 2013