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

quakes.sh 599 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
  1. #!/usr/bin/env bash
  2. #
  3. # Test gmt psxy for proper handling of -a [OGR]. We read an OGR file
  4. # with depth and magnitude among the aspatial values and we wish to
  5. # use that as input cols 2 and 3, then scale col 3 (mag, which is a
  6. # log10 measure) to get symbol sizes.
  7. ps=quakes.ps
  8. gmt makecpt -Crainbow -T0/300 > t.cpt
  9. gmt psxy @quakes.gmt -R15/25/15/25 -JM6i -B5 -Sci -Ct.cpt -P -K -Wthin -a2=depth,3=magnitude -i0:2,3+s0.05 -Yc -Xc > $ps
  10. gmt pstext @quakes.gmt -R -J -O -K -a2=name -F+jCT -Dj0/0.2i >> $ps
  11. gmt psscale -Ct.cpt -Dx3i/-0.5i+w6i/0.1i+h+jTC -O -Bxa50+l"Epicenter Depth" -By+lkm >> $ps
Tip!

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

Comments

Loading...