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

nearpole.sh 1.6 KB

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
22
23
24
25
26
27
28
29
  1. #!/usr/bin/env bash
  2. # GMT_KNOWN_FAILURE
  3. # This is a follow up on topic http://gmt.soest.hawaii.edu/boards/1/topics/7166?r=7203#message-7203
  4. # submitted by Sabin. The problem polygon (Amundsen Terrane) is not polar but is very very close to the
  5. # S pole and elongated almost 180 degrees way from the map center. Hence it ends up very
  6. # close to the periodib boundary in the -JW projection. The fill clearly fails with
  7. # a line across E-W while the outline is barely visible in the bottom and third panel.
  8. #
  9. # Update 8/11/2020 PW: The wrapping across E-W occurs for several ranges of longitude, but not
  10. # the 115 given in this test. Changing to 114 to highlight the problem. I made a movie as well
  11. # from this main.sh:
  12. # gmt begin
  13. # gmt plot -R-180/180/-90/-60 -JW${MOVIE_COL0}/6i -Wfaint,red amundsen.txt -B+gblue -X0.1i -Y0.1i
  14. # gmt plot -Gred amundsen.txt -B+gblue -Y1i
  15. # gmt end
  16. #
  17. # and ran
  18. # gmt movie main.sh -T0/360/0.1 -C6.2ix2ix300 -Fmp4 -M50 -Namund -Lc0 -V
  19. # Which showed problems for central longs 112.9-114.7. 123.4-137? where things are wrapping.
  20. ps=nearpole.ps
  21. gmt psxy -R-180/180/-90/-60 -JW114/7i -Wfaint,red amundsen.txt -B+gyellow -P -K -Xc -Y0.5i > $ps
  22. gmt psxy -R -J -Gred amundsen.txt -B+gyellow -O -K -Y1i >> $ps
  23. gmt psxy -R -J -Wfaint,red amundsen.txt -Bxafg -Byafg10 -O -K -Y1i --MAP_FRAME_PEN=faint >> $ps
  24. gmt psxy -R -J -Gred amundsen.txt -Bafg -O -K -Y1.25i --MAP_FRAME_PEN=faint >> $ps
  25. gmt psxy -R-180/180/-90/-80 -JA114/-90/5i -Bafg -O -K -Gred -Wfaint amundsen.txt -Y1.25i -X1i >> $ps
  26. gmt psxy -R -J -O -Wfaint,blue -A << EOF >> $ps
  27. -65 -90
  28. -65 -80
  29. EOF
Tip!

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

Comments

Loading...