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

one.sh 965 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
  1. #!/usr/bin/env bash
  2. #
  3. # Evaluate a single (C_l,m, S_l,m) coefficient
  4. ps=one.ps
  5. echo "6 3 0 1" > t.txt
  6. gmt sph2grd t.txt -I1 -Rg -Nm -Ggrid.nc
  7. gmt grd2cpt grid.nc -Cpolar -E7 -T= -Z > t.cpt
  8. gmt grdimage grid.nc -Jx0.015id -P -B30 -BWSnE -Ct.cpt -K -Xc -Y0.75i > $ps
  9. echo "180 90 P@-6,3@-, with S@-6,3@- = 0 and S@-6,3@- = 1" | gmt pstext -R -J -O -K -Dj0.2i -N -F+jBC+f14p >> $ps
  10. echo "6 0 1 0" > t.txt
  11. gmt sph2grd t.txt -I1 -Rg -Nm -Ggrid.nc
  12. gmt grd2cpt grid.nc -Cpolar -E7 -T= -Z > t.cpt
  13. gmt grdimage grid.nc -Jx0.015id -O -K -B30 -BWsnE -Ct.cpt -Y3.25i >> $ps
  14. echo "180 90 P@-6,0@-, with C@-6,0@- = 1 and S@-6,0@- = 0" | gmt pstext -R -J -O -K -Dj0.2i -N -F+jBC+f14p >> $ps
  15. echo "6 6 1 1" > t.txt
  16. gmt sph2grd t.txt -I1 -Rg -Nm -Ggrid.nc
  17. gmt grd2cpt grid.nc -Cpolar -E7 -T= -Z > t.cpt
  18. gmt grdimage grid.nc -Jx0.015id -O -K -B30 -BWsnE -Ct.cpt -Y3.25i >> $ps
  19. echo "180 90 P@-6,6@-, with C@-6,6@- = S@-6,6@- = 1" | gmt pstext -R -J -O -Dj0.2i -N -F+jBC+f14p >> $ps
Tip!

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

Comments

Loading...