Published August 17, 2018
| Version v4.3
Software
Open
SHTOOLS/SHTOOLS: Version 4.3
- 1. Laboratoire Lagrange - Observatoire de la Côte d'Azur
- 2. Center of Geodesy, Cartography and SDI (TsNIIGAiK)
Description
Version 4.3
New Gravity and Magnetic field classes
- Added gravity classes
SHGravCoeffs
,SHGravGrid
,SHGravTensor
andSHGeoid
. - Added magnetic field classes
SHMagCoeffs
,SHMagGrid
, andSHMagTensor
. - Added new fortran subroutine
MakeMagGradGridDH
, which is analogous toMakeGravGradGridDH
. - Reorded the arguments of
CilmPlusRhoHDH
to be consistent withCilmPlusDH
. - The python routine
MakeMagGridDH
now also outputs the magnetic potential as a grid.
Better figures
- Addition of the function
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. - Most plotting routines have optional parameters to set minor tick intervals, grids, label font size, and tick font size.
- Degree symbols are plotted on tick labels for maps.
examples/python/Common/FigStyle.py
was removed from the examples.- Added the options
vmin
andvmax
to the plotting methodsSHCoeffs.plot_spectrum2d()
in order to specify the limits of the color scale. - Added the option to plot colorbars on
SHGrid
plots, along with the option to specify their orientation and a text label. - All notebooks have been updated.
New constant subpackage
- The
constant
subpackage has been completely rewritten and now makes use of the astropyConstant
class. This class has attributesname
,value
,uncertainty
,unit
, andreference
. 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 otherConstants
or with objects of the astropy classQuantity
. - Constants are organized into modules for each of the planets (
Mercury
,Venus
,Earth
,Moon
, andMars
), and for convenience, these are all added to the main namespace. The fundamental constantsG
andmu0
from the astropy constants package were added (as taken from CODATA 2014).
Other changes
- Fixed a bug in how the random coeffcients were determined for unnormalized coeffcients in SHCoeffs.
- Optional parameter
seed
added toSHCoeffs.from_random()
to allow for reproducibility. - One can now specify colat instead of lat for the method SHCoeffs.expand().
- Added
__repr__
methods to all pyshtools classes. - Changed the mathematical operators of
SHCoeffs
such that addition and subtraction of a constant only affects the degree 0 term. - Added the optional parameter
lmax
toSHCoeffs.plot_spectrum()
andSHCoeffs.plot_spectrum2d()
. - Fixed a bug in
SHCoeffs.pad()
where the attributemask
was not similarly padded. - For mathematical operations with
SHCoeffs
grids, it is now required that the two class instances have the samelmax
. - Clarified the documentation of
SHRotateCoef
to point out that this is only valid for intrinsically real functions that are expressed in complex harmonics. - Added the method
volume()
to the class SHCoeffs, that calculates the volume of the object. - Added the attributes
area
andshannon
toSHWindow
, which provides the area of the concentration domain and the shannon number. - Removed python installation support from Makefile: use pip instead.
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
Files
SHTOOLS/SHTOOLS-v4.3.zip
Files
(32.7 MB)
Name | Size | Download all |
---|---|---|
md5:5475a74570969a2ae7c78161cc6d63a3
|
32.7 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/SHTOOLS/SHTOOLS/tree/v4.3 (URL)