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

near_a_point.sh 386 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. #
  3. # Test script used for problem reported bin gmt-user forum message
  4. # http://gmt.soest.hawaii.edu/boards/1/topics/6027
  5. # Some test data
  6. cat << EOF > t.txt
  7. -110 40 town1
  8. -108 38 town2
  9. -109 43 town3
  10. EOF
  11. echo "-109.9 40.1" > tc.txt
  12. echo "-110 40 town1" > answer.txt
  13. gmt select t.txt -C30k/tc.txt -fg > result.txt
  14. diff answer.txt result.txt --strip-trailing-cr > fail
Tip!

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

Comments

Loading...