Skip to main content

Zodipy is a python tool that simulates the Zodiacal emission.

Project description

PyPI version Tests astropy


Zodipy is a Python tool for simulating the Interplanetary Dust Emission that a Solar System observer sees, either in the form of timestreams or binned HEALPIX maps.

plot

Usage

A full introduction to Zodipy and its use-cases can be found in the documentation.

Interplanetary Dust models: select between built in models.

from zodipy import Zodipy

model = Zodipy(model="DIRBE") # DIRBE
model = Zodipy(model="Planck18") # Planck 2018

Get emission from a point on the sky: choose a frequency/wavelength, an observer, a time of observation, and angular coordinates (co-latitude, longitude).

import astropy.units as u
from astropy.time import Time

model.get_emission(
    25*u.micron,
    obs="earth",
    obs_time=Time.now(),
    theta=10*u.deg,
    phi=40*u.deg,
)
>> <Quantity [16.65684599] MJy / sr>

Get emission from a sequence of angular coordinates: theta and phi can be a sequence of angles that can represent some time-ordered pointing.

theta = [10.1, 10.5, 11.1, 11.5] * u.deg # Longitude
phi = [40.2, 39.9, 39.8, 41.3] * u.deg # Latitude

model.get_emission(
    25*u.micron,
    obs="earth",
    obs_time=Time.now(),
    theta=theta,
    phi=phi,
    lonlat=True,
)
>> <Quantity [29.11106315, 29.33735654, 29.41248579, 28.30858417] MJy / sr>

Get emission from pixel indices on a HEALPIX grid: a sequence of pixel indicies along with an NSIDE parameter can be used.

model.get_emission(
    25*u.micron,
    obs="earth",
    obs_time=Time.now(),
    pixels=[24654, 12937, 26135],
    nside=128,
)
>> <Quantity [17.77385144, 19.7889428 , 22.44797121] MJy / sr>

Get binned emission component-wise: the emission can be binned to a HEALPIX map, and also returned component-wise.

import healpy as hp
import numpy as np

nside = 128

model.get_emission(
    25*u.micron,
    obs="earth",
    obs_time=Time.now(),
    pixels=np.arange(hp.nside2npix(nside)),
    nside=nside,
    binned=True,
    return_comps=True
).shape
>> (6, 196608)

Documentation

A detailed introduction along with a tutorial of how to use Zodipy will shortly be available in the documentation.

Installing

Zodipy is available on PyPI and can be installed with pip install zodipy (Python >= 3.8 required).

Scientific paper

  • San et al. (2022). Zodipy: software for simulating Interplanetary Dust Emission. Manuscript in preparation.

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

zodipy-0.5.2.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

zodipy-0.5.2-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file zodipy-0.5.2.tar.gz.

File metadata

  • Download URL: zodipy-0.5.2.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.10 Darwin/21.2.0

File hashes

Hashes for zodipy-0.5.2.tar.gz
Algorithm Hash digest
SHA256 49fdedef9e0860c5d6167c0070c74204dc82cba294e6947f6b1f7c5993024bbc
MD5 8285a52223f6d06e7f08b43f30b33719
BLAKE2b-256 2ca2aba6d8d70b391cd6a4cdb199e0931163b2cfc19e91c8430dd271a3eb10d9

See more details on using hashes here.

Provenance

File details

Details for the file zodipy-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: zodipy-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.10 Darwin/21.2.0

File hashes

Hashes for zodipy-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 30cbca19e36887d9e9243193ea74fb6f4c89321ead505d0596e356d25cab779b
MD5 494beb5802cc8dc676843284f8b0c5e5
BLAKE2b-256 1c6203626e7367769b0283d069ccbfdc5526120ae778e1e5b369a8771d331a5f

See more details on using hashes here.

Provenance

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