source: SH_SHM/trunk/util/call_mapquest.csh @ 92

Revision 16, 657 bytes checked in by marcus, 15 years ago (diff)

r1 | svn | 2007-12-13 11:10:29 +0100 (Do, 13 Dez 2007) | 2 lines

Initial import

  • Property svn:executable set to *
Line 
1#! /bin/csh
2#
3# file call_mapquest.csh
4#      =================
5#
6# version 1, 16-Dec-2005
7#
8# Calls mapping program mapquest for displaying locations
9# K. Stammler, 16-Dec-2005
10
11if  ("$1" == "")  then
12        echo "Usage: $0 <evtfile>"
13        exit
14endif
15
16# get parameters
17set evt=$1
18
19# set constants
20
21if  (! -e $evt)  then
22        echo "$0 : Input evtfile $evt not found.  Abort."
23        exit
24endif
25
26set lat=`grep ^Latitude $evt`
27set lon=`grep ^Longitude $evt`
28
29if  ($#lat < 3  ||  $#lon < 3)  then
30        echo "$0 : No location found in Evt-file.  Abort."
31        exit
32endif
33set lat=`echo $lat[3] | sed 's/^+//'`
34set lon=`echo $lon[3] | sed 's/^+//'`
35
36$SH_UTIL/display_mapquest.csh $lat $lon &
Note: See TracBrowser for help on using the repository browser.