#!/bin/sh # # Update the hurricane database from the Michigan weather menus # # TRM 1994-08-02 Root="/data1/WWW/Tropical/Bin" DataDir="/data1/WWW/Tropical/Data" TFile="/data1/WWW/Tropical/Data/tropical" TempFile="${Root}/WXUpdate.WX.$$" SProbArchive="/data1/WWW/Tropical/StrikeProb/Archive" RCP="/usr/ucb/rcp" DATE="/usr/bin/date" year=`$DATE +%y` YEAR=`$DATE +%Y` BeforeSize=`cat $TFile | wc -l` #${Root}/nethurr | ${Root}/hurricane >> $TFile ${Root}/urlhurr http://www.met.fsu.edu/Data/archive/weather/HURR/ | ${Root}/hurricane >> $TFile #${Root}/urlhurr http://asp1.sbs.ohio-state.edu:80/text/severe/tropadv/ | ${Root}/hurricane >> $TFile #${Root}/urlhurr http://asp1.sbs.ohio-state.edu:80/text/tropical/ | ${Root}/hurricane >> $TFile ${Root}/urlhurr http://asp1.sbs.ohio-state.edu:80/text/tropical/atlantic/advisories/ | ${Root}/hurricane >> $TFile ${Root}/urlhurr http://asp1.sbs.ohio-state.edu:80/text/tropical/atlantic/advisories/${YEAR}/ | ${Root}/hurricane >> $TFile ${Root}/urlhurr http://asp1.sbs.ohio-state.edu:80/text/tropical/pacific/advisories/ | ${Root}/hurricane >> $TFile ${Root}/urlhurr http://asp1.sbs.ohio-state.edu:80/text/tropical/indian/advisories/ | ${Root}/hurricane >> $TFile ${Root}/urlhurr http://asp1.sbs.ohio-state.edu:80/text/tropical/atlantic/discussions/ | ${Root}/hurricane >> $TFile ${Root}/urlhurr http://asp1.sbs.ohio-state.edu:80/text/tropical/pacific/discussions/ | ${Root}/hurricane >> $TFile ${Root}/urlhurr http://asp1.sbs.ohio-state.edu:80/text/tropical/indian/discussions/ | ${Root}/hurricane >> $TFile ${Root}/mailhurr -delete | ${Root}/hurricane >> $TFile AfterSize=`cat $TFile | wc -l` if [ $AfterSize -gt $BeforeSize ]; then ${Root}/NameCheck $TFile | ${Root}/remdup -SaveOldForecasts | ${Root}/sortropical > $TempFile if [ -s $TempFile ]; then mv $TempFile $TFile if [ -f $TempFile ]; then cp ${TFile}${year} $TFile else cp $TFile ${TFile}${year} fi else rm -f $TempFile fi fi ${Root}/rmprobs & ${Root}/CurrentStorms ${TFile} > ${Root}/current.storms ${Root}/CurrentStormsClip ${TFile} /bin/cat /data1/WWW/Tropical/HTML/tropical.1 /data1/WWW/Tropical/Bin/current.storms /data1/WWW/Tropical/HTML/tropical.2 > /data1/WWW/Tropical/tropical.html if [ -s $TFile ]; then ${Root}/MakeMaps fi ${Root}/MakeArchiveHTML > /data1/WWW/Tropical/summary.html ${Root}/MakeGifArchiveHTML > /data1/WWW/Tropical/archive.html ${Root}/MakeForecastHTML > /data1/WWW/Tropical/forecast.html ${Root}/CheckForecasts -delete $DataDir >> ${DataDir}/forecasts${year}