sph-interp
Smoothed particle hydrodynamics interpolation to a grid.
The core functionality of sph-interp is a set of interpolation functions derived from the Splash Fortran code rewritten in Python. It uses numba, a Python JIT compiler, for performance on par with the Fortran code.
For the original Splash source code, see https://github.com/danieljprice/splash.
Usage
Import sph-interp.
>>> import sphinterp as interp
Interpolate particles via projection.
>>> pixel_grid = interp.projection(x, y, z, h, weight, data, ...)
Install
Install from source.
git clone https://github.com/dmentipl/sph-interp
cd sph-interp
pip install -e .
Requirements
Python 3.6+ with numpy and numba.
License
sph-interp is licensed under GPL-2.0 following Splash. See LICENSE for details.
Citation
If you use sph-interp in a publication, please cite the Splash paper.
Price, D. J., 2007, PASA, 24, 159
To-do
- add license
- add tests
- modularise code
- add non-Cartesian interpolation
- add perspective rendering
- add opacity rendering
- add exact rendering
- add interpolate to 3D grid
- add missing docstrings
Metadata
Release files for sphinterp 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sphinterp-0.0.1.tar.gz | 15.3 kB | Without provenance | Details for sphinterp-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sphinterp-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for sphinterp-0.0.1-py3-none-any.whl |
Total release size: 32.9 kB
Release files / sphinterp-0.0.1.tar.gz
| Download URL | sphinterp-0.0.1.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c4155535d6dfa644b78a5860c580d0dd3ab4075377d3b3fc4d87359e70ee3fd
|
|
BLAKE2b-256 checksum How to use checksums |
15fcd59cc4cf9a760823608a360856b2d60ab9282e64ec89f59a35430edb6181
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1.post20200802 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8
|
Release files / sphinterp-0.0.1-py3-none-any.whl
| Download URL | sphinterp-0.0.1-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d79d570bccc949a9c87fb0ffae48668e7c68fbf3e41708316fe6a82ded599df0
|
|
BLAKE2b-256 checksum How to use checksums |
5e6c631549cc1d62dedf71cf6e9ccaa88050e5001dc3d642739c7af0689d8a2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1.post20200802 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8
|
Security for sphinterp 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.