An open API service indexing awesome lists of open source software.

https://github.com/zonca/pandas-astro-example


https://github.com/zonca/pandas-astro-example

astrophysics binder binder-ready numpy pandas

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

Advanced Pandas topics with an example in Astrophysics
======================================================

[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/zonca/pandas-astro-example/master?filepath=astro_example.ipynb)

**Click on the `Launch Binder` icon** to execute the Notebook interactively in a session provided by [Binder](https://mybinder.org/).

In this example we will work with observations of the Cosmic Microwave Background from the [Planck satellite](https://en.wikipedia.org/wiki/Planck_(spacecraft)) using advanced functionalities of `pandas` and `numpy` and we will create plots with `matplotlib`.

In section 1 we will read a map created by the Planck satellite and we will familiarize with HDF5 format and working with hierarchical indexing in `pandas`. We will also visualize sky maps in `matplotlib` using a curvilinear projection.

In section 2 we will use `numpy` to create a simulation of how Planck scans the sky thoughout a year of observations and we will plot scanning rings in different reference frames. We will also create a interactive widget with `ipywidgets`.

In section 3 we will use the scanning coordinates created in section 2 to simulate an observation of the map used in setion 1. We will add white noise and then learn how to use `pandas` groupby with hierarchical index to aggregate the data into a sky map. We will finally compare the simulated noisy map with the original map and study its features.

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.