Software Open Access
Mark Wieczorek; MMesch; Elliott Sales de Andrade; Ilya Oshchepkov; Benda Xu; Andrew Walker
New Gravity and Magnetic field classes
MakeMagGradGridDH, which is analogous to
CilmPlusRhoHDHto be consistent with
MakeMagGridDHnow also outputs the magnetic potential as a grid.
pyshtools.utils.figstyle(), that sets several matplotlib parameters for better figures. This function takes as optional parmeters the maximum useable width of a journal page, the relative width of the figure with respect to this value, and the screen resolution in dpi.
examples/python/Common/FigStyle.pywas removed from the examples.
vmaxto the plotting methods
SHCoeffs.plot_spectrum2d()in order to specify the limits of the color scale.
SHGridplots, along with the option to specify their orientation and a text label.
New constant subpackage
constantsubpackage has been completely rewritten and now makes use of the astropy
Constantclass. This class has attributes
reference. The naming of the constants has changed in some cases for consistency. A few constants that are not necessary were removed. Many of the constants were updated with more recent values.
Constantscan be used in arithmetic operations with either other
Constantsor with objects of the astropy class
Mars), and for convenience, these are all added to the main namespace. The fundamental constants
mu0from the astropy constants package were added (as taken from CODATA 2014).
SHCoeffs.from_random()to allow for reproducibility.
__repr__methods to all pyshtools classes.
SHCoeffssuch that addition and subtraction of a constant only affects the degree 0 term.
SHCoeffs.pad()where the attribute
maskwas not similarly padded.
SHCoeffsgrids, it is now required that the two class instances have the same
SHRotateCoefto point out that this is only valid for intrinsically real functions that are expressed in complex harmonics.
volume()to the class SHCoeffs, that calculates the volume of the object.
SHWindow, which provides the area of the concentration domain and the shannon number.
M. A. Wieczorek, M. Meschede, E. Sales de Andrade, I. Oshchepkov, B. Xu, and A. Walker (2018). SHTOOLS: Version 4.3, Zenodo, doi:10.5281/zenodo.1345510