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

grdokb_grav.sh 808 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
  1. #!/usr/bin/env bash
  2. #
  3. # Compute the gravity anomaly of the water layer above the Gorringe bank
  4. ps=grdokb_grav.ps
  5. lim=-12.5/-10/35.5/37.5
  6. # Compute the grav anomaly using a contrast density of 1700 kg/m^3.
  7. # To get the Bouger anomaly this would be added to the FAA
  8. gmt grdgravmag3d @earth_relief_10m -R$lim -fg -C1700 -Ggrdokb_grav.nc -I0.05 -Q0.5
  9. # Generate a line to compute a profile
  10. gmt project -C-11.7/37.2 -E-11/35.8 -G1 -Q > tt.xyp
  11. # Compute the anomaly along the tt line
  12. gmt grdgravmag3d @earth_relief_10m -R$lim -fg -C1700 -Ftt.xyp -Q0.5 > tt.grv
  13. gmt grdcontour grdokb_grav.nc -C10 -A20 -JM14c -Ba -BWSen -P -K > $ps
  14. # Plot the track
  15. gmt psxy tt.xyp -R -W0.5p -JM -O -K >> $ps
  16. # And computed profile
  17. paste tt.xyp tt.grv | gmt psxy -i2,5 -R0/165/80/360 -JX14c/8c -W1p -Ba -BWS -Y16c -O >> $ps
Tip!

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

Comments

Loading...