Debian Codegraph @

doc/examples/ex36/ex36.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2 # GMT EXAMPLE 36
3 #
4 # Purpose: Illustrate sphinterpolate with Mars radii data
5 # GMT modules: plot, makecpt, grdimage, sphinterpolate, subplot
6 # Unix progs: rm
7 #
8 gmt begin ex36
9 # Interpolate data of Mars radius from Mariner9 and Viking Orbiter spacecrafts
10 gmt subplot begin 3x1 -Fs14c/0 -JH0/14c -Rg -M0
11 gmt makecpt -Crainbow -T-7000/15000
12 # Piecewise linear interpolation; no tension
13 gmt sphinterpolate @mars370d.txt -Rg -I1 -Q0 -Gtt.nc
14 gmt grdimage tt.nc -Bag -c0
15
16 gmt plot @mars370d.txt -Sc0.1c -G0 -B30g30 -c1
17
18 # Smoothing
19 gmt sphinterpolate @mars370d.txt -Rg -I1 -Q3 -Gtt.nc
20 gmt grdimage tt.nc -Bag -c2
21 gmt subplot end
22 # cleanup
23 rm -f tt.nc
24 gmt end show