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

pssac_stdin.sh 661 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
  1. #!/usr/bin/env bash
  2. #
  3. # Description:
  4. R=195/1600/14/42
  5. J=X15c/6c
  6. Bx=x250
  7. By=y5
  8. ps=pssac_stdin.ps
  9. gmt set PS_MEDIA 21cx31c
  10. gmt pssac "${src:-.}"/*.z -J$J -R$R -B$Bx -B$By -BWSen -Ed -M0.8i -K -P > $ps
  11. gmt pssac input.dat -J -R -B$Bx -B$By -BWsen -Ed -M0.8i -K -O -Y7c >> $ps
  12. gmt pssac -J -R -B$Bx -B$By -BWsen -Ed -M0.8i -K -O -Y7c >> $ps << EOF
  13. # This is a comment, it will be skipped
  14. ntkl.z 195 16 2p,red
  15. nykl.z 300 20 0p,blue
  16. onkl.z 400 30 2.2p,yellow
  17. sdkl.z 500 35 2.2p
  18. EOF
  19. gmt pssac -J -R -B$Bx -B$By -BWsen -Ed -M0.8i -O -Y7c -h1 >> $ps << EOF
  20. name X Y pen
  21. ntkl.z 195 16 2p,red
  22. nykl.z 300 20 0p,blue
  23. onkl.z 400 30 2.2p,yellow
  24. sdkl.z 500 35 2.2p
  25. EOF
Tip!

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

Comments

Loading...