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

gen_data_App_O.sh 815 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
26
27
28
29
30
31
32
33
34
35
36
  1. #!/usr/bin/env bash
  2. #
  3. # Makes the data for GMT_App_O_[1-9].sh
  4. #
  5. gmt grdcut @osu91a1f_16.nc -R50/160/-15/15 -GApp_O_geoid.nc
  6. # Complex line algorithm points
  7. cat << EOF > App_O_cross.txt
  8. > 1st branch
  9. 59 -12
  10. 62 -7
  11. 66 -3
  12. 71 -1
  13. 77 3
  14. > 2nd branch
  15. 94 -11
  16. 100 -10.5
  17. 105 -9.5
  18. 109 -8.6
  19. 114 -6.5
  20. 119 -4
  21. 126 2
  22. > 3rd branch
  23. 148 3
  24. 158 13
  25. EOF
  26. info=$(gmt grdinfo -M -Cn App_O_geoid.nc)
  27. x0=$(echo $info | cut -f11 -d ' ')
  28. y0=$(echo $info | cut -f12 -d ' ')
  29. x1=$(echo $info | cut -f13 -d ' ')
  30. y1=$(echo $info | cut -f14 -d ' ')
  31. gmt project -C$x0/$y0 -E$x1/$y1 -G10 -Q > tt.d
  32. dist=$(gmt convert tt.d --FORMAT_FLOAT_OUT=%.0lf -El -o2)
  33. R=$(gmt info -I1 tt.d)
  34. echo "# Geoid Extrema Separation is $dist km" > App_O_transect.txt
  35. gmt grdtrack tt.d -GApp_O_geoid.nc | gmt grdtrack -GGMT_App_O.nc >> App_O_transect.txt
  36. rm -f tt.d gmt.history
Tip!

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

Comments

Loading...