home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / sci / space / shuttle / 2182 < prev    next >
Encoding:
Text File  |  1992-08-29  |  2.0 KB  |  70 lines

  1. Newsgroups: sci.space.shuttle
  2. Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!mperlman
  3. From: mperlman@nyx.cs.du.edu (Marshal "Airborne" Perlman)
  4. Subject: Re: Weather Satellite pictures
  5. Message-ID: <1992Aug28.174001.11627@mnemosyne.cs.du.edu>
  6. Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
  7. Organization: University of Denver, Dept. of Math & Comp. Sci.
  8. References: <1992Aug26.165238.7418@aio.jsc.nasa.gov> <1992Aug27.134449.24628@Princeton.EDU>
  9. Date: Fri, 28 Aug 92 17:40:01 GMT
  10. Lines: 58
  11.  
  12. awtron@strawber.princeton.edu (Andrew Tron) writes:
  13.  
  14. >In article <1992Aug26.165238.7418@aio.jsc.nasa.gov> tes@nomad.uucp (Thomas E. Smith [LORAL]) writes:
  15. >>I've heard of an ftp site about a year ago that keeps satellite pictures from
  16. >>the last 24 hours in gif format. Does any one know where this site is?
  17. >>
  18. >The site is vmd.cso.uiuc.edu.  Once you ftp to this site, cd to directory
  19. >"wx" and set the mode to "binary".  The latest weather satellite gifs in
  20. >high resolution are stored in the files "cvis.gif" and "cir.gif" (visual
  21. >band and infrared band images, respectively.  Lower resolution images
  22. >from the recent (i.e. 24 hr or so) past are stored in the files 
  23. >"cvMMDDZZ.gif" and "ciMMDDZZ.gif" where MM is the month, DD is the date
  24. >and ZZ is the hour in UTC.  Furthermore, composite surface analysis and
  25. >radar images are stored in the files "saMMDDZZ.gif".
  26.  
  27.  
  28. try this:
  29.  
  30.  
  31. #! /bin/sh
  32.  
  33. host=vmd.cso.uiuc.edu
  34. dir=wx
  35. tmp=/tmp/sa$$
  36. trap "rm -f $tmp" 1 2 3 15
  37.  
  38. ftp -niv $host >$tmp <<!
  39. user anonymous
  40. cd $dir
  41. dir SA*.GIF
  42. quit
  43. !
  44.  
  45. file=`awk '$2=="GIF" {f=$1} END {print f".GIF"}' $tmp`
  46. lfile=`echo $file | tr A-Z a-z`
  47.  
  48. if [ -f $lfile ] ; then
  49.     echo $lfile: already exists
  50.     exit 1
  51. fi
  52.  
  53. ftp -ni $host <<!
  54. user anonymous
  55. cd $dir
  56. binary
  57. get $file $lfile
  58. quit
  59. !
  60.  
  61. echo $lfile: copied
  62.  
  63. rm $tmp
  64. exit
  65. --
  66. Generic Signature:
  67. Marshal Perlman - Huntington Beach - California - USA - Earth - Milky Way
  68. yaW ykliM - htraE - ASU - ainrofilaC - hcaeB notgnitnuH - namlreP lahsraM
  69.                                                         :erutangiS cireneG
  70.