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

ex05.sh 594 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
  1. #!/usr/bin/env bash
  2. # GMT EXAMPLE 05
  3. #
  4. # Purpose: Generate grid and show monochrome 3-D perspective
  5. # GMT modules: grdmath, grdview, text, makecpt
  6. # Unix progs: echo, rm
  7. #
  8. gmt begin ex05
  9. gmt grdmath -R-15/15/-15/15 -I0.3 X Y HYPOT DUP 2 MUL PI MUL 8 DIV COS EXCH NEG 10 DIV EXP MUL = sombrero.nc
  10. gmt makecpt -C128 -T-5,5 -N
  11. gmt grdview sombrero.nc -JX12c -JZ4c -B -Bz0.5 -BSEwnZ+t"z(r) = cos (2@~p@~r/8) @~\327@~e@+-r/10@+" -N-1+gwhite -Qs \
  12. -I+a225+nt0.75 -C -R-15/15/-15/15/-1/1 -p120/30 --FONT_TITLE=50p,ZapfChancery-MediumItalic --MAP_TITLE_OFFSET=-1c
  13. rm -f sombrero.nc
  14. gmt end show
Tip!

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

Comments

Loading...