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

admittance.sh 2.2 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
  1. #!/usr/bin/env bash
  2. #
  3. # Compute admittance for synthetic model and data.
  4. ps=admittance.ps
  5. gmt set GMT_FFT kiss
  6. order=4
  7. # 1. Create a bathymetry data set with 3 circular Gaussian seamounts
  8. gmt grdseamount -R0/512/0/512 -I4 -r -Gz.nc -Z-5000 << EOF
  9. 310 290 40 3000
  10. 290 205 50 4000
  11. 210 280 60 2500
  12. EOF
  13. # 2. LL Map: Bathymetry load + flexural contours
  14. gmt makecpt -Crainbow -T-5000/-1000 > z.cpt
  15. gmt grdimage z.nc -Cz.cpt -JX3i -P -Ba -BWSne -K -Y0.75i > $ps
  16. gmt makecpt -Crainbow -T-50/250 > g.cpt
  17. # Compute flexure and overlay on bathymetry
  18. gmt gravfft z.nc+uk -T12000/2800/3300/1000 -Q -Z12000 -N1024/1024+w+a -Gmoho_flex.nc
  19. gmt grdcontour moho_flex.nc -J -O -K -C100 -A500 >> $ps
  20. # 3. LR Map: Gravity from flexure of Moho only
  21. gmt gravfft moho_flex.nc+uk -Ff -E$order -D500 -N+a -Gfaa_flex.nc
  22. gmt grdimage faa_flex.nc -Cg.cpt -J -O -K -Ba -BWSne -X3.5i >> $ps
  23. # 4. ML Map: Gravity from seamounts only
  24. gmt gravfft z.nc+uk -Ff -E$order -D1800 -N+a -Gfaa_z.nc
  25. gmt grdimage faa_z.nc -Cg.cpt -J -O -K -Ba -BWsne -X-3.5i -Y3.25i >> $ps
  26. # 5. MR Map: Total gravity model + 0.5 mGal noise
  27. #gmt grdmath -Rfaa_flex.nc 0 0.5 NRAND = faa_noise.nc
  28. gmt grdmath faa_flex.nc faa_z.nc ADD @faa_noise.nc ADD = faa_total.nc
  29. gmt grdimage faa_total.nc -Cg.cpt -J -O -K -Ba -BWsne -X3.5i >> $ps
  30. # Compute admittance, both data and theoretical, and coherence between topo and gravity
  31. gmt gravfft z.nc+uk faa_total.nc+uk -N+d -Iwkt -Ff -Z12000 -T12000/2800/3300/1000 > adm_t.txt
  32. gmt grdfft z.nc+uk faa_total.nc+uk -N+d -Er+wk -h+c > adm.txt
  33. # coherence in red, admittance in blue, theoretical admittance in thick lightgray
  34. gmt psxy adm.txt -i0,15,16 -R8/512/0/1 -JX-6il/2.75i -O -K -Sc0.05i \
  35. -Gred -Ey+w0.2c+p0.5p,red -Bxg3 -X-3.25i -Y3.5i >> $ps
  36. gmt psxy adm.txt -i0,15 -R -J -O -K -W0.5p,red >> $ps
  37. gmt psxy adm.txt -R8/512/0/70 -J -O-Sc0.05i -Ey+w0.2c+p0.5p,blue -Gblue -K -i0,11+s1000,12+s1000 >> $ps
  38. gmt psxy adm.txt -R -J -O -K -W0.5p,blue -i0,11+s1000 >> $ps
  39. gmt psxy adm_t.txt -R -J -O -K -W0.5p,green -i0,3+s1000 >> $ps
  40. gmt psbasemap -R -J -O -K -Bxa2 -Byaf+l"Admittance (mGal/km)" -BE --FONT_LABEL=16p,Helvetica,blue >> $ps
  41. gmt psbasemap -R8/512/0/1 -J -O -Bxa2+u" km" -Byaf+l"Coherence" -BWSn --FONT_LABEL=16p,Helvetica,red >> $ps
Tip!

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

Comments

Loading...