Python Spherical Harmonic Transform Module
Project description
pyspharm-syl
This is a derivative of pyspharm compiled with the help of intel oneAPI, built on pyspharm version 1.0.9.
How to install?
The pyspharm-syl
package can be installed using Python package installer pip.
pip install pyspharm-syl
Requires
- python >= 3.9
- Numpy >= 1.24.3 (for python 3.12, numpy >= 1.26.0)
- intel-fortran-rt
Platform Support
- win_amd64: python 3.9, 3.10, 3.11, 3.12.
- linux_x86_64: python 3.9, 3.10, 3.11, 3.12.
Build Method
Windows
Install Intel® HPC Toolkit and then open the Intel oneAPI command prompt for Intel 64 for Visual Studio 2022
in the start menu.
Open Anaconda or python in this terminal.
# open python env
python
# or open Anaconda
%windir%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy ByPass -NoExit -Command "& 'C:\Users\[USER NAME]\anaconda3\shell\condabin\conda-hook.ps1' ; conda activate 'C:\Users\[USER NAME]\anaconda3' "
Install the dependencies
pip install -r build_requirement_windows.txt
Create the wheel binary package
.\build_wheel_windows.ps1
Linux
Install Intel® HPC Toolkit and then activate Intel oneAPI environment
source /opt/intel/oneapi/setvars.sh
Open Anaconda or python in this terminal
# open python env
python
# or open Anaconda
__conda_setup="$('/home/[USER NAME]/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/[USER NAME]/anaconda3/etc/profile.d/conda.sh" ]; then
. "/home/[USER NAME]/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/home/[USER NAME]/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
Install the dependencies
pip install -r build_requirement_linux.txt
Tips: For build manylinux wheel, please use build_requirement_manylinux.txt
pip install -r build_requirement_manylinux.txt
- Required in manylinux image environment
Create the wheel binary package
.\build_wheel_linux.sh
# for manylinux, please run as follows:
.\build_wheel_manylinux.sh
Pyspharm description
Source: https://github.com/jswhit/pyspharm
Requires: Numpy (http://numeric.scipy.org), and a fortran compiler supported by numpy.f2py,
Please read LICENSE.spherepack
Installation:
python setup.py install
(to change default fortran compiler you can use e.g. python setup.py build config_fc --fcompiler=g95)
View documentation by pointing your browser to html/index.html.
Example programs are provided in the examples directory.
Copyright: (applies only to python binding, Spherepack fortran source code licensing is in LICENSE.spherepack)
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-- Jeff Whitaker Jeffrey.S.Whitaker@noaa.gov
Changelog
Version 1.2.0 (2024.3.25)
- Change build system from
numpy.distutils
to [meson-python](meson-python 0.16.0.dev0). - Change the default C compiler to
icx
, and the default Fortran compiler toifx
.
Version 1.0.9 (2023.11.19)
- Support direct installation of wheel without compilation for both the Windows and Linux platform.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file pyspharm_syl-1.2.0-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: pyspharm_syl-1.2.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 336.6 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dbcb928775695fb7626df767e715b8c2502cb0b9c3920c514e7d02a076eae52 |
|
MD5 | c2ac3bb08a3d4c82600d8f6625eed9bd |
|
BLAKE2b-256 | 1f48cc09085465ad40e21b83983d1e1c75f2fc2a6b49b90c66288d7cfbad7df9 |
File details
Details for the file pyspharm_syl-1.2.0-cp312-cp312-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: pyspharm_syl-1.2.0-cp312-cp312-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 9.7 MB
- Tags: CPython 3.12, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a579c14ac537d1144d98098fd057601f981f1d43b53ec88b34c8eb15b61bbf81 |
|
MD5 | 9fde1eb1a08a932fbc0804ef817dc8aa |
|
BLAKE2b-256 | 3f21a133bee94e1d9a930ab294276ce15aae6b49d1db07ca4d0e9d8023ed67cc |
File details
Details for the file pyspharm_syl-1.2.0-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: pyspharm_syl-1.2.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 336.1 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bba7a2a6e53270eba2428666e2a2dcbb7b8606e2abfc884668cf2deb5376638b |
|
MD5 | 90cff1a83669889c03f67bbd3c70a7d2 |
|
BLAKE2b-256 | 0b5bdbd3535d40fffe4292fc78b86a1504039ce0694440a171ee454df7ec1287 |
File details
Details for the file pyspharm_syl-1.2.0-cp311-cp311-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: pyspharm_syl-1.2.0-cp311-cp311-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 9.7 MB
- Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d77cdcc4de198e37529ae052eaa71583d6d0a2d00acb33ae78f26f836d3960c |
|
MD5 | db50dfb6460b7ae168a0f7f9e42e9d3c |
|
BLAKE2b-256 | 69c3d4c47a5c593c786e1d8d86c3be9d9ea5556cf79856e508ebd4a6bc930d89 |
File details
Details for the file pyspharm_syl-1.2.0-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: pyspharm_syl-1.2.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 336.1 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f83d8e65edd60f71a46f01c5f8f670f191fc9bd09edec9586a292f85d149028b |
|
MD5 | 4e5d1de3358120b7b5432c53c2b6897c |
|
BLAKE2b-256 | b431768bf30d7d2a760e5064ae0251edcb2c3c83a68efb021ab1a7be8b6c7f12 |
File details
Details for the file pyspharm_syl-1.2.0-cp310-cp310-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: pyspharm_syl-1.2.0-cp310-cp310-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 9.7 MB
- Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dde770b7acc1103f6415f6815b92e942cb2c10c41b6469d61068d4f4d5ba553c |
|
MD5 | bb3e3265b1cad78cfe6df62ee3807772 |
|
BLAKE2b-256 | 31cf18c0451241eced813c85433a01182342d4b87315464629aac70c83814ac6 |
File details
Details for the file pyspharm_syl-1.2.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: pyspharm_syl-1.2.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 336.1 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4bb02535dcd116c0fc1a3fe2421aab0d5ffbdf0c25a264bb5321f88a38cd45e |
|
MD5 | 7f14b2dbeba791def80dffee3b2eb31e |
|
BLAKE2b-256 | 69b1e840e9a5837f7d15e4c07d219e73139a1c68fb5bd4203bfc8ae292a7e070 |
File details
Details for the file pyspharm_syl-1.2.0-cp39-cp39-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: pyspharm_syl-1.2.0-cp39-cp39-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 9.7 MB
- Tags: CPython 3.9, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb91f4b2a4431ce1681251e774c9525f826740266f30eb9197ad5209ab21efd6 |
|
MD5 | cc2bc596820fcd72a522be0f0a994b9c |
|
BLAKE2b-256 | 3be6195cafa6708cb01896977c53af4b4f42f6d8e0aa2e990c54865c6eb0bab6 |