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.0 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
  1. #!/bin/bash
  2. # $Id$
  3. #
  4. # Compare gmt gravfft and gmt grdfft calculations of admittance and coherence between bathymetry and geoid over the Azores
  5. ps=cross_spec.ps
  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 -Ewk -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 -P -Bxa1g3+l"Wavelength (km)" -Byafg+l"Coherence" -BWSne -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,16 >> $ps
  13. # adm: gmt gravfft in red, gmt grdfft in green
  14. gmt psxy adm.txt -R3/1000/0/2 -JX-6il/4.5i -O -Bxa1g3+l"Wavelength (km)" -Byafg+l"Admittance (mGal/km)" -BWSne -Sc0.05i -Ey0.2c/0.5p,red -Gred -K -i0,1s1000,2s1000 -Y5.3i >> $ps
  15. gmt psxy cross.txt -R -J -O -K -Sp -Ey0.1c/0.5p,green -i0,11s1000,12s1000 >> $ps
  16. gmt psxy cross.txt -R -J -O -W0.25p,green -i0,11s1000,12s1000 >> $ps
Tip!

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

Comments

Loading...