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

rendering.sh 629 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
29
30
31
32
33
34
35
36
37
38
39
40
41
  1. #!/usr/bin/env bash
  2. #
  3. ps=rendering.ps
  4. gmt xyz2grd -R0/360/0/90 -r -I60/30 -Gt.nc <<%
  5. #30 45 -1
  6. 90 15 -1
  7. 30 75 0
  8. 90 45 0
  9. 150 15 0
  10. 90 75 1
  11. 150 45 1
  12. 210 15 1
  13. 150 75 0
  14. 210 45 0
  15. 270 15 0
  16. 210 75 -1
  17. 270 45 -1
  18. 330 15 -1
  19. 270 75 0
  20. 330 45 0
  21. #
  22. 30 15 0
  23. 330 75 -1
  24. %
  25. render () {
  26. gmt grdimage -R -JW0/6i -Bx60 -By30 t.nc -Ct.cpt -E100 -O -K $*
  27. gmt pstext -R -J -F+f16p,Helvetica-Bold+jBL -O -K -N <<< "180 35 $1"
  28. }
  29. gmt makecpt -Cpolar -T-1/1 -D > t.cpt
  30. gmt psscale -Dx3i/-0.4i+w6i/0.4i+h+jTC -Ct.cpt -Ba0.5 -P -K -Y2i > $ps
  31. render -nn >> $ps
  32. render -nl -Y2i >> $ps
  33. render -nb -Y2i >> $ps
  34. render -nc -Y2i >> $ps
  35. gmt psxy -R -J -T -O >> $ps
Tip!

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

Comments

Loading...