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

tissot_TM.sh 728 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
  1. #!/usr/bin/env bash
  2. #
  3. # Demonstrate failure to clip ellipses against periodic TM boundary in y.
  4. # See https://forum.generic-mapping-tools.org/t/how-to-avoid-the-funky-look-of-jt-and-se/1224
  5. ps=tissot_TM.ps
  6. gmt makecpt -T0,1,2,3 -Cred,green,blue > t.cpt
  7. cat << EOF > t.txt
  8. 30 -60 0 4000k Red ellipse crosses the periodic boundary near bottom
  9. 100 0 1 4000k Green ellipse safely along Equator inside the map
  10. 230 -40 2 7000k Blue ellipse crosses the periodic boundary near the top
  11. EOF
  12. gmt psxy -R0/360/-80/80 -JT-15/15/16c -Ba30fg30 -SE- -Ct.cpt -Wthin -P -K t.txt --MAP_ANNOT_OBLIQUE=lon_horizontal --MAP_ANNOT_MIN_SPACING=24p > $ps
  13. gmt psxy -R -J -O -K -Gwhite -Wfaint -Sc18p t.txt >> $ps
  14. gmt pstext -R -J -O t.txt -it0 >> $ps
Tip!

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

Comments

Loading...