coding decoding the cosmos
play

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


  1. Coding / Decoding the Cosmos: Python Applications in Astrophysics Chihway Chang (ETH Zürich)

  2. Disclaimer Disclaimer Disclaimer • This is not your typical computer-science talk. • You will probably not learn new fancy coding techniques here. • What you will learn is that you can do a massive amount of science with relatively simple Python . 2 Swiss Python Summit 2016-02-05

  3. From Astrophysics to Cosmology Stars & Planets Cosmology Galaxies 3 Swiss Python Summit 2016-02-05

  4. Computing for Typical Astronomers • Science computing can be quite different from that in industry Quick(-and-dirty) results, interactive ➡ Less rigorous testing and control ➡ Never know what to expect, moving targets and loose deadlines ➡ —> it’s like an experiment! 4 Swiss Python Summit 2016-02-05

  5. Computing for Typical Astronomers • Recent used languages in astrophysics C, C++, FORTRAN, perl, shell script, Mathematica, MATLAB, ROOT … ➡ IDL, python, and libraries/wrappers/interface to above ➡ • Common Python packages / interface in astro: SciPy, NumPy, matplotlib, astropy ➡ IPython / Jupyter ➡ 5 Swiss Python Summit 2016-02-05

  6. Computing for Typical Astronomers • Public python-related packages developed in our group HOPE: A Python Just-In-Time compiler for astrophysical computations /cosmo-ethz/hope CosmoHammer: Parallel MCMC for HPC clusters /cosmo-ethz/CosmoHammer ABCPMC: Parallel Approximate Bayesian Computation /jakeret/abcpmc PynPoint: Direct imaging of exo-planets http://pynpoint.ethz.ch 6 Swiss Python Summit 2016-02-05

  7. Two Examples • Mapping dark matter using millions of galaxy images Physical Review Letters 115 , 051301 (2015), arXiv: 1505.01871 - Phys.Rev.D 92 , 022006 (2015), arXiv: 1504.03002 - • Calibrating radio telescopes with drones Publications of the Astronomical Society of the Pacific 127 , 1131–1143, (2015), - arXiv:1505.05885 7 Swiss Python Summit 2016-02-05

  8. Mapping Dark Matter • We don’t know a whole lot about our Universe , because we cannot see most of the stuff in the Universe! 27% Dark Matter 5% Normal Matter (5000 years of human history) 68% Dark Energy (expansion of the Universe) 8 Swiss Python Summit 2016-02-05

  9. Gravitational Lensing source image We can see dark matter through Gravitational Lensing ! lens (mass) observer 9 Swiss Python Summit 2016-02-05

  10. The Computational Challenge • We want to measure accurately shapes of a lot of small, faint, noisy galaxies, and get useful information out of them. ~100,000,000 x 10 Swiss Python Summit 2016-02-05

  11. The Computational Challenge • We want to measure accurately shapes of a lot of small, faint, noisy galaxies, and get useful information out of them. /barbabytprowe/great3-public /GalSim-developers/GalSim 11 Swiss Python Summit 2016-02-05

  12. The Dark Energy Survey DES is an ongoing galaxy imaging survey and will cover 5000 sq. degrees over 5 years RA 0 -30 Dec 12 Swiss Python Summit 2016-02-05 -60

  13. The Dark Energy Survey • The data processing pipeline (partially Python) • “cataloging” • object detection • raw data • science analysis • masking artefacts • calibration • measure characteristics • stacking of each object (size, brightness, shape etc.) • classification 13 Swiss Python Summit 2016-02-05

  14. Mapping Dark Matter Convert galaxy shapes to mass: D ` = ` 2 1 � ` 2 2 + 2 i ` 1 ` 2 , | ` | 2 κ ` = D ⇤ ˆ � ` , ` ˆ Mass Galaxy shapes 14 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 15 Swiss Python Summit 2016-02-05

  16. Summary: Mapping Dark Matter Weak gravitational lensing is a tool we use to extract information about • Dark Matter , and the name of the game is measuring galaxy shapes . The lensing community uses a lot of inspirations from the computing and • statistics community . We used data from the Dark • Energy Survey to make Dark Matter maps. 16 Swiss Python Summit 2016-02-05

  17. Radio Telescope Calibration • The Bleien Observatory , operated by the ETH Cosmology group • Gränichen, Switzerland (50 min outside Zürich), in a farm… • 5m and 7m single-dish telescopes • Before doing science, we need to calibrate our telescope, i.e. understand how our instrument responses to the incoming signal. 17 Swiss Python Summit 2016-02-05

  18. The Drone Experiment drone plane of drone flight N track 17 75 m (24.5 º) E W 150 m 휽 horn track 32 dish track 1 track 16 S 2 m 18 Swiss Python Summit 2016-02-05

  19. The Drone Experiment Image credit: Koptershop Total weight: 10.9 kg (<2 kg load) Max. flight time: 13.5 min 19 Swiss Python Summit 2016-02-05

  20. The Computational Challenge • Interface between inhomogeneous and messy data, tools and people — communication and sharing results . • Spontaneous improvisation and exploration of data — you figure out things on the way. • Plotting is very important! • All of this means a lot of IPython notebooking … 20 Swiss Python Summit 2016-02-05

  21. Analysis 21 Swiss Python Summit 2016-02-05

  22. Results 2D maps of the telescope beam profile with very high S/N scipy.interpolate scipy.special scipy.optimize astropy.convolution seaborn 22 Swiss Python Summit 2016-02-05

  23. Summary: Radio Telescope Calibration • The easy interface and interactive nature of Python allows efficient data exploration and discussion in science. • In this example of calibrating our radio telescope, IPython notebook has been especially useful. • Drones are cool :) 23 Swiss Python Summit 2016-02-05

  24. Take-Home Message There is a lot of stuff lying between us and the vast cosmos , most of which can be solved using Python . 24 Swiss Python Summit 2016-02-05

  25. Cool People I Work with… The ETH Cosmology Group Other Dark Energy Survey Vinu Vikram (Argonne National Lab, USA) Collaborators Bhuvnesh Jain (University of Pennsylvania, USA) David Bacon (University of Portsmouth, UK) 25 Swiss Python Summit 2016-02-05

  26. Drone in Action 26

  27. Backup Slides 27 Swiss Python Summit 2016-02-05

  28. Gravitational Lensing Theory and observable: Z r 0 d r 0 r � r 0 ✓ , r 0 � � ψ ( ✓ , r ) = 2 rr 0 Φ Lensing potential α = ∇ ψ ; Deflection κ = 1 2 ∇ 2 ψ = 1 2 ( ψ , 11 + ψ , 22 ) ; Convergence Mass (what we care about) γ = γ 1 + i γ 2 = 1 � � ψ , 11 � ψ , 22 + i ψ , 12 Shear 2 Distortion (what we can measure) 28 Swiss Python Summit 2016-02-05

  29. Analysis Positioning: GPS + barometric altimeter N track 17 75 m (24.5 º) W E track 32 track 1 track 16 S 29 Swiss Python Summit 2016-02-05

  30. Radio Telescope Calibration • Now we want to make another map, this is a map of non-dark hydrogen, but not in the visible wavelength — we map in the radio wavelength (20~30 cm) . • Before doing that, we need to calibrate our telescope, i.e. understand how our instrument responses to the incoming signal. 30 Swiss Python Summit 2016-02-05

  31. The Computational Challenge • We want to measure accurately shapes of a lot of small, faint, noisy galaxies, and get useful information out of them. instrument lensing noise + atmosphere a galaxy observed in space ~100,000,000 x 31 Swiss Python Summit 2016-02-05

  32. The Computational Challenge • We want to measure accurately shapes of a lot of small, faint, noisy galaxies, and get useful information out of them. instrument lensing noise + atmosphere a galaxy observed this is where the dark in space matter information is — a 1% effect! ~100,000,000 x 32 Swiss Python Summit 2016-02-05

  33. Mapping Dark Matter Compare with distribution of visible mass. Galaxy clusters: the most massive gravitationally bound systems in the Universe 33 Swiss Python Summit 2016-02-05

  34. From Astrophysics to Cosmology Astrophysics is the branch of astronomy that employs the principles of • physics and chemistry "to ascertain the nature of the heavenly bodies, rather than their positions or motions in space.” — Wikipedia Cosmology is the study of the origin, evolution, and eventual fate of the • universe. — Wikipedia 34 Swiss Python Summit 2016-02-05

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend