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

pseudo.sh 1.7 KB

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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
  1. #!/bin/bash
  2. # GMT 5 test script for pseudo perspective on some projections. By Ken McLean.
  3. # Create normal plot, 180 deg rotation, and oblique pseudo perspective of each.
  4. ps=pseudo.ps
  5. . ../functions.sh
  6. header "Test placement of pseudo perspective projections"
  7. coast () {
  8. pscoast -B+glightblue -Dc -Gblack -O -K -Ya0c -p180/90 $*
  9. pscoast -B+glightblue -Dc -Gblack -O -K -Ya3.5c -p0/90 $*
  10. pscoast -B+glightblue -Dc -Gblack -O -K -Ya7c -p135/45 $*
  11. }
  12. basemap () {
  13. psbasemap -B+glightblue -O -K -Ya0c -p180/90 $*
  14. psbasemap -B+glightblue -O -K -Ya3.5c -p0/90 $*
  15. psbasemap -B+glightblue -O -K -Ya7c -p135/45 $*
  16. }
  17. # TOP ROW
  18. psxy -Rg -JX1c -T -K -Yf10.5c > $ps
  19. # Transverse Mercator
  20. coast -R0/360/-80/80 -JT330/-45/3c -Bg15 -A10000 -Xf0c >> $ps
  21. # Cartesian linear
  22. basemap -R0/5/0/5 -JX3cd/3c -Bg1 -Xf4c >> $ps
  23. # Stereographic Equal-Angle
  24. coast -R-30/30/60/72 -JS0/90/3c -Bg5 -A10000 -Xf8c >> $ps
  25. # Oblique Mercator
  26. coast -R270/20/305/25r -JOc280/25.5/22/69/3c -Bg5 -A10 -Xf12c >> $ps
  27. # Cassini cylindrical
  28. coast -Rg -JQ3c -Bg30 -A10000 -Xf16c >> $ps
  29. # Eckert
  30. coast -Rg -JK3c -Bg30 -A10000 -Xf20c >> $ps
  31. # Mollweide
  32. coast -Rg -JW3c -Bg30 -A10000 -Xf24c >> $ps
  33. # BOTTOM ROW
  34. psxy -Rg -JX1c -T -O -K -Yf0c >> $ps
  35. # Gnomonic
  36. coast -Rg -JF-120/35/60/3c -Bg15 -A10000 -Xf0c >> $ps
  37. # Polar
  38. coast -R0/360/0/90 -JP3c -Bg15 -A10000 -Xf4c >> $ps
  39. # American polyconic
  40. coast -R-180/-20/0/90 -JPoly/3c -Bg15 -A10000 -Xf8c >> $ps
  41. # Lambert
  42. coast -Rg -JA280/30/3c -Bg15 -A10000 -Xf12c >> $ps
  43. # Orthographic
  44. coast -Rg -JG-75/41/3c -Bg15 -A10000 -Xf16c >> $ps
  45. # Azimuthal equidistant
  46. coast -Rg -JE-100/40/3c -Bg15 -A10000 -Xf20c >> $ps
  47. # Van der Grinten
  48. coast -Rg -JV3c -Bg15 -A10000 -Xf24c >> $ps
  49. psxy -R -J -T -O >> $ps
  50. pscmp
Tip!

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

Comments

Loading...