Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

x2sys_07.sh 806 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  1. #!/usr/bin/env bash
  2. #
  3. # Testing crossings near a pole.
  4. ps=x2sys_07.ps
  5. # Create data lines: A goes up meridian 135 to N pole and down on 315
  6. echo "# A1:" > A1.txt
  7. echo "# A2:" > A2.txt
  8. echo "# B:" > B.txt
  9. gmt math -T-18/18/1 90 T ABS NEG ADD -C0 SIGN 90 MUL 225 ADD = >> A1.txt
  10. gmt math -T-18/18/1 90 T ABS NEG ADD -C0 SIGN 90 MUL 135 ADD = >> A2.txt
  11. # B spirals towards the N pole but not hit it
  12. gmt math -T0/1800/2 T 1800 DIV 14.5 MUL 75 ADD -C0 360 MOD = >> B.txt
  13. export X2SYS_HOME=`pwd`
  14. gmt x2sys_init TEST -Dgeo -Etxt -F -G -Rg
  15. gmt x2sys_cross -TTEST A1.txt A2.txt B.txt -Qe > AB.txt
  16. gmt pscoast -R0/360/70/90 -JA0/90/7i -P -Glightgray -Baf -K -Dh -Xc > $ps
  17. gmt psxy -R -J A[12].txt -W1p,blue -O -K >> $ps
  18. gmt psxy -R -J B.txt -W1p,green -O -K >> $ps
  19. gmt psxy AB.txt -R -J -O -Sc5p -Wthin,red >> $ps
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...