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

shrink.sh 806 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
  1. #!/usr/bin/env bash
  2. # Test shrinking of line and heads with/without +n for grdvector
  3. ps=shrink.ps
  4. gmt grdmath -R0/360/-30/60 -I30/30 -r 7 X MUL = x.nc
  5. gmt grdmath -R0/360/-30/60 -I30/30 -r 100 = y.nc
  6. cat << EOF > line
  7. 180 -30
  8. 180 60
  9. EOF
  10. gmt grdvector x.nc y.nc -JM6i -Si1k -Q0.1i+n1260 -W1.5p -Gred -Ba -BWSne -P -K -Xc > $ps
  11. gmt psxy -R -J -O -K -W0.5p,blue line >> $ps
  12. gmt grdvector x.nc y.nc -R -J -Si1k -Q0.1i+b+e+n1260+jc -W0.5p -Gred -Ba -BWSne -O -K -Y2.3i >> $ps
  13. gmt psxy -R -J -O -K -W0.5p,blue line >> $ps
  14. gmt grdvector x.nc y.nc -R -J -Si1k -Q0.1i+e -W1p -Gred -Ba -BWSne -O -K -Y2.3i >> $ps
  15. #psxy -R -J -O -K -W0.5p,blue line >> $ps
  16. gmt grdvector x.nc y.nc -R -J -Si1k -Q0.1i+e+n1260 -W1p -Gred -Ba -BWSne+t"Shrink <----> Constant" -O -K -Y2.3i >> $ps
  17. gmt psxy -R -J -O -W0.5p,blue line >> $ps
Tip!

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

Comments

Loading...