#!/bin/csh

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

psbasemap -JX6/1.5 \
-R1998.5/1999/-10/10 \
-G236/232/211 -Y5.25 -P -K \
-Bf0.25a1/f5a10:"CURT North (mm)":WeSn  \
> curt.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> curt.ps
1998.6372	-6.0	6.9
1998.6454	6.5	6.4
1998.6481	-3.9	7.0
1998.6536	4.5	6.5
EOT


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


#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> curt.ps
1998.6372	-6.0	6.9
1998.6454	6.5	6.4
1998.6481	-3.9	7.0
1998.6536	4.5	6.5
EOT


#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
-K >> curt.ps
SBreak	Segment0	Comp0
 1998.6372	   0.0000	Segment0	Comp0
 1998.6536	   0.0000	Segment0	Comp0
EOT


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

psbasemap -JX6/1.5 \
-R1998.5/1999/-20/20 \
-G236/232/211 -Y-1.75 -P -K \
-Bf0.25a1/f5a10:"CURT East (mm)":WeSn  \
-O >> curt.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> curt.ps
1998.6372	5.0	7.0
1998.6454	-11.7	6.8
1998.6481	16.2	7.1
1998.6536	-11.1	7.0
EOT


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


#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> curt.ps
1998.6372	5.0	7.0
1998.6454	-11.7	6.8
1998.6481	16.2	7.1
1998.6536	-11.1	7.0
EOT


#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
-K >> curt.ps
SBreak	Segment0	Comp1
 1998.6372	   0.0000	Segment0	Comp1
 1998.6536	   0.0000	Segment0	Comp1
EOT


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

psbasemap -JX6/1.5 \
-R1998.5/1999/-40/40 \
-G236/232/211 -Y-1.75 -P -K \
-Bf0.25a1/f10a20:"CURT Up (mm)":WeSn  \
-O >> curt.ps

#  Draw error bars
#  ---------------
psxy << EOT \
-JX -R -G255/0/0 -Ey0.05/0.1/159/159/159 -O \
-K >> curt.ps
1998.6372	23.2	22.2
1998.6454	-39.8	21.1
1998.6481	30.3	22.6
1998.6536	-15.5	20.1
EOT


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


#  Draw points
#  -----------
psxy << EOT \
-JX -R -Sc0.03 -G255/0/0 -O \
-K >> curt.ps
1998.6372	23.2	22.2
1998.6454	-39.8	21.1
1998.6481	30.3	22.6
1998.6536	-15.5	20.1
EOT


#  Draw best fit line
#  ------------------
psxy << EOT \
-JX -R -MS -W3/102/102/255 -O \
>> curt.ps
SBreak	Segment0	Comp2
 1998.6372	   0.0000	Segment0	Comp2
 1998.6536	   0.0000	Segment0	Comp2
EOT