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

GitHub comments could not be loaded

periodic.sh 812 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. # GMT_KNOWN_FAILURE
  3. # Demonstrate issue #536 with labeling of periodic contours
  4. # Turns out non-issue due to different contour lengths and -Gd
  5. # Using -Gl shows annotation machinery works fine.
  6. ps=periodic.ps
  7. gmt grdmath -Rg -I1 32 22 SBAZ = t.nc
  8. # Plot as non-periodic. This plots labels. The pile of blue contours around
  9. # 180 occurs because the grid goes rapidly from -180 to +180 here and -Z+p is not used
  10. # This is expected and correct.
  11. gmt grdcontour t.nc -JG0/0/5.0i -A20+u@. -Bgaf -K -Wa1,blue -Gl-90/0/0/0,0/0/90/0 -P -Xc -Y0.3i > $ps
  12. # Plot as periodic with -Zp. Transition from -180 to +180 goes well for contouring
  13. # but we have no contour labels anymore. This is the main issue here.
  14. gmt grdcontour t.nc -J -A20+u@. -Wa1,blue -Bgaf -Gl-90/0/0/0,0/0/90/0 -Z+p -O -Y5.2i >> $ps
Tip!

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

Comments

Loading...