Metadata-Version: 2.1
Name: zodipy
Version: 0.1.0
Summary: Zodipy is a python tool that simulates the instantaneous Zodiacal emission as seen from an observer.
Home-page: https://github.com/MetinSa/zodipy
License: MIT
Author: Metin San
Author-email: metinisan@gmail.com
Requires-Python: >=3.8,<3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: astropy (>=4.3.1,<5.0.0)
Requires-Dist: astroquery (>=0.4.3,<0.5.0)
Requires-Dist: healpy (>=1.15.0,<2.0.0)
Requires-Dist: numpy (>=1.21.1,<2.0.0)
Requires-Dist: scipy (>=1.7.1,<2.0.0)
Description-Content-Type: text/markdown

# Zodipy

## Description
Zodipy is a python tool that simulates the instantaneous Zodiacal emission as seen from an observer.

## Usage
The following will produce a HEALPIX map at `NSIDE=128` of the simulated
emission as seen by the Planck satellite today
```python
import zodipy

zodi = zodipy.Zodi(observer='Planck')
emission = zodi.simulate(nside=256, freq=800)
```

The time of observation is defined as following
```python
import datetime

time = datetime(2010, 1, 1)
zodi = zodipy.Zodi(observer='L2', observation_time=time)
emission = zodi.simulate(nside=256, freq=800)
```

The simulated emission can be visualized using Healpy and matplotlib
```python
import healpy as hp
import matplotlib.pyplot as plt

hp.mollview(
    emission, 
    norm='hist', 
    unit='W/m^2 Hz sr', 
    title='Zodiacal Emission as seen from L2 (2010-01-01)', 
)
plt.show()
```
![plot](imgs/zodi.png)
