PlotSphericalHarmonicsTriangle

Plot the potential coefficients of a spherical harmonic expansion using the GMT Generic Mapping Tools (https://www.generic-mapping-tools.org). A variety of image file formats are supported (e.g. png, jpg, eps) determined by the extension of outputfile.

This program plots the formal errors (sigmas). If gravityfield provides no sigmas e.g. with setSigmasToZero in gravityfield:potentialCoefficients the coefficients itself are plotted instead.

The plot programs create a temporary directory in the path of outputfile, writes all needed data into it, generates a batch/shell script with the GMT commands, execute it, and remove the temporary directory. With setting options:removeFiles=false the last step is skipped and it is possible to adjust the plot manually to specific publication needs. Individual GMT settings are adjusted with options:options="FORMAT=value", see https://docs.generic-mapping-tools.org/latest/gmt.conf.html.

plotSphericalHarmonicsTriangle
Figure: Formal errors of GOCO06s.

NameTypeAnnotation
outputfile
filename*.png, *.jpg, *.eps, ...
title
string
gravityfield
gravityfielduse sigmas, if not given use signal (cnm,snm)
time
timeat this time the gravity field will be evaluated
minDegree
uint
maxDegree
uint
majorTickSpacing
doubleboundary annotation
minorTickSpacing
doubleframe tick spacing
gridLineSpacing
doublegridline spacing
gridLine
plotLineThe style of the grid lines.
colorbar
plotColorbar
options
sequencefurther options...
width
doublein cm
height
doublein cm
titleFontSize
uintin pt
marginTitle
doublebetween title and figure [cm]
drawGridOnTop
booleangrid lines above all other lines/points
options
string
transparent
booleanmake background transparent
dpi
uintuse this resolution when rasterizing postscript file
removeFiles
booleanremove .gmt and script files