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

trivor.sh 625 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. # Test Delauney and Voronoi for Cartesian data
  4. ps=trivor.ps
  5. cat << EOF > nodes.xy
  6. 2.53857 5.16657
  7. 2.48365 6.26811
  8. 8.68883 4.55983
  9. 4.11104 7.78623
  10. 1.79704 6.53027
  11. 7.17493 3.81713
  12. 3.41052 8.18161
  13. 8.35062 1.43348
  14. 8.1706 4.46765
  15. 5.27815 1.15172
  16. EOF
  17. gmt triangulate nodes.xy -M | gmt psxy -R0/10/0/10 -JX6i -P -K -W0.25p,red > $ps
  18. gmt psxy -R -J -O -B2g1 -Sc0.2i -Gwhite -W0.25p nodes.xy -K >> $ps
  19. $AWK '{printf "%s %s %d\n", $1, $2, NR-1}' nodes.xy | gmt pstext -R -J -F+f8p -O -K >> $ps
  20. gmt triangulate nodes.xy -M -Q -R0/10/0/10 | gmt psxy -R0/10/0/10 -J -O -K -W1p >> $ps
  21. gmt psxy -R -J -O -T >> $ps
Tip!

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

Comments

Loading...