Skip to main content

chealpy is the Python binding of chealpix.

chealpix is the C implementation of HealPix.
HealPix linearizes spherical coordinate into integers.

You will need numpy > 1.6.

The installation is just
python setup.py install
or
easy_install chealpy

Refer to HealPix manual for usage.

Two precisions are provided:
chealpy.high :upto nside=1<<29
chealpy.low : upto nside=8192

functions under the namespace chealpy are imported from chealpy.high

MAX_NSIDES is the upper limit of nsides

wrappers are automatically generated Cython code, making use
of NpyIter API.

For a feature-rich Healpix C++ binding, take a look at healpy.

Author: Yu Feng 2012 <yfeng1@andrew.cmu.edu>

Description of Functions:

def ang2pix_ring (nside,theta,phi,ipix=None)
angle to pix
def ang2pix_nest (nside,theta,phi, ipix = None):
def pix2ang_ring (nside,ipix, theta = None,phi = None):
def pix2ang_nest (nside,ipix, theta = None,phi = None):
def vec2pix_ring (nside,vec, ipix = None):
def vec2pix_nest (nside,vec, ipix = None):
def pix2vec_ring (nside,ipix, vec = None):
def pix2vec_nest (nside,ipix, vec = None):
def nest2ring (nside,ipnest, ipring = None):
def ring2nest (nside,ipring, ipnest = None):
def npix2nside (npix, nside = None):
def nside2npix (nside, npix = None):
def ang2vec (theta,phi, vec = None):
def vec2ang (vec, theta = None,phi = None):

Metadata

Release files for chealpy 0.1.0

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

Source distribution (sdist)

Source distribution for chealpy 0.1.0
File Size Uploaded Provenance Actions
chealpy-0.1.0.tar.gz 71.6 kB Without provenance Details for chealpy-0.1.0.tar.gz

Release files / chealpy-0.1.0.tar.gz

Download URL chealpy-0.1.0.tar.gz
Size 71.6 kB
Tags Source
SHA-256 checksum
How to use checksums
098a1948055d0891eb26965b11c650f42af78b92cc5c98f503f00ee0266947b3
BLAKE2b-256 checksum
How to use checksums
944c95157fed9227d8aeb0d845cdabd12454cdff622cc4c5d043aaf31edc7ef0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for chealpy 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

0.1

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