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

aspect.sh 777 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
25
26
27
28
  1. #!/usr/bin/env bash
  2. # Test the generation of aspect maps
  3. ps=aspect.ps
  4. pts=pts.dat
  5. echo 0 0 0 > $pts
  6. echo 0 10 0 >> $pts
  7. echo 10 10 0 >> $pts
  8. echo 10 0 0 >> $pts
  9. echo 2.5 2.5 0 >> $pts
  10. echo 2.5 7.5 0 >> $pts
  11. echo 7.5 7.5 0 >> $pts
  12. echo 7.5 2.5 0 >> $pts
  13. echo 5 5 1 >> $pts
  14. gmt triangulate $pts -R0/10/0/10 -I0.2 -Gpiramide.nc > /dev/null
  15. gmt grdgradient piramide.nc -D -Gaspect.nc
  16. gmt makecpt -Cred,green,blue,yellow -T-45/315/90 -N > pal.cpt
  17. gmt grdimage aspect.nc -JX10c -Cpal.cpt -P -K -B2 -BWSne -Xc > $ps
  18. gmt psscale -Dx11c/5c+w6c/0.6c+jML+e+n -Cpal.cpt -B90+u@. -O -K >> $ps
  19. gmt makecpt -Cjet -T0/1/0.1 > t.cpt
  20. gmt grdimage piramide.nc -J -O -K -Ct.cpt -B2 -BWSne -Y13c >> $ps
  21. gmt psscale -Dx11c/5c+w8c/0.6c+jML -Ct.cpt -O >> $ps
Tip!

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

Comments

Loading...