title | keywords | sidebar | permalink | summary | toc | folder |
---|---|---|---|---|---|---|
Frequently asked questions |
spherical harmonics software package, spherical harmonic transform, legendre functions, multitaper spectral analysis, fortran, Python, gravity, magnetic field |
fortran_sidebar |
fortran-faq.html |
true |
fortran |
Before contacting us, first
- read the documentation on this web site,
- read the rest of this FAQ,
- ensure that you are using the current version of SHTOOLS,
- uninstall SHTOOLS using
make clean
andpip uninstall pyshtools
, and then recompile/install SHTOOLS, - consult the SHTOOLS issues at GitHub
If at this point your problem is not resolved, you can
- open an issue on GitHub,
- ask your question on the SHTOOLS gitter chat forum, or
- contact us by email.
We often make improvements based on user suggestions. Nevertheless, please realize that the developers are very busy and that we are not paid to develop or maintain this archive. We suggest that you open an issue on GitHub describing your suggestion, and we will then flag the issue as a future enhancement.
It is pronounced S-H-Tools.
Please see this page.
A C-interface to the Fortran-95 SHTOOLS library does exist. However, it is currently a work in progress and is not well documented. A working C example program can be found in the directory examples/cpp
, and the required header file can be found at includes/shtools.h
.
As for Fortran 77 and Matlab, we would be happy to add instructions on how to interface with these (or other) languages if anyone provides them to us.
SHTOOLS was developed initially to use the FFTW library. Since then, Intel's MKL has added wrapper functions to their FFT routines that use the same syntax as FFTW. SHTOOLS can be linked either to FFTW or MKL with no impact on performance.
The last version of pyshtools that supported Python 2.7 was version 4.5. Precompiled binaries of this release can be installed using the command
pip install pyshtools==4.5
Occassionally, critical updates may be made to the Python 2.7 code in the python2.7
branch of the GitHub project. Though Python 2.7 compatible binaries will not be distributed for any of these updates, these can be installed from souce using the command
pip install git+https://github.com/SHTOOLS/SHTOOLS.git@python2.7
No.
No.
If you are using the Fortran version of SHTOOLS, the output is typically in the form of an ASCII or binary raster file. These can be read by any standard graphics package, such as the free unix-based command line software GMT.
If you are using the Python version of SHTOOLS, the classes for working with spherical harmonic coefficients and grids contain methods for making publication quality graphics that make use of the matplotlib
and pygmt
packages.
This software package was created initially in 2004 by Mark Wieczorek and Matthias Meschede was responsible for the initial Python implementation of version 3. A list of all contributors can be found here.
SHTOOLS can be cited in two ways. First, one could cite the shtools paper that was published in Geochemistry, Geophysics, Geosystems (the reference is on the main web page). Secondly, one could cite a specific version of the code using the Zenodo DOI (digital object identifier) that is provided in the release notes.