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

subset.sh 457 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
  1. #!/usr/bin/env bash
  2. #
  3. ps=subset.ps
  4. # Grid is negative longitudes
  5. gmt grdmath -R-179.2/-176.5/-5/-3 -I0.01 X = t.nc
  6. gmt grdmath -R-179.2/-176.5/-5/-3 -I0.01 X 100 MUL COSD Y 50 MUL SIND MUL = int.nc
  7. gmt makecpt -T-179.2/-176.5/0.01 > t.cpt
  8. gmt grdimage t.nc -Iint.nc -JM6i -P -Ct.cpt -K -B1 -BWSne -Xc -Y0.5i > $ps
  9. # We choose larger area but using positive longitudes
  10. gmt grdimage t.nc -Iint.nc -R180.2/185/-6/-2 -JM6i -O -Ct.cpt -B1 -BWSne -Y5i >> $ps
Tip!

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

Comments

Loading...