Skip to main content

Zodipy is a python tool that simulates the Zodiacal emission.

Project description

PyPI version astropy

Zodipy

Description

Zodipy is a python tool that simulates the Zodiacal emission.

Installing

Zodipy is installed with pip.

pip install zodipy

Usage

The following examples are meant to provide an overview of how Zodipy may be used to produce simulations of the Zodiacal emission. A more in-depth documentation will be available in the near future.

Simulating the instantaneous emission from a single observation

The simplest use case of Zodipy is to simulate the instantaneous emission as seen from a major body or a location in the Solar system, as of today:

import zodipy

zodi = zodipy.Zodi()
emission = zodi.get_emission(nside=128, freq=800)

Calling the Zodi object with no arguments will by default set up the initial conditions of the simulation for an observer at L2 today. The get_emission method of the Zodi object, is then called to simulate and return the emission for a given nside and frequency.

We can visualize the above simulated emission using Healpy:

plot

Alternatively, a specific observer and specific epochs can be passed as arguments to the Zodi object. The epochs object must match one of the possible formats defined in astroquery's JPL Horizons api.

import zodipy

MJD = 59215  # 2010-01-01 in Modified Julian dates
zodi = zodipy.Zodi(observer='Planck', epochs=MJD)
emission = zodi.get_emission(nside=128, freq=800)

plot

To return the component-wise emission the keyword return_comps in the get_emission function may be set to True.

Simulating the pixel weighted average over multiple observations

By providing multiple dates in the epochs argument to Zodi, the get_emission function will return the emission averaged over all observations.

It is possible to provide hit maps for each respective observation given by epochs. This is done by passing a sequence of hit maps through the hit_counts argument in Zodi.

Below is an example where we simulate the pixel weighted average over daily observations over a year:

import zodipy

epochs = {
    'start': '2010-01-01', 
    'stop': '2011-01-01', 
    'step' : '1d'
}
hit_counts = ... # Your sequence of hit_counts for each observation in epochs 

zodi = zodipy.Zodi(observer='Planck', epochs=epochs, hit_counts=hit_counts)
emission = zodi.get_emission(nside=128, freq=800)

plot

This simulation closely resembles map making in the time-ordered domain, with the hit maps playing a significant role on the outputted emission due to the motion of Earth through the interplanetary dust.

The hit maps used in the above example was somewhat arbitrarily chosen (stripes of 10 degrees perpendicular to the ecliptic).

Interplanetary dust models

Zodipy uses the Kelsall et al. (1998) Interplanetary dust model. The line-of-sight integrals are computed using the definition in Planck 2013 results. XIV. Zodiacal emission. During the Planck analysis, three different sets of emissivities were fit to describe the emission. These can be selected by providing the keyword argument model to the Zodi object:

import zodipy

zodi = zodipy.Zodi(model='planck 2013')

The available models are 'planck 2013', 'planck 2015', and 'planck 2018'. The default is the 2018 model. Note that selecting the 2013 model will include the Circumsolar and Earth-trailing components, which were left out in the 2015 and 2018 Planck analyses.

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.1.8.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

zodipy-0.1.8-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zodipy-0.1.8.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.8.10 Darwin/20.6.0

File hashes

Hashes for zodipy-0.1.8.tar.gz
Algorithm Hash digest
SHA256 9236fa4bea10ad84a740e1ccf579f506953d4209e03aa393f2dcf5ccc55da72c
MD5 662620fed5e255c71de3547a4d46203c
BLAKE2b-256 70b7710f8f4ff96b080b6b1e733d4111a934a57739b009897e8ebff52ca1040d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: zodipy-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.8.10 Darwin/20.6.0

File hashes

Hashes for zodipy-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9fd485fe1f3df3df3c9894d9ae97c71a568995a914697aae172301ab0ad7913b
MD5 cd26aaeec79fe48eeea48259a6058a55
BLAKE2b-256 05f8215f134e16b0b4bb29052889d186157064447b2abcdcaa7ba87d49364f92

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