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

repeat1.sh 666 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
  1. #!/usr/bin/env bash
  2. # Test various repeating/clip mode for periodic and straight boundary
  3. function map { # $1 = -N option, $2 is text, $3 is any -Y option
  4. gmt psxy -R -J t.txt -Ct.cpt -Sc -Bafg -BWsne -O -K --MAP_FRAME_TYPE=plain $1 $3
  5. gmt psxy -R -J -O -K t.txt -Gblack -Sc0.1c
  6. echo 180 0 $2 | gmt pstext -R -J -O -K -F+f16p -Gwhite >> $ps
  7. }
  8. ps=repeat1.ps
  9. cat << EOF > t.txt
  10. 8 45 0.5 0.5i
  11. 356 -45 1.5 0.3i
  12. 5 0 2.5 0.1i
  13. EOF
  14. gmt makecpt -Cred,blue,green -T0/3/1 -N > t.cpt
  15. gmt psxy -R0/360/-60/60 -JM5i -T -P -K -Xc > $ps
  16. map "" Default >> $ps
  17. map -N -N -Y2.3i >> $ps
  18. map -Nr -Nr -Y2.3i >> $ps
  19. map -Nc -Nc -Y2.3i >> $ps
  20. gmt psxy -R -J -O -T >> $ps
Tip!

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

Comments

Loading...