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

taper.sh 864 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
  1. #!/usr/bin/env bash
  2. ps=taper.ps
  3. gmt grdmath -R0/10/0/10 -I0.1 2 0 TAPER = x.nc
  4. gmt grdmath -R0/10/0/10 -I0.1 0 2 TAPER = y.nc
  5. gmt makecpt -Chot -T0/1/0.1 > t.cpt
  6. gmt grdimage x.nc -JX3i -Ct.cpt -B1 -BWSne -P -K -Y7i > $ps
  7. gmt grdcontour x.nc -J -O -K -C0.1 >> $ps
  8. gmt grd2xyz x.nc | awk '{if ($2 == 5) print $0}' > x.txt
  9. gmt psxy -R -J -O -K x.txt -Sc0.03i -Gred >> $ps
  10. gmt grdimage y.nc -J -Ct.cpt -B1 -BWSne -O -K -X3.5i >> $ps
  11. gmt grdcontour y.nc -J -O -K -C0.1 >> $ps
  12. gmt grd2xyz y.nc | awk '{if ($1 == 5) print $0}' > y.txt
  13. gmt psxy -R -J -O -K y.txt -Sc0.03i -Gblue >> $ps
  14. gmt psxy -R0/10/-0.1/1.1 -JX6.5i/2.25i x.txt -i0,2 -Bxafg1 -Byafg0.5 -BWSne -O -K -X-3.5i -Y-3i >> $ps
  15. gmt psxy -R -J x.txt -i0,2 -Sc0.03i -Gred -O -K >> $ps
  16. gmt psxy -R -J y.txt -i1,2 -Bxafg1 -Byafg0.5 -BWSne -O -K -Y-2.75i >> $ps
  17. gmt psxy -R -J y.txt -i1,2 -Sc0.03i -Gblue -O >> $ps
Tip!

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

Comments

Loading...