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

gspline_1.sh 923 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. #
  3. ps=gspline_1.ps
  4. # Figure 2 in Wessel, P. (2009), A general-purpose Green's function-based
  5. # interpolator, Computers & Geosciences, 35, 1247-1254.
  6. R=-2000/25000/0/11
  7. gmt psbasemap -R-2/25/0/11 -JX6i/3i -P -K -Bx5f1+l"Distance (km)" -By2f1+l"Mg (ppm)" -BWSne -X1.25i -Y2i --FONT_LABEL=18p > $ps
  8. gmt psxy -R$R -J -O -K @Table_4.2.txt -Sc0.075i -Gblack >> $ps
  9. gmt greenspline -R-2000/25000 -I100 @Table_4.2.txt -Sl -Z0 | gmt psxy -R$R -J -O -K -Wthin,. >> $ps
  10. gmt greenspline -R-2000/25000 -I100 @Table_4.2.txt -Sc -Z0 | gmt psxy -R$R -J -O -K -Wthin,- >> $ps
  11. gmt greenspline -R-2000/25000 -I100 @Table_4.2.txt -St0.25 -Z0 | gmt psxy -R$R -J -O -K -Wthin >> $ps
  12. gmt pslegend -R$R -J -O -F+p -Dx5.9i/2.9i+w2.05i+jTR --FONT_ANNOT_PRIMARY=12p << EOF >> $ps
  13. S 0.2i - 0.35i - 0.5p 0.5i Tension (@%6%t@%% = 0.25)
  14. S 0.2i - 0.35i - 0.5p,- 0.5i No tension
  15. S 0.2i - 0.35i - 0.5p,. 0.5i Linear interpolation
  16. EOF
Tip!

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

Comments

Loading...