Skip to main content

Python Binding of chealpix

Project description


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):

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chealpy-0.1.0.tar.gz (71.6 kB view details)

Uploaded Source

File details

Details for the file chealpy-0.1.0.tar.gz.

File metadata

  • Download URL: chealpy-0.1.0.tar.gz
  • Upload date:
  • Size: 71.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for chealpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 098a1948055d0891eb26965b11c650f42af78b92cc5c98f503f00ee0266947b3
MD5 21dd2fdc2bc1d71a813db77131039c63
BLAKE2b-256 944c95157fed9227d8aeb0d845cdabd12454cdff622cc4c5d043aaf31edc7ef0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page