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

test_earthtide.sh 589 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
  1. #!/usr/bin/env bash
  2. #
  3. # Tests gmt earthtide against the values of the original FORTRAN version
  4. rm -f test_earthtide.dat
  5. # Skip the first column with the time since the fortran version prints seconds since t0
  6. gmt earthtide -T2018-7-7T/2018-7-7T00:04:00/1m -L0/0 --FORMAT_FLOAT_OUT=%.6f -o1:3 > test_earthtide.dat
  7. # Output from the Fortran version
  8. #-0.015781 -0.012347 -0.027025
  9. #-0.015756 -0.012132 -0.027402
  10. #-0.015731 -0.011916 -0.027772
  11. #-0.015705 -0.011698 -0.028136
  12. #-0.015678 -0.011480 -0.028494
  13. diff test_earthtide.dat "${src:-.}"/test_earthtide.dat --strip-trailing-cr > fail
Tip!

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

Comments

Loading...