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

closed.sh 515 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
  1. #!/usr/bin/env bash
  2. #
  3. ps=closed.ps
  4. # Make a grid with closed contours at N pole, one crossing the periodic boundary, and one safely in middle
  5. gmt set PROJ_ELLIPSOID Sphere
  6. gmt grdmath -Rg -I1 0 0 SDIST KM2DEG 35 DIV 2 POW NEG EXP 0 90 SDIST KM2DEG 50 DIV 2 POW NEG EXP ADD 70 0 SDIST KM2DEG 35 DIV 2 POW NEG EXP ADD 11 MUL = tmp.nc
  7. contour="gmt grdcontour -A2 -C1 -L8.5/10.5 -Gd4 tmp.nc -Bxa60g30 -By30g30 -BWS -T+lLH -Wa1p,red -Wc1p,blue"
  8. $contour -JN180/7i -P -K > $ps
  9. $contour -JG30/35/5i -O -Y4i -X1i >> $ps
Tip!

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

Comments

Loading...