Coding / Decoding the Cosmos:
Python Applications in Astrophysics
Chihway Chang (ETH Zürich)
Coding / Decoding the Cosmos: Python Applications in Astrophysics - - PowerPoint PPT Presentation
Coding / Decoding the Cosmos: Python Applications in Astrophysics Chihway Chang (ETH Zrich) Disclaimer Disclaimer Disclaimer This is not your typical computer-science talk. You will probably not learn new fancy coding techniques
Coding / Decoding the Cosmos:
Python Applications in Astrophysics
Chihway Chang (ETH Zürich)
Swiss Python Summit 2016-02-05
techniques here.
amount of science with relatively simple Python.
2
Disclaimer Disclaimer
Swiss Python Summit 2016-02-05 3
From Astrophysics to Cosmology
Cosmology
Stars & Planets Galaxies
Swiss Python Summit 2016-02-05
Computing for Typical Astronomers
➡
Quick(-and-dirty) results, interactive
➡
Less rigorous testing and control
➡
Never know what to expect, moving targets and loose deadlines
4
—> it’s like an experiment!
Swiss Python Summit 2016-02-05
Computing for Typical Astronomers
➡
C, C++, FORTRAN, perl, shell script, Mathematica, MATLAB, ROOT …
➡
IDL, python, and libraries/wrappers/interface to above
➡
SciPy, NumPy, matplotlib, astropy
➡
IPython / Jupyter
5
Swiss Python Summit 2016-02-05
6
Computing for Typical Astronomers
/cosmo-ethz/hope /cosmo-ethz/CosmoHammer /jakeret/abcpmc
HOPE: A Python Just-In-Time compiler for astrophysical computations CosmoHammer: Parallel MCMC for HPC clusters ABCPMC: Parallel Approximate Bayesian Computation PynPoint: Direct imaging of exo-planets
http://pynpoint.ethz.ch
Swiss Python Summit 2016-02-05
Two Examples
arXiv:1505.05885
7
Swiss Python Summit 2016-02-05
Mapping Dark Matter
see most of the stuff in the Universe!
8
68% Dark Energy
(expansion of the Universe)
5% Normal Matter
(5000 years of human history)
27% Dark Matter
Swiss Python Summit 2016-02-05
Gravitational Lensing
9
lens (mass) source image
We can see dark matter through Gravitational Lensing!
Swiss Python Summit 2016-02-05
galaxies, and get useful information out of them.
The Computational Challenge
10
~100,000,000 x
Swiss Python Summit 2016-02-05
galaxies, and get useful information out of them.
The Computational Challenge
11
/barbabytprowe/great3-public /GalSim-developers/GalSim
Swiss Python Summit 2016-02-05
The Dark Energy Survey
12
Dec RA
DES is an ongoing galaxy imaging survey and will cover 5000 sq. degrees
Swiss Python Summit 2016-02-05
The Dark Energy Survey
13
brightness, shape etc.)
Swiss Python Summit 2016-02-05 14
Mapping Dark Matter
ˆ κ` = D⇤
` ˆ
`, D` = `2
1 `2 2 +2i`1`2
|`|2 ,
Convert galaxy shapes to mass: Galaxy shapes Mass
Swiss Python Summit 2016-02-05 15
Mapping Dark Matter
Simulation is a crucial ingredient in cosmological analyses, since many of the analysis steps are heavily non- linear and couples with one another. scipy.ndimage scipy.fftpack scipy.signal astropy.io astropy.wcs numpy.random numpy.ma
Swiss Python Summit 2016-02-05
Dark Matter, and the name of the game is measuring galaxy shapes.
statistics community.
16
Summary: Mapping Dark Matter
Energy Survey to make Dark Matter maps.
Swiss Python Summit 2016-02-05
Radio Telescope Calibration
understand how our instrument responses to the incoming signal.
17
Swiss Python Summit 2016-02-05
The Drone Experiment
18
dish horn drone plane of drone flight
휽
150 m 2 m
N S W E
track 1 track 16 track 17 track 32 75 m (24.5 º)
Swiss Python Summit 2016-02-05 19
Total weight: 10.9 kg (<2 kg load)
Image credit: Koptershop
The Drone Experiment
Swiss Python Summit 2016-02-05
The Computational Challenge
people — communication and sharing results.
20
Swiss Python Summit 2016-02-05
Analysis
21
Swiss Python Summit 2016-02-05
Results
22
scipy.interpolate scipy.special scipy.optimize astropy.convolution seaborn 2D maps of the telescope beam profile with very high S/N
Swiss Python Summit 2016-02-05
Summary: Radio Telescope Calibration
23
efficient data exploration and discussion in science.
notebook has been especially useful.
Swiss Python Summit 2016-02-05
Take-Home Message
24
There is a lot of stuff lying between us and the vast cosmos, most
using Python.
Swiss Python Summit 2016-02-05
Cool People I Work with…
25
The ETH Cosmology Group Other Dark Energy Survey Collaborators Vinu Vikram (Argonne National Lab, USA) Bhuvnesh Jain (University of Pennsylvania, USA) David Bacon (University of Portsmouth, UK)
Drone in Action
26
Swiss Python Summit 2016-02-05
Backup Slides
27
Swiss Python Summit 2016-02-05
Gravitational Lensing
28
γ = γ1 +iγ2 = 1 2
Lensing potential Convergence Shear
ψ (✓,r) = 2
Z r
0 dr0 r r0
rr0 Φ
Deflection
α = ∇ψ;
κ = 1 2∇2ψ = 1 2 (ψ,11 +ψ,22);
Theory and observable: Distortion (what we can measure) Mass (what we care about)
Swiss Python Summit 2016-02-05
Analysis
29
N S W E
track 1 track 16 track 17 track 32 75 m (24.5 º)Positioning: GPS + barometric altimeter
Swiss Python Summit 2016-02-05
Radio Telescope Calibration
hydrogen, but not in the visible wavelength — we map in the radio wavelength (20~30 cm).
understand how our instrument responses to the incoming signal.
30
Swiss Python Summit 2016-02-05
galaxies, and get useful information out of them.
The Computational Challenge
31
~100,000,000 x
a galaxy in space
lensing instrument + atmosphere noise
Swiss Python Summit 2016-02-05
galaxies, and get useful information out of them.
The Computational Challenge
32
a galaxy in space
~100,000,000 x
lensing instrument + atmosphere noise
this is where the dark matter information is — a 1% effect!
Swiss Python Summit 2016-02-05 33
Mapping Dark Matter
Compare with distribution
Galaxy clusters: the most massive gravitationally bound systems in the Universe
Swiss Python Summit 2016-02-05
From Astrophysics to Cosmology
physics and chemistry "to ascertain the nature of the heavenly bodies, rather than their positions or motions in space.” — Wikipedia
34