Software Open Access
Mark Wieczorek; MMesch; Elliott Sales de Andrade; Ilya Oshchepkov; Benda Xu; Andrew Walker
Version 4.3
New Gravity and Magnetic field classes
SHGravCoeffs
, SHGravGrid
, SHGravTensor
and SHGeoid
.SHMagCoeffs
, SHMagGrid
, and SHMagTensor
.MakeMagGradGridDH
, which is analogous to MakeGravGradGridDH
.CilmPlusRhoHDH
to be consistent with CilmPlusDH
.MakeMagGridDH
now also outputs the magnetic potential as a grid.Better figures
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.py
was removed from the examples.vmin
and vmax
to the plotting methods SHCoeffs.plot_spectrum2d()
in order to specify the limits of the color scale.SHGrid
plots, along with the option to specify their orientation and a text label.New constant subpackage
constant
subpackage has been completely rewritten and now makes use of the astropy Constant
class. This class has attributes name
, value
, uncertainty
, unit
, and 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. Constants
can be used in arithmetic operations with either other Constants
or with objects of the astropy class Quantity
.Mercury
, Venus
, Earth
, Moon
, and Mars
), and for convenience, these are all added to the main namespace. The fundamental constants G
and mu0
from the astropy constants package were added (as taken from CODATA 2014).Other changes
seed
added to SHCoeffs.from_random()
to allow for reproducibility.__repr__
methods to all pyshtools classes.SHCoeffs
such that addition and subtraction of a constant only affects the degree 0 term.lmax
to SHCoeffs.plot_spectrum()
and SHCoeffs.plot_spectrum2d()
.SHCoeffs.pad()
where the attribute mask
was not similarly padded.SHCoeffs
grids, it is now required that the
two class instances have the same lmax
.SHRotateCoef
to 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.area
and shannon
to SHWindow
, which provides the area of the concentration domain and the shannon number.Citation:
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
Name | Size | |
---|---|---|
SHTOOLS/SHTOOLS-v4.3.zip
md5:5475a74570969a2ae7c78161cc6d63a3 |
32.7 MB | Download |
All versions | This version | |
---|---|---|
Views | 1,764 | 117 |
Downloads | 234 | 19 |
Data volume | 5.3 GB | 620.6 MB |
Unique views | 1,535 | 111 |
Unique downloads | 162 | 17 |