#!/bin/csh

#  Draw basemap
#  ------------

gmtset PAPER_MEDIA archD

pscoast -Jm3.0 -R-123.3000000/-120.1666667/43.5000000/45.0000000 \
-Ba1.0f10mwSnE \
-W3/0/0/0 -Na/1 -N2/5/255/255/255 -N2/2/0/0/0 -S153/255/255 \
-Df -Ir/1/114/187/243 \
-Lf-122.500000/43.75000000/43.75000000/50.0 \
-G255/255/255 -P -K >! Mckenzie.ps

#  All M7-7.9 Earthquakes in the last week
#  ---------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G255/255/0 \
-Jm -Ss.90 -O -K \
>> Mckenzie.ps
EOT

#  All M6-6.9 Earthquakes in the last week
#  ---------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G255/255/0 \
-Jm -Ss.75 -O -K \
>> Mckenzie.ps
EOT

#  All M5-5.9 Earthquakes in the last week
#  ---------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G255/255/0 \
-Jm -Ss.60 -O -K \
>> Mckenzie.ps
EOT

#  All M4-4.9 Earthquakes in the last week
#  ---------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G255/255/0 \
-Jm -Ss.45 -O -K \
>> Mckenzie.ps
EOT

#  All M3-3.9 Earthquakes in the last week
#  ---------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G255/255/0 \
-Jm -Ss.30 -O -K \
>> Mckenzie.ps
EOT

#  All M2-2.9 Earthquakes in the last week
#  ---------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G255/255/0 \
-Jm -Ss.20 -O -K \
>> Mckenzie.ps
EOT

#  All M1-1.9 Earthquakes in the last week
#  ---------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G255/255/0 \
-Jm -Ss.10 -O -K \
>> Mckenzie.ps
EOT

#  All M7-7.9 Earthquakes in the last day
#  --------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G0/175/223 \
-Jm -Ss.90 -O -K \
>> Mckenzie.ps
EOT

#  All M6-6.9 Earthquakes in the last day
#  --------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G0/175/223 \
-Jm -Ss.75 -O -K \
>> Mckenzie.ps
EOT

#  All M5-5.9 Earthquakes in the last day
#  --------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G0/175/223 \
-Jm -Ss.60 -O -K \
>> Mckenzie.ps
EOT

#  All M4-4.9 Earthquakes in the last day
#  --------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G0/175/223 \
-Jm -Ss.45 -O -K \
>> Mckenzie.ps
EOT

#  All M3-3.9 Earthquakes in the last day
#  --------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G0/175/223 \
-Jm -Ss.30 -O -K \
>> Mckenzie.ps
EOT

#  All M2-2.9 Earthquakes in the last day
#  --------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G0/175/223 \
-Jm -Ss.20 -O -K \
>> Mckenzie.ps
EOT

#  All M1-1.9 Earthquakes in the last day
#  --------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G0/175/223 \
-Jm -Ss.10 -O -K \
>> Mckenzie.ps
EOT

#  All M7-7.9 Earthquakes in the last hour
#  ---------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G255/0/24 \
-Jm -Ss.90 -O -K \
>> Mckenzie.ps
EOT

#  All M6-6.9 Earthquakes in the last hour
#  ---------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G255/0/24 \
-Jm -Ss.75 -O -K \
>> Mckenzie.ps
EOT

#  All M5-5.9 Earthquakes in the last hour
#  ---------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G255/0/24 \
-Jm -Ss.60 -O -K \
>> Mckenzie.ps
EOT

#  All M4-4.9 Earthquakes in the last hour
#  ---------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G255/0/24 \
-Jm -Ss.45 -O -K \
>> Mckenzie.ps
EOT

#  All M3-3.9 Earthquakes in the last hour
#  ---------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G255/0/24 \
-Jm -Ss.30 -O -K \
>> Mckenzie.ps
EOT

#  All M2-2.9 Earthquakes in the last hour
#  ---------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G255/0/24 \
-Jm -Ss.20 -O -K \
>> Mckenzie.ps
EOT

#  All M1-1.9 Earthquakes in the last hour
#  ---------------------------------------
psxy << EOT -: -R -W3/0/0/0 -G255/0/24 \
-Jm -Ss.10 -O -K \
>> Mckenzie.ps
EOT

#  Station labels
#  --------------
pstext << EOT -: -R -Jm -G0/0/0 -D.07/-.07 -O -K \
>> Mckenzie.ps
  44.290218 -121.762962 9 0.0 1 5 BLCK
  44.173828 -122.330567 9 0.0 1 5 BR02
  44.307048 -120.618882 9 0.0 1 5 C753
  44.190703 -122.023757 9 0.0 1 5 CUPO
  44.210454 -121.085751 9 0.0 1 5 DRYX
  44.256375 -120.929843 9 0.0 1 5 HSTN
  44.189138 -121.886957 9 0.0 1 5 LALA
  44.176989 -122.176426 9 0.0 1 5 LCCM
  44.240333 -121.857457 9 0.0 1 5 LINT
  44.397067 -120.415889 9 0.0 1 5 M753
  44.064627 -122.023624 9 0.0 1 5 MOSQ
  44.294820 -121.351964 9 0.0 1 5 N735
  44.259767 -121.147881 9 0.0 1 5 REDM
  44.052119 -122.887057 9 0.0 1 5 P377
  44.342185 -122.217220 9 0.0 1 5 P383
  44.296756 -121.574476 9 0.0 1 5 P387
  44.532523 -119.872011 9 0.0 1 5 P433
  44.023205 -121.775708 9 0.0 1 5 SINK
  44.305684 -121.555910 9 0.0 1 5 SIST
  44.145643 -122.570571 9 0.0 1 5 VIDA
  44.077795 -122.763060 9 0.0 1 5 WALT
EOT

#  Kodiak Earthquake
#  ------------------
psxy << EOT -: -R -W5/51/51/255 -G255/255/255 \
-Jm -Sa.15 -O -K \
>> Mckenzie.ps
  56.6833     -153.3000
EOT

#  Kodiak Earthquake label
#  ------------------------
pstext << EOT -: -R -Jm -G0 -O -K \
>> Mckenzie.ps
57.0 -153.2 9 0.0 1 5 Kodiak_Eq_20010110
56.8 -153.2 9 0.0 1 5 M6.7
EOT

#  Kodiak Earthquake
#  ------------------
psxy << EOT -: -R -W5/51/51/255 -G255/255/255 \
-Jm -Sa.15 -O -K \
>> Mckenzie.ps
  57.51     -154.67
EOT

#  Kodiak Earthquake label
#  ------------------------
pstext << EOT -: -R -Jm -G0 -O -K \
>> Mckenzie.ps
57.4 -154.3 9 0.0 1 5 Kodiak_Eq_19991206
57.2 -154.3 9 0.0 1 5 M7.0
EOT

#  Velocity vectors
#  ----------------
psvelo << EOT -R \
-W1/255/0/63 -G70/100/190 \
-Se0.04/.95/0 -B  \
-Jm -A0.01/0.12/0.03 -O -K \
>> Mckenzie.ps
-121.762962	  44.290218	 -0.10	  6.36	  0.73	  0.69	 -0.0373	BLCK
-122.330567	  44.173828	 -0.42	  6.06	  0.81	  0.75	 -0.0770	BR02
-120.618882	  44.307048	 -1.07	  4.55	  0.77	  0.75	  0.0024	C753
-122.023757	  44.190703	 -1.33	  5.68	  0.54	  0.48	  0.0126	CUPO
-121.085751	  44.210454	 -0.40	  5.67	  0.72	  0.69	  0.0397	DRYX
-120.929843	  44.256375	 -0.82	  3.93	  0.64	  0.61	  0.0287	HSTN
-121.886957	  44.189138	 -1.87	  7.67	  0.79	  0.65	  0.2063	LALA
-122.176426	  44.176989	 -0.22	  6.04	  0.96	  1.04	  0.0192	LCCM
-121.857457	  44.240333	  0.08	  7.98	  0.73	  0.73	  0.0177	LINT
-120.415889	  44.397067	 -1.03	  4.53	  0.92	  0.94	  0.0615	M753
-122.023624	  44.064627	 -0.06	  4.03	  0.78	  0.69	 -0.0599	MOSQ
-121.351964	  44.294820	  0.47	  3.47	  0.78	  0.75	  0.0320	N735
-121.147881	  44.259767	  0.25	  3.90	  0.38	  0.35	  0.0159	REDM
-122.887057	  44.052119	 -3.30	  5.60	  2.00	  1.72	 -0.0029	P377
-122.217220	  44.342185	  0.00	  0.00	  0.00	  0.00	 -0.0070	P383
-121.574476	  44.296756	  1.91	 -0.69	  1.99	  1.73	  0.0111	P387
-119.872011	  44.532523	  0.00	  0.00	  0.00	  0.00	  0.0307	P433
-121.775708	  44.023205	  4.31	  1.93	  1.04	  0.87	  0.0065	SINK
-121.555910	  44.305684	  0.10	  4.95	  0.64	  0.59	  0.0031	SIST
-122.570571	  44.145643	  0.72	  5.71	  0.93	  0.85	  0.0843	VIDA
-122.763060	  44.077795	  0.35	  6.58	  1.15	  1.03	 -0.0364	WALT
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -St0.10 -O -K \
>> Mckenzie.ps
  44.290218	-121.762962	BLCK
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -St0.10 -O -K \
>> Mckenzie.ps
  44.173828	-122.330567	BR02
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -St0.10 -O -K \
>> Mckenzie.ps
  44.307048	-120.618882	C753
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -St0.10 -O -K \
>> Mckenzie.ps
  44.190703	-122.023757	CUPO
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -St0.10 -O -K \
>> Mckenzie.ps
  44.210454	-121.085751	DRYX
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -St0.10 -O -K \
>> Mckenzie.ps
  44.256375	-120.929843	HSTN
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -St0.10 -O -K \
>> Mckenzie.ps
  44.189138	-121.886957	LALA
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -St0.10 -O -K \
>> Mckenzie.ps
  44.176989	-122.176426	LCCM
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -St0.10 -O -K \
>> Mckenzie.ps
  44.240333	-121.857457	LINT
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -St0.10 -O -K \
>> Mckenzie.ps
  44.397067	-120.415889	M753
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -St0.10 -O -K \
>> Mckenzie.ps
  44.064627	-122.023624	MOSQ
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -St0.10 -O -K \
>> Mckenzie.ps
  44.294820	-121.351964	N735
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -Sc0.07 -O -K \
>> Mckenzie.ps
  44.259767	-121.147881	REDM
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -Sc0.07 -O -K \
>> Mckenzie.ps
  44.052119	-122.887057	P377
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -Sc0.07 -O -K \
>> Mckenzie.ps
  44.342185	-122.217220	P383
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -Sc0.07 -O -K \
>> Mckenzie.ps
  44.296756	-121.574476	P387
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -Sc0.07 -O -K \
>> Mckenzie.ps
  44.532523	-119.872011	P433
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -St0.10 -O -K \
>> Mckenzie.ps
  44.023205	-121.775708	SINK
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -St0.10 -O -K \
>> Mckenzie.ps
  44.305684	-121.555910	SIST
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -St0.10 -O -K \
>> Mckenzie.ps
  44.145643	-122.570571	VIDA
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W2/0/0/0 -G255/0/0 \
-Jm -St0.10 -O -K \
>> Mckenzie.ps
  44.077795	-122.763060	WALT
EOT

#  Olympia Earthquake
#  ------------------
psxy << EOT -: -R -W5/51/51/255 -G255/255/255 \
-Jm -Sa.15 -O -K \
>> Mckenzie.ps
  47.167 -122.733
EOT

#  HM Earthquake
#  -------------
psxy << EOT -: -R -W5/51/51/255 -G255/255/255 \
-Jm -Sa.15 -O -K \
>> Mckenzie.ps
  34.595500     -116.268167
EOT

#  HM Earthquake label
#  --   --------------
pstext << EOT -: -R -Jm -G0 -O -K \
>> Mckenzie.ps
34.55 -116.268167 9 0.0 1 5 Hector_Mine_Eq
34.53 -116.268167 9 0.0 1 5 M7.1
EOT

#  Landers Earthquake
#  ------------------
psxy << EOT -: -R -W5/51/51/255 -G255/255/255 \
-Jm -Sa.15 -O -K \
>> Mckenzie.ps
  34.216666667     -116.43333333333
EOT

#  Landers Earthquake label
#  ------------------------
pstext << EOT -: -R -Jm -G0 -O -K \
>> Mckenzie.ps
34.18 -116.43333333333 9 0.0 1 5 Landers_Eq
34.16 -116.43333333333 9 0.0 1 5 M7.3
EOT

#  Label plot and vector scale
#  ---------------------------
psvelo << EOT -: -R \
-W1/255/0/0 -G70/100/190 -Se0.04/.95/0 -B  \
-Jm -A0.03/0.12/0.03 -O -K \
>> Mckenzie.ps
43.65000000 -122.500000 0.0 20.0 0.0 0.0 0.0 Scale
EOT
pstext << EOT -: -R -Jm -O \
>> Mckenzie.ps
43.60000000 -122.500000 9 0.0 0 5 20 mm/yr 
EOT


gmtset PAPER_MEDIA letter