home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!news.larc.nasa.gov!icat.larc.nasa.gov!smith
- From: smith@icat.larc.nasa.gov (Steven L. Smith)
- Subject: Re: Euroweather data
- Message-ID: <BuM8xE.Mu1@news.larc.nasa.gov>
- Sender: news@news.larc.nasa.gov (USENET Network News)
- Organization: NASA Langley Research Center, Hampton, VA USA
- References: <18n71qINNi9g@darkstar.UCSC.EDU> <1992Sep11.114718.26874@ringer.cs.utsa.edu> <1992Sep14.184015.21413@iitmax.iit.edu>
- Date: Tue, 15 Sep 1992 10:53:38 GMT
- Lines: 101
-
- In article <1992Sep14.184015.21413@iitmax.iit.edu>, thsspxh@iitmax.iit.edu (Patrick HURT) writes:
- |> In article <1992Sep11.114718.26874@ringer.cs.utsa.edu> senseman@ricky.brainlab.utsa.edu (David M. Senseman) writes:
- |> >In article <18n71qINNi9g@darkstar.UCSC.EDU> mmcohen@cats.ucsc.edu (Michael M Cohen) writes:
- |> >>
- |> >>Someone was asking about European weather maps
- |> >>for bgpaste? ... Should work with a bit of editing
- |> >>for the weather shell recently posted.
- |> >>
- |> >
- |> >The original post in this thread (which I missed somehow) mentioned
- |> >something about getting US weather maps but not European. Could someone
- |> >E-Mail me the site for getting US Weather maps? Thanks.
- |> >--
- |>
- |> Me too, please! Also, if anybody has a script getting the weather
- |> by ftp, and popping it up on the screen, please mail it to me.
- |>
- |> Thanks, Patrick.
- |>
- |> --
-
- The script, which I got and modified from F.R. Phelan is as follows:
-
- --Begin-----------------------------------------------------------------------
- #!/bin/csh -f
- # display-weather-map
- # Sets the background to the latest USA weather map.
- #
- # Original:
- # Ron Boisvert, NIST, 25 Jun 92
- #
- # Modified for SGI:
- # F.R. Phelan Jr.
- # NIST Polymers Division
- # September 1, 1992
- #
- #
- #Background info:
- #nslookup vmd.cso.uiuc.edu
- #Non-authoritative answer:
- #Name: VMD.CSO.UIUC.EDU
- #Addresses: 128.174.5.98, 192.17.13.1
- #
-
- #Default settings ...
- set NameOfThisScript = weather
- set infile = /usr/tmp/weather.$$.ftp
- set gif_file = /usr/tmp/weather.$$.GIF
- set rgb_file1 = /usr/tmp/weather.$$.rgb.1
- set rgb_file2 = /usr/tmp/weather.$$.rgb.2
-
-
- # Usage.
- if ($#argv != 0) then
- echo
- echo $NameOfThisScript":"
- echo "A script to display the current US weather map."
- echo
- echo "Usage: $NameOfThisScript"
- echo
- exit 1
- endif
-
- onintr cleanup
-
- cat > $infile << END
- user anonymous
- cd wx
- binary
- get CVIS.GIF $gif_file
- bye
- END
-
- echo Getting current weather map image...
- ftp -n 128.174.5.98 < $infile
-
- # Begin my mode.
- gif $gif_file
- rm -f $infile $gif_file
- # End my mode.
-
- #fromgif $gif_file $rgb_file1
- #izoom $rgb_file1 $rgb_file2 1.06 1.7
-
- #echo .......... Painting Root Window
- #bgpaste -t 0 0 0 $rgb_file2
-
- # give the machine some time to paste ...
- #sleep 20
-
- #cleanup:
-
- # rm -f $infile $gif_file $rgb_file1 $rgb_file2
- --End---------------------------------------------------------------------------
-
- *******************************************************************************
- Steve Smith | Internet: smith@icat.larc.nasa.gov
- NASA Langley Research Center | s.l.smith@larc.nasa.gov
- M/S 152 | Voice: (804) 864-2004
- Hampton, VA 23681 | FAX : (804) 864-7793
- *******************************************************************************
-