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

cross_spec.sh 1.1 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
  1. #!/usr/bin/env bash
  2. #
  3. # Compare gmt gravfft and gmt grdfft calculations of admittance and coherence between bathymetry and geoid over the Azores
  4. ps=cross_spec.ps
  5. gmt set GMT_FFT kiss
  6. gmt gravfft @bathy_1m.nc @geoid_1m.nc -N+d -Iwck -fg > coh.txt
  7. gmt gravfft @bathy_1m.nc @geoid_1m.nc -N+d -Iwk -fg > adm.txt
  8. gmt grdfft @bathy_1m.nc @geoid_1m.nc -N+d -E+wk -fg > cross.txt
  9. # coh: gmt gravfft in red, gmt grdfft in green
  10. gmt psxy coh.txt -R3/1000/0/1 -JX-6il/4.5i -Bxg3 -Byg -P -Sc0.05i -Gred -Ey0.2c/0.5p,red -K -X1.25i > $ps
  11. gmt psxy cross.txt -R -J -O -K -Sp -Ey0.1c/0.5p,green -i0,15,16 >> $ps
  12. gmt psxy cross.txt -R -J -O -K -W0.25p,green -i0,15 -Bxa1+l"Wavelength (km)" -Byaf+l"Coherence" -BWSne >> $ps
  13. # adm: gmt gravfft in red, gmt grdfft in green
  14. gmt psxy adm.txt -R3/1000/0/2 -JX-6il/4.5i -Bxg3 -Byg -O -Sc0.05i -Ey+w0.2c+p0.5p,red -Gred -K -i0,1+s1000,2+s1000 -Y5.3i >> $ps
  15. gmt psxy cross.txt -R -J -O -K -Sp -Ey+w0.1c+p0.5p,green -i0,11+s1000,12+s1000 >> $ps
  16. gmt psxy cross.txt -R -J -O -W0.25p,green -i0,11+s1000 -Bxa1+l"Wavelength (km)" -Byaf+l"Admittance (mGal/km)" -BWSne >> $ps
Tip!

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

Comments

Loading...