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

ex16.sh 957 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
21
22
23
24
  1. #!/usr/bin/env bash
  2. # GMT EXAMPLE 16
  3. #
  4. # Purpose: Illustrates interpolation methods using same data as Example 12.
  5. # GMT modules: gmtset, grdview, grdfilter, contour, colorbar, surface, triangulate
  6. # Unix progs: rm
  7. #
  8. gmt begin ex16
  9. gmt subplot begin 2x2 -M0.1c -Fs8c/0 -R-0.2/6.6/-0.2/6.6 -Jx1c -Scb -Srl+t -Bwesn -T"Gridding of Data"
  10. gmt surface @Table_5_11.txt -I0.2 -Graws0.nc
  11. gmt contour @Table_5_11.txt -C@ex_16.cpt -I -B+t"contour (triangulate)" -c0,0
  12. #
  13. gmt grdview raws0.nc -C@ex_16.cpt -Qs -B+t"surface (tension = 0)" -c0,1
  14. #
  15. gmt surface @Table_5_11.txt -Graws5.nc -T0.5
  16. gmt grdview raws5.nc -C@ex_16.cpt -Qs -B+t"surface (tension = 0.5)" -c1,0
  17. #
  18. gmt triangulate @Table_5_11.txt -Grawt.nc
  19. gmt grdfilter rawt.nc -Gfiltered.nc -D0 -Fc1
  20. gmt grdview filtered.nc -C@ex_16.cpt -Qs -B+t"triangulate @~\256@~ grdfilter" -c1,1
  21. gmt subplot end
  22. gmt colorbar -DJBC -C@ex_16.cpt
  23. gmt end show
  24. rm -f raws0.nc raws5.nc rawt.nc filtered.nc
Tip!

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

Comments

Loading...