Software Open Access
Mark Wieczorek; MMesch; Elliott Sales de Andrade; Ilya Oshchepkov; xoviat; Benda Xu; Katrin Leinweber; Andrew Walker
plot_cross_spectrum2d()methods to the
from_cap()constructor to create coefficients of a spherical cap.
SHGravCoeffsclasses when the input
csphaseis different from the default value.
from_zeros()to initialize a grid with zeros.
from_cap()to initial a grid with a spherical cap.
to_netcdf()exports data to netcdf format, and when saved to file can be used directly with GMT (generic mapping tools) where they are known as 'grd' files.
to_xarray()exports data to an xarray DataArray.
coupling matrix()for computing the coupling matrix that relates the Slepian expansion power spectrum to the global power spectrum.
SHSCouplingMatrixCapwhich is optimized for working with spherical cap Slepian functions.
plot_coupling_matrix, such as the addition of colorbars, and the option to normalize to maximum value to unity.
Slepianclasses, respectively, to allow for the construction of Slepian functions that exclude certain spherical harmonic degrees.
variance()to compute the variance of a multitaper spectral estimate (based on
variance()to compute the variance of a Slepian expansion spectral estimate.
weightsin all methods of
kfor consistency with the localized spectral analysis routines.
gfortrancompiler). Double precision, double complex, and long integers are defined as
integer(int8), and the types are defined in a new module
fftwroutines has been updated. In particular, the old
call dfftw_execute(plan)statements now include all their dependent variables using the new syntax
call fftw_execute_dft(plan, grid, coef). Importantly, the old syntax caused the GCC9 optimizer to break the spherical transform routines, generating meaningless output for large parts of the grids or coefficients.
iso_c_binding) are claimed to be supported by the majority of modern compilers. This allows us to access the FFTW routines without use of fortran bindings, which are not always included in compiled versions of FFTW.
FFTW3.f95. For simplicity, the use of the optional parameter
FFTW_UNDERSCOREused in the Makefile has been deprecated.
M. A. Wieczorek, M. Meschede, E. Sales de Andrade, I. Oshchepkov, B. Xu, and A. Walker (2019). SHTOOLS: Version 4.5, Zenodo, doi:10.5281/zenodo.2350781