UPS Calculation Script
(last updated 8/3/2005)
Note: The link below to the file is an updated version (10/04) of the UPS Calculation Script written by Rich Brumer. It now incorporates the 4 inch soil temp taken from the RR2.
Allan Fisher forwarded this UPS calculation script written by Rich Brumer (Romeoville, IL WFO). To download tar file (Foggy.tar) to your computer, click here. The file contains 3 files:
- mri
- foggy.tcl
- FOGGY.txt
Untar the tar file to where you wish to run the program from (tar -xvf Foggy.tar). As you can see from the MainDIR line below, Rich stores it in /awips/dev/bin/localapps/localpgms/MRI. You can pick you own but it should be NFS mounted in at least the /awips/dev directory.
You will need to make changes to the first 2 files.
The first file is the c-shell script (mri) that initiates the program. You will set up your cron with this program call to kick off the program. You need to make 5 changes here:
Set CCFfile="CCFCHI" | Change this to your local CCF file |
Set FOUS="FRH67" | Select your preferred FOUS data source |
Set SWR="SWRIL" | Rich uses data off the SWR instead of Metars. You will need to change to your state roundup. |
Set product="CHIFOGGY" | Change this to your final product with your node |
Set MainDIR=/awips/dev/bin/localapps/localpgms/MRI | Change this to whatever local applications directory you choose |
The next file (foggy.tcl) is the main file.
Starting about the 12th line down...
Set station "OHARE" | This is the name of the station in your SWR. It is set up for a one word name, so pick a location in your roundup that is identified by one word. |
Set SID "ORD" | This is the station ID that you will search for in the FRH and CCF. Hopefully they will be the same. |
Set env(TZ) CST6CDT | Change this line to your time zone such as EST5EDT, MST7MDT, etc... |
Set WMO "NZUS12 KLOT $ddhhmm\nFOGGY\n\n" | I store the product as NZUS12. You can pick your own plus put in your site ID and change the product name if you like. Don't forget to add it to your afos2awips.txt file. |
Append WMO "BIG AL'S FOG PREDICTOR\nNATIONAL WEATHER SERVICE CHICAGO IL\n" | Change this to whatever you like. |
FOGGY.txt is a copy of the final product that the WFO gets. The program runs automatically in the background so that there is no user input. Rich has it set up on a cron that runs once in the late morning (a head's up for the 18Z TAF run) and once in the mid- to late afternoon (for the afternoon zone's package). The output can be, and usually is, different at those two times, depending on the dewpoint at runtime.