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

icelandbox.sh 1.5 KB

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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
  1. #!/usr/bin/env bash
  2. #
  3. # Script to plot 3D model of Iceland, provided by Peter Schmidt
  4. #
  5. ps=icelandbox.ps
  6. ### Plot options
  7. popt=-p130/30
  8. ### Colormap
  9. cpt=resid.cpt
  10. cat << EOF > $cpt
  11. # cpt file created by: makecpt -T-9/9/2 but then manually doctored
  12. #COLOR_MODEL = +HSV
  13. #
  14. -11 0 0 0 -9 0 0 0 L
  15. -9 255 1 0.6 -7 255 1 0.6 L
  16. -7 240 1 1 -5 240 1 1 L
  17. -5 216.667 1 1 -3 216.667 1 1 L
  18. -3 183.333 1 1 -1 183.333 1 1 L
  19. -1 0 0 0.85 1 0 0 0.85 L
  20. 1 116.667 1 1 3 116.667 1 1 L
  21. 3 83.3333 1 1 5 83.3333 1 1 L
  22. 5 50 1 1 7 50 1 1 L
  23. 7 19.6667 1 1 9 19.6667 1 1 L
  24. 9 1.0 1 1 11 1.0 1 1 B
  25. B 0 0 0
  26. F 0 0 1
  27. N 0 0 0.501961
  28. EOF
  29. ### Pivotal points
  30. a="-24.4130658 63.0225642"
  31. b="-17.49029 63.1705533"
  32. c="-17.4678686 64.5788931"
  33. d="-13.5105157 64.5134051"
  34. e="-13.121354 66.7035842"
  35. f="-25.3398981 66.6019215"
  36. ### Set up walls between 0 and 200 km depth
  37. gmt psxyz $popt -R-24.4/63.0/-13.1/66.7/0/200r -JZ-5c -JT-17.927/64.463/15c -Bxa2f1 -Bya1f0.5 -Bz50 -BESZ -Wthinnest -K << EOF > $ps
  38. > -G220
  39. $a 200
  40. $a 0
  41. $b 0
  42. $b 200
  43. >
  44. $c 200
  45. $c 0
  46. $d 0
  47. $d 200
  48. > -G180
  49. $b 200
  50. $b 0
  51. $c 0
  52. $c 200
  53. >
  54. $d 200
  55. $d 0
  56. $e 0
  57. $e 200
  58. EOF
  59. gmt psxyz -p -R -J -JZ -Wthinnest -O -K << EOF >> $ps
  60. $a 100
  61. $b 100
  62. $c 100
  63. $d 100
  64. $e 100
  65. EOF
  66. ### Set clipping perimeter
  67. gmt psclip $popt/0 -R -JZ -J -O -K << EOF >> $ps
  68. $a
  69. $b
  70. $c
  71. $d
  72. $e
  73. $f
  74. EOF
  75. ### Start plotting gmt surface
  76. gmt grdimage @D3-25TV24-resid.nc -E100 -nl -p -R -J -JZ -C$cpt -O -K >> $ps
  77. gmt grdcontour --PS_COMMENTS=1 @D3-25TV24-resid.nc -p -R -J -JZ -Wthinner -An -C$cpt -W -K -O >> $ps
  78. gmt pscoast -p -R -J -JZ -Dh -A100 -Wthinnest -S135/190/240 -O -K >> $ps
  79. gmt psclip -C -O >> $ps
Tip!

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

Comments

Loading...