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

filled_cont.sh 631 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
  1. #!/usr/bin/env bash
  2. #
  3. # Test the new -N option in grdcontour and compare to manual grdview+grdcontour
  4. ps=filled_cont.ps
  5. gmt makecpt -T675/975/25 -Cjet > t.cpt
  6. gmt blockmean @Table_5_11.txt -R0/7/0/7 -I1 > mean.xyz
  7. gmt surface mean.xyz -R -I1 -Gdata.nc
  8. # Draw a filled contour map directly via grdcontour
  9. gmt grdcontour data.nc -JX4.08i/4.2i -B2f1 -BWSne -Nt.cpt -C25 -A50+gwhite -Gd3i -S4 -P -K -Xc > $ps
  10. # Compare to the same map done via filled grdview -Qs plus grdcontour separately
  11. gmt grdview data.nc -J -Ct.cpt -S4 -Qs -W0.25p -O -K -Y4.75i >> $ps
  12. gmt grdcontour data.nc -J -B2f1 -BWSne -C25 -A50+gwhite -Gd3i -S4 -O >> $ps
Tip!

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

Comments

Loading...