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

GMT_mapscale.sh 372 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
  1. #!/usr/bin/env bash
  2. gmt begin GMT_mapscale
  3. gmt basemap -R0/40/50/56 -JM5i -B -LjML+c53+w1000k+f+l"Scale at 53@.N" -F+glightcyan+c0+p
  4. gmt basemap -LjBR+c53+w1000k+l+f -F+p1p+i+gwhite+c0.1i
  5. h=$(gmt mapproject -Wh -Di)
  6. h=$(gmt math -Q $h 2 DIV =)
  7. lat=$(echo 0 $h | gmt mapproject -I -Di -o1)
  8. gmt plot -Wfaint -A -N << EOF
  9. >
  10. 0 $lat
  11. 40 $lat
  12. >
  13. 0 50
  14. 40 50
  15. EOF
  16. gmt end show
Tip!

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

Comments

Loading...