Software Open Access
Mark Wieczorek; MMesch; Elliott Sales de Andrade; Ilya Oshchepkov; Benda Xu; Andrew Walker
Change log:
SHCoeffs
and SHGrid
. To make use of this normalization, just specify normalization='unnorm'
.mag_spectrum()
in the subpackage gravmag
that replaces the original fortran wrapped routines. The old python wrapped functions have been removed from pyshtools. This new routine is nearly the same as spectrum()
, and further allows one to compute the spectrum of the potential or magnetic intensity.SHRead
function has been replaced with a python native version shread()
. The functionality is nearly identical as before, and combines the previous routines SHRead
, SHReadError
, SHReadErrorH
and SHReadH
into one. Differences include: (1) It is no longer necessary to specify the lmax of the file: This is determined automatically by reading the file from the end, (2) both real and complex coefficients are supported, (3) a header line can be output, but it is a simple list of type str that will need to be converted to the correct format by the user, and (4) "comment" lines are read and ignored: A valid line is one where there are 4 or more words, and where the first two words are integers.convert()
was added in the subpackage shio
that converts between arrays of spherical harmonic coefficients with different normalizations. The class SHCoeffs
was then simplified by using this external function for all conversions involving SHCoeffs
class instances.SHCoeffs.spectrum()
.SHGrid
, one can now specify the label to use for the x and y axes with xlabel
and ylabel
, as well as the interval to use when plotting ticks on both axes using tick_interval
.convention
to treat Euler angles in either the x
or y
conventions (i.e., which axes to use for the second rotation). Furthermore, the optional argument body
allows you to specify if you want to rotate the body (True), or coordinate system (False, default). The tutorial number 3 was updated to clear up some inconsistencies in how the angles were defined.SHWindow.plot_windows()
and SHWindow.plot_spectra()
that include xlim
and ylim
for the limits when plotting spectra, maxcolumns
for the number of columns to use when plotting several windows, and lmax
which controls the grid spacing when plotting the windows.lmax
to SHCoeffs.from_random()
that allows you to create coefficients with maximum bandwidths that are either greater or less than the bandwidth of the input power spectrum.SHCoeffs.rotate()
with degrees greater than 1200, as the routine is not accurate beyond this value.legend
to SHWindow.plot_windows()
to control whether the legend is plotted or not.SHCoeffs.rotate()
.utf-8
.pages/mydoc
. A static html web site is built using jekyll
, whose files are located in doc
. Github will automatically create the static pages and serve them on shtools.github.io/SHTOOLS. To build the static pages yourself, it is only necessary to execute bundle exec jekyll build
in the directory doc
, which will build the site into _site
in the same directory. Alternatively, make www
in the main directory will create a static site in the top-level directory www
that could be used to deploy on a different web server. The site is based on the template Jekyll documentation theme by @tomjoht.Name | Size | |
---|---|---|
SHTOOLS/SHTOOLS-v4.2.zip
md5:743b5e37c82d259da8d83c592cf54abe |
12.2 MB | Download |
All versions | This version | |
---|---|---|
Views | 2,668 | 232 |
Downloads | 380 | 30 |
Data volume | 9.3 GB | 365.7 MB |
Unique views | 2,320 | 222 |
Unique downloads | 258 | 21 |