Skip to main content

interpolate angular power spectra

Project description

interpcl

interpolate angular power spectra

A very small package that does interpolation of angular power spectra for random fields on the sphere.

Install with pip:

pip install interpcl

Then import into your code:

from interpcl import interpcl

Functionality is absolutely minimal at this point. Please open an issue on GitHub if you want to see added functionality.

Documentation

def interpcl(lout, l, cl, llin=10, left=0, right=0):
    r'''interpolate angular power spectrum

    Interpolate an angular power spectrum :math:`C(l)` using linear-linear
    interpolation for :math:`l \le l_{\rm lin}` and log-log interpolation for
    :math:`l > l_{\rm lin}`.

    Parameters
    ----------
    lout : int or array_like
        The output mode numbers. If an integer is given, the interpolation is
        done over the integer array ``0, 1, ..., lout``.
    l, cl : array_like
        Input angular power spectrum. Must be one-dimensional arrays.
    llin : int, optional
        Threshold for linear-linear or log-log interpolation. Default is ``10``.
    left, right : float, optional
        Fill value for l that are smaller or larger than the input range.
        Default is ``0``.

    Returns
    -------
    clout: array_like
        Interpolated angular power spectrum of the same shape as ``lout`` if
        ``lout`` is an array, or of length ``lout+1`` if ``lout`` is an integer.

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

interpcl-2021.3.10.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file interpcl-2021.3.10.tar.gz.

File metadata

  • Download URL: interpcl-2021.3.10.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for interpcl-2021.3.10.tar.gz
Algorithm Hash digest
SHA256 535b54c2b1b4b098eb803d35ddd8e1c8d73a6db1a348a7beabb8aaa345fb6660
MD5 0990d53f659aa0ba9a16d963f5320e60
BLAKE2b-256 bf39acdbe721b855212e2183c98c35ad4d00dd28e154f2378767ce0119533423

See more details on using hashes here.

Supported by

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