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

trend_x_or_y.sh 481 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. # Testing the +x and +y modifiers to grdtrend -N
  4. gmt grdmath -R-1/1/-1/1 -I0.1 X = x.grd
  5. gmt grdtrend x.grd -N2+x -Dlixo_flat_x.grd
  6. gmt grdmath -R-1/1/-1/1 -I0.1 Y = y.grd
  7. gmt grdtrend y.grd -N2+y -Dlixo_flat_y.grd
  8. # Replace 0 with NaN and write out anything else as failure
  9. gmt grdmath lixo_flat_x.grd 0 NAN = lixo_flat_x.grd
  10. gmt grdmath lixo_flat_y.grd 0 NAN = lixo_flat_y.grd
  11. gmt grd2xyz lixo_flat_x.grd -s > fail
  12. gmt grd2xyz lixo_flat_y.grd -s >> fail
Tip!

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

Comments

Loading...