#!/bin/csh

#  Draw basemap
#  ------------
pscoast -Jm3.81071743106835 -R-120.1372046/-118.4367374/33.927428/35.55732 \
-Ba1.0f10mwSnE \
-W3/0/0/0 -Na/1 -S153/255/255 \
-Df -Ir/1/114/187/243 \
-Lf-119.699323/34.2163634/34.2163634/50 \
-G230/225/200 -P -K >! lospa.ps

#  Calif hiways
#  ------------
psxy /attic/mapdata/ca_hiwys.main.asc \
-: -Jm -R -MS -W3/102/102/102 -O -K \
>> lospa.ps

#  Nevada faults
#  -------------
psxy /attic/mapdata/nevada.car \
-: -Jm -R -MS -W3/255/102/102 -O -K \
>> lospa.ps

#  Calif faults
#  ------------
psxy /attic/mapdata/Jennings_faults.car \
-: -Jm -R -MS -W3/255/102/102 -O -K \
>> lospa.ps

#  Velocity vectors
#  ----------------
psvelomeca << EOT -R \
-W1/255/0/63 -G70/100/190 \
-Se0.0333333333333333/.95/0 -B  \
-Jm -A0.01/0.12/0.03 -O -K \
>> lospa.ps
-119.315782	34.757126	0.00	0.00	0.00	0.00	0.0000	lospa apache  
-119.759323	35.036391	0.00	0.00	0.00	0.00	0.0000	lospa caliente
-118.968056	34.775000	0.00	0.00	0.00	0.00	0.0000	lospa fraz rm2
-118.968174	34.774972	0.00	0.00	0.00	0.00	0.0000	lospa frazier 
-119.150274	34.921263	0.00	0.00	0.00	0.00	0.0000	lospa kitchen 
-119.590147	34.690982	0.00	0.00	0.00	0.00	0.0000	lospa madulce2
-119.465828	34.539381	0.00	0.00	0.00	0.00	0.0000	lospa monte   
-119.465833	34.539444	0.00	0.00	0.00	0.00	0.0000	lospa monte un
-119.144453	34.812840	0.00	0.00	0.00	0.00	0.0000	lospa mt pinos
-119.241133	34.498311	0.00	0.00	0.00	0.00	0.0000	lospa nordhoff
-119.420278	34.371944	0.00	0.00	0.00	0.00	0.0000	lospa paa-1   
-119.431378	34.959753	0.00	0.00	0.00	0.00	0.0000	lospa pattiway
-119.404470	34.920194	0.00	0.00	0.00	0.00	0.0000	lospa pelato  
-119.144722	34.812778	0.00	0.00	0.00	0.00	0.0000	lospa pinosecc
-119.202778	34.410000	0.00	0.00	0.00	0.00	0.0000	lospa poison  
-118.903545	34.903038	0.00	0.00	0.00	0.00	0.0000	lospa police  
-119.280639	34.630847	0.00	0.00	0.00	0.00	0.0000	lospa reyes   
-119.712484	34.822922	0.00	0.00	0.00	0.00	0.0000	lospa salisbur
-119.008695	34.440349	0.00	0.00	0.00	0.00	0.0000	lospa santapau
-119.440633	34.625476	0.00	0.00	0.00	0.00	0.0000	lospa seco    
-119.440556	34.625556	0.00	0.00	0.00	0.00	0.0000	lospa seco dis
-119.440556	34.625278	0.00	0.00	0.00	0.00	0.0000	lospa seco rm3
-119.202650	34.409947	0.00	0.00	0.00	0.00	0.0000	lospa sulpher 
-119.202778	34.409722	0.00	0.00	0.00	0.00	0.0000	lospa sulphrm2
-118.980833	34.842222	0.00	0.00	0.00	0.00	0.0000	lospa tecuyrm1
-118.814619	34.803635	0.00	0.00	0.00	0.00	0.0000	lospa tejon 41
-119.553889	35.112778	0.00	0.00	0.00	0.00	0.0000	lospa temb az 
-119.553889	35.112778	0.00	0.00	0.00	0.00	0.0000	lospa temb rm1
-119.554038	35.112804	0.00	0.00	0.00	0.00	0.0000	lospa temblor 
-119.126701	34.606354	0.00	0.00	0.00	0.00	0.0000	lospa thorn   
-119.013333	35.010556	0.00	0.00	0.00	0.00	0.0000	lospa wh2 rm3 
-119.474262	34.754082	0.00	0.00	0.00	0.00	0.0000	lospa yam     
EOT

#  Station dots
#  ------------
psxy << EOT -: -R -W5/51/51/255 -G255/255/255 \
-Jm -Sc0.07 -O -K \
>> lospa.ps
34.757126	-119.315782
35.036391	-119.759323
34.775000	-118.968056
34.774972	-118.968174
34.921263	-119.150274
34.690982	-119.590147
34.539381	-119.465828
34.539444	-119.465833
34.812840	-119.144453
34.498311	-119.241133
34.371944	-119.420278
34.959753	-119.431378
34.920194	-119.404470
34.812778	-119.144722
34.410000	-119.202778
34.903038	-118.903545
34.630847	-119.280639
34.822922	-119.712484
34.440349	-119.008695
34.625476	-119.440633
34.625556	-119.440556
34.625278	-119.440556
34.409947	-119.202650
34.409722	-119.202778
34.842222	-118.980833
34.803635	-118.814619
35.112778	-119.553889
35.112778	-119.553889
35.112804	-119.554038
34.606354	-119.126701
35.010556	-119.013333
34.754082	-119.474262
EOT

#  Geodolite Lines
#  ---------------
psxy << EOT -: -R -W5/255/51/51 -MS \
-Jm -O \
>> lospa.ps
SEGMENT
34.757126   -119.315782   lospa apache  
34.630847   -119.280639   lospa reyes   
SEGMENT
34.757126   -119.315782   lospa apache  
34.625476   -119.440633   lospa seco    
SEGMENT
34.757126   -119.315782   lospa apache  
34.625556   -119.440556   lospa seco dis
SEGMENT
34.757126   -119.315782   lospa apache  
34.625278   -119.440556   lospa seco rm3
SEGMENT
34.757126   -119.315782   lospa apache  
34.754082   -119.474262   lospa yam     
SEGMENT
34.775000   -118.968056   lospa fraz rm2
34.812840   -119.144453   lospa mt pinos
SEGMENT
34.774972   -118.968174   lospa frazier 
34.812840   -119.144453   lospa mt pinos
SEGMENT
34.774972   -118.968174   lospa frazier 
34.842222   -118.980833   lospa tecuyrm1
SEGMENT
34.774972   -118.968174   lospa frazier 
34.606354   -119.126701   lospa thorn   
SEGMENT
34.690982   -119.590147   lospa madulce2
34.625476   -119.440633   lospa seco    
SEGMENT
34.690982   -119.590147   lospa madulce2
34.625556   -119.440556   lospa seco dis
SEGMENT
34.690982   -119.590147   lospa madulce2
34.625278   -119.440556   lospa seco rm3
SEGMENT
34.690982   -119.590147   lospa madulce2
34.754082   -119.474262   lospa yam     
SEGMENT
34.539381   -119.465828   lospa monte   
34.498311   -119.241133   lospa nordhoff
SEGMENT
34.539381   -119.465828   lospa monte   
34.630847   -119.280639   lospa reyes   
SEGMENT
34.539381   -119.465828   lospa monte   
34.625476   -119.440633   lospa seco    
SEGMENT
34.539381   -119.465828   lospa monte   
34.625278   -119.440556   lospa seco rm3
SEGMENT
34.539444   -119.465833   lospa monte un
34.498311   -119.241133   lospa nordhoff
SEGMENT
34.539444   -119.465833   lospa monte un
34.630847   -119.280639   lospa reyes   
SEGMENT
34.539444   -119.465833   lospa monte un
34.625556   -119.440556   lospa seco dis
SEGMENT
34.812840   -119.144453   lospa mt pinos
34.959753   -119.431378   lospa pattiway
SEGMENT
34.812840   -119.144453   lospa mt pinos
34.630847   -119.280639   lospa reyes   
SEGMENT
34.812840   -119.144453   lospa mt pinos
34.842222   -118.980833   lospa tecuyrm1
SEGMENT
34.812840   -119.144453   lospa mt pinos
34.606354   -119.126701   lospa thorn   
SEGMENT
34.812840   -119.144453   lospa mt pinos
35.010556   -119.013333   lospa wh2 rm3 
SEGMENT
34.812840   -119.144453   lospa mt pinos
34.754082   -119.474262   lospa yam     
SEGMENT
34.498311   -119.241133   lospa nordhoff
34.371944   -119.420278   lospa paa-1   
SEGMENT
34.498311   -119.241133   lospa nordhoff
34.410000   -119.202778   lospa poison  
SEGMENT
34.498311   -119.241133   lospa nordhoff
34.630847   -119.280639   lospa reyes   
SEGMENT
34.498311   -119.241133   lospa nordhoff
34.440349   -119.008695   lospa santapau
SEGMENT
34.498311   -119.241133   lospa nordhoff
34.409947   -119.202650   lospa sulpher 
SEGMENT
34.498311   -119.241133   lospa nordhoff
34.409722   -119.202778   lospa sulphrm2
SEGMENT
34.498311   -119.241133   lospa nordhoff
34.606354   -119.126701   lospa thorn   
SEGMENT
34.959753   -119.431378   lospa pattiway
34.920194   -119.404470   lospa pelato  
SEGMENT
34.959753   -119.431378   lospa pattiway
34.812778   -119.144722   lospa pinosecc
SEGMENT
34.959753   -119.431378   lospa pattiway
35.112778   -119.553889   lospa temb az 
SEGMENT
34.959753   -119.431378   lospa pattiway
35.112778   -119.553889   lospa temb rm1
SEGMENT
34.959753   -119.431378   lospa pattiway
35.112804   -119.554038   lospa temblor 
SEGMENT
34.920194   -119.404470   lospa pelato  
34.754082   -119.474262   lospa yam     
SEGMENT
34.812778   -119.144722   lospa pinosecc
34.630847   -119.280639   lospa reyes   
SEGMENT
34.812778   -119.144722   lospa pinosecc
34.606354   -119.126701   lospa thorn   
SEGMENT
34.812778   -119.144722   lospa pinosecc
34.754082   -119.474262   lospa yam     
SEGMENT
34.903038   -118.903545   lospa police  
34.842222   -118.980833   lospa tecuyrm1
SEGMENT
34.630847   -119.280639   lospa reyes   
34.625476   -119.440633   lospa seco    
SEGMENT
34.630847   -119.280639   lospa reyes   
34.625556   -119.440556   lospa seco dis
SEGMENT
34.630847   -119.280639   lospa reyes   
34.625278   -119.440556   lospa seco rm3
SEGMENT
34.630847   -119.280639   lospa reyes   
34.754082   -119.474262   lospa yam     
SEGMENT
34.822922   -119.712484   lospa salisbur
34.754082   -119.474262   lospa yam     
SEGMENT
34.625476   -119.440633   lospa seco    
34.754082   -119.474262   lospa yam     
SEGMENT
34.625556   -119.440556   lospa seco dis
34.754082   -119.474262   lospa yam     
SEGMENT
34.625278   -119.440556   lospa seco rm3
34.754082   -119.474262   lospa yam     
SEGMENT
34.842222   -118.980833   lospa tecuyrm1
34.803635   -118.814619   lospa tejon 41
SEGMENT
EOT