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

smooth_deriv.sh 653 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
  1. #!/usr/bin/env bash
  2. #
  3. # Testing the smoothing spline option and derivatives
  4. gmt begin smooth_deriv ps
  5. gmt subplot begin 3x1 -Fs6.5i/2.5i -A+gwhite+p0.5p
  6. gmt subplot set 0 -A"Data"
  7. gmt plot @topo_crossection.txt -Sc0.1c -Gred -N
  8. gmt sample1d @topo_crossection.txt -T300/500/0.1 -Fs0.0001 > new.txt
  9. gmt plot new.txt -Wfaint,red
  10. gmt subplot set 1 -A"Slope"
  11. gmt sample1d @topo_crossection.txt -T300/500/0.1 -Fs0.0001+d1 > new.txt
  12. gmt plot new.txt -W0.25p
  13. gmt subplot set 2 -A"Curvature"
  14. gmt sample1d @topo_crossection.txt -T300/500/0.1 -Fs0.0001+d2 > new.txt
  15. gmt plot new.txt -W0.25p
  16. gmt subplot end
  17. gmt end show
  18. rm -f new.txt
Tip!

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

Comments

Loading...