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

plate.sh 946 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
  1. #!/usr/bin/env bash
  2. # Plot r,az vectors on the globe. The issue here is that some tools
  3. # such as psvelo, scales the user lengths to inches and thus vectors
  4. # of the same user length become the same scaled lengthon the plot.
  5. # With geo-vectors we instead scale user lengths to km and then these
  6. # are projected and can appear longer or shorter depending on projection.
  7. # We need a mode to turn off geo-vectors when we want the psvelo effect.
  8. # Update: This has now been implemented and test passes
  9. ps=plate.ps
  10. echo "80 60 10 10" > E.txt
  11. gmt grdpmodeler -Rg -I10 -r -EE.txt -Gplate_%s.nc -Sar -T10
  12. gmt psbasemap -A -R-30/80/-5/70 -JM3.5i > tmp
  13. gmt grdvector plate_vel.nc plate_az.nc -A -R-30/80/-5/70 -JM3.5i -P -Baf -BWSnE -Q0.1i+e+n50 -W0.25p -Gblack -S200i -K -Xc -Y0.75i > $ps
  14. gmt grdvector plate_vel.nc plate_az.nc -A -JG30/0/6i -O -K -Baf -Q0.1i+e+n50 -W0.25p -Gblack -S200i -X-1.25i -Y3.6i >> $ps
  15. gmt psxy -R -J -O -W0.25p,blue tmp >> $ps
Tip!

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

Comments

Loading...