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

pssolar_fill2.sh 1.1 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
  1. #!/usr/bin/env bash
  2. # Documenting issue # 1155 [Andreas]. The problem is that the terminator
  3. # touches the N pole and what is inside and outside of the global polygon
  4. # becomes harder to decide. This case shows that while pssolar selects the
  5. # wrong side, dumping it to file and plotting via psxy selects the correct side.
  6. # We are faking the orig PS by using psxy for both, then commenting that out
  7. ps=pssolar_fill2.ps
  8. gmt pscoast -Rd -JKs0/7i -Dc -A50000 -W0.5p -S175/210/255 -Bafg --MAP_FRAME_TYPE=plain -P -K -Xc > $ps
  9. date="2017-09-26T12:40:58"
  10. # Dump to file then plot
  11. gmt pssolar -Ta+d$date -M > t.txt
  12. gmt psxy -R -J t.txt -Wthick -Gnavy@95 -K -O >> $ps
  13. gmt pssolar -I+d$date -C | gmt psxy -R -J -Sc1c -Gyellow -O -K -B+t"$date dump via psxy" >> $ps
  14. # Draw in pssolar instead
  15. gmt pscoast -R -J -Dc -A50000 -W0.5p -S175/210/255 -Bafg --MAP_FRAME_TYPE=plain -O -K -Y5i >> $ps
  16. #gmt psxy -R -J t.txt -Wthick -Gnavy@95 -K -O >> $ps
  17. gmt pssolar -R -J -Ta+d$date -Wthick -Gnavy@95 -K -O >> $ps
  18. gmt pssolar -I+d$date -C | gmt psxy -R -J -Sc1c -Gyellow -O -B+t"$date directly via pssolar" >> $ps
Tip!

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

Comments

Loading...