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

units.sh 850 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
  1. #!/usr/bin/env bash
  2. # Test that symbol units is picked up from datafile, symbol option, and GMT default, in that order
  3. ps=units.ps
  4. # No unit in data, PROJ_LENGTH_UNIT decides the size
  5. echo "-2 2 1" | gmt psxy -JX6i -R-3/3/-3/3 -Ba1g1+0.5 -BWeSn -P -Sc -Ggray --PROJ_LENGTH_UNIT=inch -Xc -K > $ps
  6. # Unit in data, whatever PROJ_LENGTH_UNIT says should be ignored
  7. echo "2 2 1i" | gmt psxy -J -R -O -K -Sc -Ggray --PROJ_LENGTH_UNIT=point >> $ps
  8. # No unit in data, PROJ_LENGTH_UNIT decides the size
  9. echo "-2 -2 1" | gmt psxy -J -R -O -K -Sc -Ggray --PROJ_LENGTH_UNIT=cm >> $ps
  10. # Unit in data, PROJ_LENGTH_UNIT should be ignored
  11. echo "2 -2 1c" | gmt psxy -J -R -O -K -Sc -Ggray --PROJ_LENGTH_UNIT=inch >> $ps
  12. # No unit in data, but unit specified by -S; PROJ_LENGTH_UNIT from gmt.conf should be ignored
  13. echo "0 0 1" | gmt psxy -J -R -O -Sci -Gblack >> $ps
Tip!

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

Comments

Loading...