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

earth_shade.sh 556 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
  1. #!/usr/bin/env bash
  2. # Test DOT operator in grdmath to simulate sun/shade
  3. # Sharpen the cos curve by taking sqrt and subtrack some ambient light
  4. gmt begin earth_shade ps
  5. gmt grdmath -Rg -I30m -rp 120W 15N DOT DUP ABS SQRT EXCH SIGN MUL 0.4 SUB = c.nc
  6. gmt grdmath -Rg -I30m -rp 120W 15N DOT ACOS R2D = a.nc
  7. gmt subplot begin 2x1 -M0 -Fs16c -Rg -JG200/-20/10c -Bafg -T"DOT operator in grdmath"
  8. gmt grdcontour a.nc -C5 -A10 -GlZ-,Z+ -c0
  9. gmt grdimage @earth_relief_30m -Ic.nc -c1 --COLOR_HSV_MAX_S=0 --COLOR_HSV_MIN_V=0
  10. gmt subplot end
  11. gmt end show
Tip!

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

Comments

Loading...