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

gmt2kml.sh 736 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
  1. #!/usr/bin/env bash
  2. # Test the gmt 2kml application
  3. gmt pscoast -R-15/2/50/59:30 -Jm1i -M -W0.25p -Di > coast.txt
  4. # reduce exponent digits (e-015 -> e-15) and remove PID from style ref
  5. gmt 2kml coast.txt -Fl -W1p,red | \
  6. sed -e 's/e-0\([0-9][0-9]\)/e-\1/g' -e 's/st-.*-/st-x-/' > coast.kml
  7. diff --strip-trailing-cr coast.kml "${src:-.}"/coast.kml > fail
  8. # test -C option
  9. gmt makecpt -Ccategorical > categories.cpt
  10. gmt 2kml @kml_pointsets.txt -Ccategories.cpt | \
  11. sed -e 's/st-.*-/st-x-/' > pointsets.kml
  12. diff --strip-trailing-cr pointsets.kml "${src:-.}"/pointsets.kml >> fail
  13. gmt 2kml @kml_lines.txt -Fl -Ccategories.cpt | \
  14. sed -e 's/st-.*-/st-x-/' > lines.kml
  15. diff --strip-trailing-cr lines.kml "${src:-.}"/lines.kml >> fail
Tip!

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

Comments

Loading...