Debian Codegraph @

doc/examples/ex36/ex36.bat

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