Sections
hurricane - Parses hurricane products and reformats for a web page.
hurricane [parameters...] filename
| Command Line | Resource | Default | Description |
| -h | help | No | Lists basic help information. |
| -df=filename | default | .wxpdef | Sets the name of the resource file. |
| -na=name | name | hurricane | Specifies the name used in resource file parsing. |
| -ba | batch | No | Run program in batch mode |
| -me=level | message | out2 | Specifies level of messages to be displayed
|
| -fp=filepath | file_path | current directory | Specifies location of database files. |
| -dp=datapath | data_path | current directory | Specifies the location (path) of the input raw tropical data files. This is the location where the ingest program has saved the data files. This may be modified in the name convention file. |
| -cp=conpath | con_path | current directory | Specifies the location (path) of the output data files. This will be a root directory for hurricane data such as /data/hurricane. |
| -nc=name_conv | name_conv | name_conv | The name convention file specifies how files are named in WXP. This sets which name convention file to use. |
| -if=in_file | in_file | trp_dat | Specifies the input file name tag. The default is trp_dat, but it
can be modified to any value in the filename convention file. A full name convention can
be specified as well. There are two file types that can also be specified:
If either of these is not specified, standard TPC or JTWC format is assumed. |
| -cu=[hour|la] | current | None | This specifies to use current data files. The current filename is based on the name convention. An optional hour can be specified for older data. If la is specified, the program will search back to find the most recent available file. |
| -ho=hour | hour | None | This resource specifies the exact hour that a data file is valid for. This locks in the start hour for a multi-file sequence. |
| -nh=num_hour | num_hour | 0 | This specifies the number of hours that will be searched for hourly data. |
| -id=identifier | identifier | None | Used to decode a specific storm (reserved for future use). |
| -pa=param[,param...] | parameter | None | Extra parameters: |
| filename[#seq] | filename | None User Pompt Batch: current=la |
The name of the raw data file to be parsed. An optional sequence number can be added to designate the time for non-WXP files. |
The hurricane program parses hurricane products in order to generate a wide range of data files containing information on specific hurricanes. The input to the program is raw tropical data file from the TPC (Tropical Prediction Center) and the Joint Typhoon Warning Center (JTWC) which can contain any number of products. To simplify the process, it is highly recommended to save the hurricane products (WTxx) in a separate file type as specified by the trp_dat file name tag.
The program parses three types of TPC products:
The output of the program is the following set of files for each active storm:
Date: 24 AUG-04 SEP 1996 Hurricane FRAN ADV LAT LON TIME WIND PR STAT 1 14.40 -25.10 24/03Z 30 1007 TROPICAL DEPRESSION 2 14.80 -26.70 24/09Z 30 1007 TROPICAL DEPRESSION 3 14.50 -29.20 24/15Z 30 1007 TROPICAL DEPRESSION ... 41A 25.70 -73.10 04/00Z 100 963 HURRICANE-3 +12 26.10 -74.50 04/06Z 95 - HURRICANE-2 +24 27.40 -76.40 04/18Z 100 - HURRICANE-3 +36 29.00 -78.10 05/06Z 105 - HURRICANE-3 +48 30.90 -79.80 05/18Z 110 - HURRICANE-3 +72 35.00 -83.00 06/18Z 40 - TROPICAL STORM
mapplt -pd=fi:track.dom track.raw-LINEll,24.70,-54.05,25,17,2.83,2.83xsat ... -pd=fi:last.dom170903i.gif Infrared image of storm east of Bahamas (17Z Sep 03)
Hurricane FRAN 24 AUG-04 SEP 100 963 3
The program puts these files in directories sorted by storm, region and year. The above files are put in the directories for each storm. The directory structure looks like:
| storm1 | storm2... | storm1 | storm2... | storm1 | storm2... | storm1 | storm2... |
year1 |
year2... |
year1 |
year2... |
||||
region1 |
region2... |
||||||
con_path |
|||||||
The regions include:
Finally, the program produces a listing file which is put in each year directory:
This file is only a list of those storms that were active within the period parsed. This list can be used to determine which storms need to be updated on a regular basis. Also, this list can be parsed and new storms added to an overall names file which has all the named storms for a particular year.
Automating the Hurricane Processing
The hurricane program will process each storm that has advisories in the raw tropical files that are in the range specified by num_hour resource. When reprocessing the data, hurricane reads in the track.dat file for every storm that it sees in the raw files to obtain any older advisory information, adding the new advisories onto the end of the file.
There are a couple of scripts that go with the hurricane program. The first is hur_update which runs all the tasks to generate images and HTML pages based on the information generated by hurricane. This script should be run in cron once every 2-4 hours or roughly 10-15 minutes after each advisory in order to get the latest advisories. The script does the following tasks:
When all this is completed, there is an up to date HTML hurricane page with all the tracking charts updated and current satellite images.
hurricane -cu=la -nh=-6
This updates the hurricane files for the last 6 hours. This should be run from cron either by invoking the hurricane program or the hur_update script.
For further information about WXP, email technical-support@weather.unisys.com
Last updated by Dan Vietor on Aug 27, 1997