Skip to main content

hpinterp

A faster (~100x) and more accurate interpolation algorithm for HEALPix maps by Prof. Jonathan Sievers. The code pre-interpolates the map data in advance, saving time at the evaluation stage.

Installation

pip install hpinterp

Example

import numpy as np
import healpy as hp

from hpinterp import InterpMap

map_ = hp.read_map("your_map.fits")

# Set nest=True if your map has nested ordering
interp_map = InterpMap(map_)

# Generating example coordinate grid of co-latitude and longitude in radians
npoints = int(1e5)
theta = np.random.rand(npoints) * np.pi
phi = np.random.rand(2 * npoints) * 2 * np.pi

# Get interpolated values. Set lonlat=True if using longitude and latitude in degrees
interp_result = interp_map(theta, phi)
# or
interp_result = interp_map.get_interp_val(theta, phi)

Metadata

Release files for hpinterp 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hpinterp 0.1.2
File Size Uploaded Provenance Actions
hpinterp-0.1.2.tar.gz 3.8 kB Without provenance Details for hpinterp-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hpinterp 0.1.2
File Interpreter ABI Platform Actions
hpinterp-0.1.2-py3-none-any.whl Python 3 none any Details for hpinterp-0.1.2-py3-none-any.whl

Total release size: 8.0 kB

Release files / hpinterp-0.1.2.tar.gz

Download URL hpinterp-0.1.2.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
37aa848e0c58e6868d21aaa4e3a17ec761a7c5bd55647de061343c7c8a1ca20e
BLAKE2b-256 checksum
How to use checksums
b01dac42ade70219fb54f1c819669dd43d9e9cd7cfe8c27c48c6500ca51422fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.6 Linux/5.19.0-32-generic

Release files / hpinterp-0.1.2-py3-none-any.whl

Download URL hpinterp-0.1.2-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8b8a0865e779934c1188d3c5b83359b0d7af9b087a46b68ae7ae206111e9fe5
BLAKE2b-256 checksum
How to use checksums
c110297e2c580bc56b97e0e4241fb60aac221eed034ce4383cba2a115b2c569a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.6 Linux/5.19.0-32-generic

Security for hpinterp 0.1.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page