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

varline.sh 483 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
  1. #!/usr/bin/env bash
  2. # Make plot with variable line thickness
  3. ps=varline.ps
  4. # Relative course line file
  5. gmt math -T0/90/2 -N5 T -C1-3 4 MUL SIND -C3 5 MUL 0.5 ADD ABS = line.txt
  6. # Resample assuming dpi = 200
  7. gmt psevents line.txt -Ar200 -R0/90/-1.2/1.2 -JX20c/10c --PROJ_LENGTH_UNIT=inch > line_pts.txt
  8. # Make the plot
  9. gmt makecpt -Cpolar -T-1/1 -D > my.cpt
  10. gmt psevents line_pts.txt -R0/90/-1.2/1.2 -JX20c/10c -X2c -Y1.75c -Baf -Scp -Cmy.cpt -T60 -Es+d1 -Ms2+c1 -Mi0.5 -Mt+c0 > $ps
Tip!

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

Comments

Loading...