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

hexmean.sh 723 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
  1. #!/usr/bin/env bash
  2. # Test unweighted hexagon tile binning in gmtbinstats
  3. #
  4. ps=hexmean.ps
  5. gmt binstats hex_data.txt -R0/5/0/3 -I1 -Th -Ca > ave.txt
  6. gmt binstats hex_data.txt -R0/5/0/3 -I1 -Th -Cs > std.txt
  7. gmt makecpt -Cjet -E ave.txt > ave.cpt
  8. gmt makecpt -Chot -E std.txt > std.cpt
  9. R=$(gmt info ave.txt -Ie)
  10. gmt psxy std.txt $R -Jx3c -P -Baf -BWNse -Cstd.cpt -Sh3.46410161514c -W1p -K -Y3c > $ps
  11. gmt psxy -R -J -O -K hex_data.txt -Sc0.1c -Gblack >> $ps
  12. gmt psscale -Cstd.cpt -R -J -DJBC -Bxaf -By+lstdev -O -K >> $ps
  13. gmt psxy ave.txt -R -J -O -K -Baf -BWNse -Cave.cpt -Sh3.46410161514c -W1p -Y13c >> $ps
  14. gmt psxy -R -J -O -K hex_data.txt -Sc0.1c -Gblack >> $ps
  15. gmt psscale -Cave.cpt -R -J -DJBC -Bxaf -By+lMean -O >> $ps
Tip!

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

Comments

Loading...