#!/bin/csh

#  Draw basemap
#  ------------
gmtset ANOT_FONT Helvetica LABEL_FONT Helvetica

psbasemap -JX6/1.5 \
-R1993.5/2008.5/-230/100 \
-G236/232/211 -Y5.25 -P -K \
-Bf0.25a1/f80a160:"TESS North (mm)":WeSn  \
> tess.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> tess.ps
1993.8815	-220.2	3.4
1996.3483	-174.3	5.6
1996.3510	-170.7	5.5
2001.3696	-62.7	5.1
2001.3723	-70.2	4.5
2003.2287	-20.2	5.0
2003.2315	-25.3	2.8
2003.2342	-23.6	3.4
2004.1487	-4.2	4.8
2004.1514	-3.3	2.8
2004.1542	-3.5	3.4
2005.3396	25.3	2.7
2005.3423	24.7	2.8
2005.3450	26.0	5.7
2008.3595	90.4	6.1
2008.3622	92.0	2.8
2008.3650	90.7	2.9
2008.3677	95.9	3.0
EOT


#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G0/0/255 -O \
-K >> tess.ps
EOT


#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> tess.ps
1993.8815	-220.2	3.4
1996.3483	-174.3	5.6
1996.3510	-170.7	5.5
2001.3696	-62.7	5.1
2001.3723	-70.2	4.5
2003.2287	-20.2	5.0
2003.2315	-25.3	2.8
2003.2342	-23.6	3.4
2004.1487	-4.2	4.8
2004.1514	-3.3	2.8
2004.1542	-3.5	3.4
2005.3396	25.3	2.7
2005.3423	24.7	2.8
2005.3450	26.0	5.7
2008.3595	90.4	6.1
2008.3622	92.0	2.8
2008.3650	90.7	2.9
2008.3677	95.9	3.0
EOT


#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
-K >> tess.ps
SBreak	Segment0	Comp0
 1993.8815	-226.1584	Segment0	Comp0
 2008.3677	  90.6469	Segment0	Comp0
EOT


#  Draw basemap
#  ------------
gmtset ANOT_FONT Helvetica LABEL_FONT Helvetica

psbasemap -JX6/1.5 \
-R1993.5/2008.5/-160/420 \
-G236/232/211 -Y-1.75 -P -K \
-Bf0.25a1/f80a160:"TESS East (mm)":WeSn  \
-O >> tess.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> tess.ps
1993.8815	415.6	4.7
1996.3483	316.2	7.1
1996.3510	314.4	6.9
2001.3696	127.4	7.2
2001.3723	101.8	5.3
2003.2287	50.8	6.0
2003.2315	42.5	3.3
2003.2342	43.5	3.8
2004.1487	23.7	6.0
2004.1514	21.0	3.3
2004.1542	16.3	3.9
2005.3396	-28.8	3.2
2005.3423	-31.3	3.2
2005.3450	-27.4	6.0
2008.3595	-147.4	6.6
2008.3622	-149.9	3.2
2008.3650	-154.5	3.4
2008.3677	-146.1	3.5
EOT


#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G0/0/255 -O \
-K >> tess.ps
EOT


#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> tess.ps
1993.8815	415.6	4.7
1996.3483	316.2	7.1
1996.3510	314.4	6.9
2001.3696	127.4	7.2
2001.3723	101.8	5.3
2003.2287	50.8	6.0
2003.2315	42.5	3.3
2003.2342	43.5	3.8
2004.1487	23.7	6.0
2004.1514	21.0	3.3
2004.1542	16.3	3.9
2005.3396	-28.8	3.2
2005.3423	-31.3	3.2
2005.3450	-27.4	6.0
2008.3595	-147.4	6.6
2008.3622	-149.9	3.2
2008.3650	-154.5	3.4
2008.3677	-146.1	3.5
EOT


#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
-K >> tess.ps
SBreak	Segment0	Comp1
 1993.8815	 410.9259	Segment0	Comp1
 2008.3677	-149.1676	Segment0	Comp1
EOT


#  Draw basemap
#  ------------
gmtset ANOT_FONT Helvetica LABEL_FONT Helvetica

psbasemap -JX6/1.5 \
-R1993.5/2008.5/-60/30 \
-G236/232/211 -Y-1.75 -P -K \
-Bf0.25a1/f20a40:"TESS Up (mm)":WeSn  \
-O >> tess.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> tess.ps
1993.8815	-53.4	20.8
1996.3483	15.6	20.7
1996.3510	29.4	20.2
2001.3696	22.9	20.3
2001.3723	-24.8	15.9
2003.2287	28.1	19.3
2003.2315	-1.6	10.6
2003.2342	-1.8	12.6
2004.1487	6.6	19.0
2004.1514	12.5	10.6
2004.1542	-16.6	12.7
2005.3396	5.3	10.2
2005.3423	8.1	10.4
2005.3450	-15.7	20.4
2008.3595	8.0	20.9
2008.3622	0.3	10.5
2008.3650	-10.2	10.9
2008.3677	-5.5	11.4
EOT


#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G0/0/255 -O \
-K >> tess.ps
EOT


#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> tess.ps
1993.8815	-53.4	20.8
1996.3483	15.6	20.7
1996.3510	29.4	20.2
2001.3696	22.9	20.3
2001.3723	-24.8	15.9
2003.2287	28.1	19.3
2003.2315	-1.6	10.6
2003.2342	-1.8	12.6
2004.1487	6.6	19.0
2004.1514	12.5	10.6
2004.1542	-16.6	12.7
2005.3396	5.3	10.2
2005.3423	8.1	10.4
2005.3450	-15.7	20.4
2008.3595	8.0	20.9
2008.3622	0.3	10.5
2008.3650	-10.2	10.9
2008.3677	-5.5	11.4
EOT


#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
>> tess.ps
SBreak	Segment0	Comp2
 1993.8815	  -1.4845	Segment0	Comp2
 2008.3677	   0.5186	Segment0	Comp2
EOT