#!/usr/bin/env bash
# Higher RMS threshold due to hairline differences in many gridlines between different OS
# GRAPHICSMAGICK_RMS = 0.0045
ps=oblsuite_N.ps
gmt pscoast -R-2000/2000/-1000/1000+uk -Joa-30/60/-180/1:60000000 -Ba0fg -P -Gred -K -X1.25i -Y9i > $ps
gmt pscoast -R-2000/2000/-1000/1000+uk -Joa-30/60/-150/1:60000000 -Ba0fg -O -K -Gred -Y-1.7i >> $ps
gmt pscoast -R-2000/2000/-1000/1000+uk -Joa-30/60/-120/1:60000000 -Ba0fg -O -K -Gred -Y-1.7i >> $ps
gmt pscoast -R-2000/2000/-1000/1000+uk -Joa-30/60/-90/1:60000000  -Ba0fg -O -K -Gred -Y-1.7i >> $ps
gmt pscoast -R-2000/2000/-1000/1000+uk -Joa-30/60/-60/1:60000000  -Ba0fg -O -K -Gred -Y-1.7i >> $ps
gmt pscoast -R-2000/2000/-1000/1000+uk -Joa-30/60/-30/1:60000000  -Ba0fg -O -K -Gred -Y-1.7i >> $ps
gmt pscoast -R-2000/2000/-1000/1000+uk -Joa-30/60/0/1:60000000    -Ba0fg -O -K -Gred -X3.45i -Y8.5i >> $ps
gmt pscoast -R-2000/2000/-1000/1000+uk -Joa-30/60/30/1:60000000   -Ba0fg -O -K -Gred -Y-1.7i >> $ps
gmt pscoast -R-2000/2000/-1000/1000+uk -Joa-30/60/60/1:60000000   -Ba0fg -O -K -Gred -Y-1.7i >> $ps
gmt pscoast -R-2000/2000/-1000/1000+uk -Joa-30/60/90/1:60000000   -Ba0fg -O -K -Gred -Y-1.7i >> $ps
gmt pscoast -R-2000/2000/-1000/1000+uk -Joa-30/60/120/1:60000000  -Ba0fg -O -K -Gred -Y-1.7i >> $ps
gmt pscoast -R-2000/2000/-1000/1000+uk -Joa-30/60/150/1:60000000  -Ba0fg -O -K -Gred -Y-1.7i >> $ps
gmt pstext -R0/8/0/10 -Jx1i -F+f14p+jRM -O -K -X-3.45i -N << EOF >> $ps
-0.1 0.7 az: -30
-0.1 2.4 az: -60
-0.1 4.1 az: -90
-0.1 5.8 az: -120
-0.1 7.5 az: -140
-0.1 9.2 az: -180
EOF
gmt pstext -R0/8/0/10 -Jx1i -F+f14p+jLM -O -N << EOF >> $ps
6.2 0.7 az: 150
6.2 2.4 az: 120
6.2 4.1 az: 90
6.2 5.8 az: 60
6.2 7.5 az: 30
6.2 9.2 az: 0
EOF
