SlideShare a Scribd company logo
Simulating X-ray
Observations with yt
John ZuHone	

NASA/Goddard Space Flight Center
yt is a Python-based platform for analysis and
visualization of astrophysical simulation data

Turk et al. 2011, ApJS, 192, 9	

Turk & Smith 2011, arXiv:1112.4482
!

yt is designed to address physical, 	

not computational, 	

questions
“What is the average mass weighted temperature of the gas within a sphere of
radius 100 kpc, centered at the maximum gas density? Oh, and I want it in keV.”	

from yt.mods import *	

from yt.utilities.physical_constants import kboltz	

!

ds = load("IsolatedGalaxy/galaxy0030/galaxy0030") 	

!

sp = ds.h.sphere("max", (100, “kpc”))	

!

T = sp.quantities[“WeightedAverageQuantity”](“temperature”, “cell_mass”)	

!

print (kboltz*T).in_units(“keV”)
Fully-Supported

Enzo	

FLASH	

Nyx	

Orion	

In-Memory

MostlySupported

In Progress

Athena	

ART	

Ramses

Gadget	

Hydra	

Cactus	

PDKGRAV	

FITS Images
Formation of a Galaxy Cluster: Sam Skillman
Bolatto et al. 2013, Nature, 499, 450
Method: PHOX
• Method developed by Veronica Biffi, Klaus
Dolag (http://www.mpa-garching.mpg.de/
~kdolag/Phox/)	


• Biffi,V., Dolag, K., Bohringer, H., & Lemson, G.
2012, MNRAS, 420, 3545	


• Biffi,V., Dolag, K., Bohringer, H. 2013, MNRAS,
428, 1395
Three Steps:
1. Generate a very large number of photons
from an appropriate spectral model for each
cell	

2. Project photons along a chosen line of sight,
Doppler and cosmologically shift their
energies. Apply galactic absorption. 	

3. Convolve photons with instrument models.
Step 1
• First, we define a spectral model.	

• There are interfaces within the code to use:	

• PyXspec (https://heasarc.gsfc.nasa.gov/
xanadu/xspec/python/html/)	


• AtomDB (http://www.atomdb.org)	


• There is flexibility to include other model
sources
Step 1
• In the first step we generate a lot of photons, many

more than would be in a typical observation (at least
~10x more)	


• To make this precise, we specify a very large collecting

area and a very long exposure time, along with a source
distance	


• These photons become a Monte-Carlo sample which
will be used to make the actual observation	


• Typically, we will store them to disk, also saving the

positions and velocities of the gas they originated from
Three Steps:
1. Generate a very large number of photons
from an appropriate spectral model for each
cell	

2. Project photons along a chosen line of sight,
Doppler and cosmologically shift their
energies. Apply galactic absorption. Correct
for exposure time and effective area.	

3. Convolve photons with instrument models.
Step 2
• Using the saved positions, energies, and velocities,
we can project them along a line of sight, and use
the gas velocities to Doppler-shift them.	


• We also apply cosmological redshift for distant
sources, and galactic foreground absorption
(tbabs, wabs, etc.)	


• Here is where we use the actual effective area

(constant or from an ARF) and exposure time of
the desired observation
Three Steps:
1. Generate a very large number of photons
from an appropriate spectral model for each
cell 	

2. Project photons along a chosen line of sight,
Doppler and cosmologically shift their
energies. Apply galactic absorption. Correct
for exposure time and effective area.	

3. Convolve photons with instrument models.
Step 3
• The photon simulator module provides a

way to simply convolve with a ARF/RMF
pair, to get a quick-and-dirty observation	


• If you want to accurately simulate a

particular detector, you can export the
generated events to files that can be read in
by instrument simulators
Step 3
• SIMX: http://hea-www.harvard.edu/simx/	

• Not a full raytrace, but a predefined set of

PSFs, vignetting information, and instrumental
responses and outputs to make the simulation.	


• yt exports SIMPUT files of (x,y,E) that can be
read in by SIMX	


• http://hea-www.harvard.edu/heasarc/formats/
simput-1.1.0.pdf
Advantages
• Most expensive step (generating the

photons) happens in 3D, and only needs to
be done (in most cases) ONCE.	


• Different projections, different exposure

times, different instruments simulated from
the same set of photons (computationally
cheaper)	


• It runs in parallel using MPI
A Couple of Examples
Sloshing Cluster Core
Athena MHD dataset, T ~ 2.5 keV

Density

Temperature
Sloshing Cluster Core
SXI 100 ks exposure, z = 0.01 	

(reblocked by 4x)

1
0.1
0.01

normalized counts/s/keV

10

SXS spectrum

0.5

1

2

E (keV)

5
Sloshing Cluster Core
AGN-Blown Bubbles
Dataset created
from scratch “in
memory”:	

4 keV β-model 	

cluster with bubbles
AGN-Blown Bubbles
SXI	

100 ks exposure	

z = 0.02	

(reblocked by 4x)
To Get yt
• http://yt-project.org/#getyt	

• I recommend using the install script:	

1. wget http://hg.yt-project.org/yt/raw/yt/
doc/install_script.sh	
2. bash install_script.sh	
3. source YT_DEST/bin/activate
To Get Help
Email Me:	

jzuhone@milkyway.gsfc.nasa.gov	

!

Photon Simulator Documentation:	

http://yt-project.org/doc/analyzing/analysis_modules/
photon_simulator.html	

!

Website:	

http://yt-project.org	

!

Mailing List (yt-users):	

http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

More Related Content

What's hot

Solar resource measurements and sattelite data
Solar resource measurements and sattelite dataSolar resource measurements and sattelite data
Solar resource measurements and sattelite data
SolarReference
 
Combining remote sensing earth observations and in situ networks: detection o...
Combining remote sensing earth observations and in situ networks: detection o...Combining remote sensing earth observations and in situ networks: detection o...
Combining remote sensing earth observations and in situ networks: detection o...
Integrated Carbon Observation System (ICOS)
 
Determining the causes and rates of PV degradation using the Loss Factors Mod...
Determining the causes and rates of PV degradation using the Loss Factors Mod...Determining the causes and rates of PV degradation using the Loss Factors Mod...
Determining the causes and rates of PV degradation using the Loss Factors Mod...
Sandia National Laboratories: Energy & Climate: Renewables
 
Hyperspectral Imaging
Hyperspectral ImagingHyperspectral Imaging
Hyperspectral Imaging
Parikshith Beenaveni
 
uni bielefeld EXCEL poster (2015_12_30 00_29_11 UTC)
uni bielefeld EXCEL poster (2015_12_30 00_29_11 UTC)uni bielefeld EXCEL poster (2015_12_30 00_29_11 UTC)
uni bielefeld EXCEL poster (2015_12_30 00_29_11 UTC)Sarah Henderson
 
LCLV front end optics
LCLV front end opticsLCLV front end optics
LCLV front end opticsAmar .
 
Detector Simulation for HEP
Detector Simulation for HEPDetector Simulation for HEP
Detector Simulation for HEP
Yuan CHAO
 
Signal proccessing(wavelet) on radio telescopic images
Signal proccessing(wavelet) on radio telescopic imagesSignal proccessing(wavelet) on radio telescopic images
Signal proccessing(wavelet) on radio telescopic images
shantanu Chutiya begger
 
Thermal remote sensing BY Hariom Ahlawat
Thermal remote sensing BY Hariom AhlawatThermal remote sensing BY Hariom Ahlawat
Thermal remote sensing BY Hariom Ahlawat
Hariom Ahlawat
 
636908main paul presentation
636908main paul presentation636908main paul presentation
636908main paul presentationClifford Stone
 
Tsyl Zaragoza Maths Fire Jun 2009
Tsyl Zaragoza Maths Fire Jun 2009Tsyl Zaragoza Maths Fire Jun 2009
Tsyl Zaragoza Maths Fire Jun 2009
Tecnosylva
 
Future Prospects on UHECR and UHE Photon
Future Prospects on UHECR and UHE PhotonFuture Prospects on UHECR and UHE Photon
Future Prospects on UHECR and UHE Photon
Toshihiro FUJII
 
20 bethke hammer_timeseries_of_spectrally_resolved_solar_irradiance_data_from...
20 bethke hammer_timeseries_of_spectrally_resolved_solar_irradiance_data_from...20 bethke hammer_timeseries_of_spectrally_resolved_solar_irradiance_data_from...
20 bethke hammer_timeseries_of_spectrally_resolved_solar_irradiance_data_from...
Sandia National Laboratories: Energy & Climate: Renewables
 
The FAST Project - Next Generation UHECR Observatory -
The FAST Project - Next Generation UHECR Observatory -The FAST Project - Next Generation UHECR Observatory -
The FAST Project - Next Generation UHECR Observatory -
Toshihiro FUJII
 
GoogleSky Status at Google
GoogleSky Status at GoogleGoogleSky Status at Google
GoogleSky Status at Google
Alberto Conti
 
Gold presentation lastri
Gold presentation lastriGold presentation lastri
Gold presentation lastri
grssieee
 
Exploring Sources of Uncertainties in Solar Resource Measurements
Exploring Sources of Uncertainties in Solar Resource MeasurementsExploring Sources of Uncertainties in Solar Resource Measurements
Exploring Sources of Uncertainties in Solar Resource Measurements
Sandia National Laboratories: Energy & Climate: Renewables
 
Thermal remote sensing and its applications
Thermal remote sensing and its applicationsThermal remote sensing and its applications
Thermal remote sensing and its applications
chandan00781
 
Orbit determination of a non transmitting satellite
Orbit determination of a non transmitting satelliteOrbit determination of a non transmitting satellite
Orbit determination of a non transmitting satelliteClifford Stone
 

What's hot (20)

Solar resource measurements and sattelite data
Solar resource measurements and sattelite dataSolar resource measurements and sattelite data
Solar resource measurements and sattelite data
 
Combining remote sensing earth observations and in situ networks: detection o...
Combining remote sensing earth observations and in situ networks: detection o...Combining remote sensing earth observations and in situ networks: detection o...
Combining remote sensing earth observations and in situ networks: detection o...
 
TOF
TOFTOF
TOF
 
Determining the causes and rates of PV degradation using the Loss Factors Mod...
Determining the causes and rates of PV degradation using the Loss Factors Mod...Determining the causes and rates of PV degradation using the Loss Factors Mod...
Determining the causes and rates of PV degradation using the Loss Factors Mod...
 
Hyperspectral Imaging
Hyperspectral ImagingHyperspectral Imaging
Hyperspectral Imaging
 
uni bielefeld EXCEL poster (2015_12_30 00_29_11 UTC)
uni bielefeld EXCEL poster (2015_12_30 00_29_11 UTC)uni bielefeld EXCEL poster (2015_12_30 00_29_11 UTC)
uni bielefeld EXCEL poster (2015_12_30 00_29_11 UTC)
 
LCLV front end optics
LCLV front end opticsLCLV front end optics
LCLV front end optics
 
Detector Simulation for HEP
Detector Simulation for HEPDetector Simulation for HEP
Detector Simulation for HEP
 
Signal proccessing(wavelet) on radio telescopic images
Signal proccessing(wavelet) on radio telescopic imagesSignal proccessing(wavelet) on radio telescopic images
Signal proccessing(wavelet) on radio telescopic images
 
Thermal remote sensing BY Hariom Ahlawat
Thermal remote sensing BY Hariom AhlawatThermal remote sensing BY Hariom Ahlawat
Thermal remote sensing BY Hariom Ahlawat
 
636908main paul presentation
636908main paul presentation636908main paul presentation
636908main paul presentation
 
Tsyl Zaragoza Maths Fire Jun 2009
Tsyl Zaragoza Maths Fire Jun 2009Tsyl Zaragoza Maths Fire Jun 2009
Tsyl Zaragoza Maths Fire Jun 2009
 
Future Prospects on UHECR and UHE Photon
Future Prospects on UHECR and UHE PhotonFuture Prospects on UHECR and UHE Photon
Future Prospects on UHECR and UHE Photon
 
20 bethke hammer_timeseries_of_spectrally_resolved_solar_irradiance_data_from...
20 bethke hammer_timeseries_of_spectrally_resolved_solar_irradiance_data_from...20 bethke hammer_timeseries_of_spectrally_resolved_solar_irradiance_data_from...
20 bethke hammer_timeseries_of_spectrally_resolved_solar_irradiance_data_from...
 
The FAST Project - Next Generation UHECR Observatory -
The FAST Project - Next Generation UHECR Observatory -The FAST Project - Next Generation UHECR Observatory -
The FAST Project - Next Generation UHECR Observatory -
 
GoogleSky Status at Google
GoogleSky Status at GoogleGoogleSky Status at Google
GoogleSky Status at Google
 
Gold presentation lastri
Gold presentation lastriGold presentation lastri
Gold presentation lastri
 
Exploring Sources of Uncertainties in Solar Resource Measurements
Exploring Sources of Uncertainties in Solar Resource MeasurementsExploring Sources of Uncertainties in Solar Resource Measurements
Exploring Sources of Uncertainties in Solar Resource Measurements
 
Thermal remote sensing and its applications
Thermal remote sensing and its applicationsThermal remote sensing and its applications
Thermal remote sensing and its applications
 
Orbit determination of a non transmitting satellite
Orbit determination of a non transmitting satelliteOrbit determination of a non transmitting satellite
Orbit determination of a non transmitting satellite
 

Similar to Simulating X-ray Observations with yt

FAST実験7:新型大気蛍光望遠鏡による極高エネルギー宇宙線観測報告
FAST実験7:新型大気蛍光望遠鏡による極高エネルギー宇宙線観測報告FAST実験7:新型大気蛍光望遠鏡による極高エネルギー宇宙線観測報告
FAST実験7:新型大気蛍光望遠鏡による極高エネルギー宇宙線観測報告
Toshihiro FUJII
 
120_SEM_Special_Topics.ppt
120_SEM_Special_Topics.ppt120_SEM_Special_Topics.ppt
120_SEM_Special_Topics.ppt
zaki194502
 
Ranbots
RanbotsRanbots
FAST実験6:新型大気蛍光望遠鏡による観測報告とピエールオージェ観測所への設置計画
FAST実験6:新型大気蛍光望遠鏡による観測報告とピエールオージェ観測所への設置計画FAST実験6:新型大気蛍光望遠鏡による観測報告とピエールオージェ観測所への設置計画
FAST実験6:新型大気蛍光望遠鏡による観測報告とピエールオージェ観測所への設置計画
Toshihiro FUJII
 
Pablo Estevez: "Computational Intelligence Applied to Time Series Analysis"
Pablo Estevez: "Computational Intelligence Applied to Time Series Analysis" Pablo Estevez: "Computational Intelligence Applied to Time Series Analysis"
Pablo Estevez: "Computational Intelligence Applied to Time Series Analysis" ieee_cis_cyprus
 
MIRAS: the instrument aboard SMOS
MIRAS: the instrument aboard SMOSMIRAS: the instrument aboard SMOS
MIRAS: the instrument aboard SMOS
adrianocamps
 
A coupled Electromagnetic-Mechanical analysis of next generation Radio Telesc...
A coupled Electromagnetic-Mechanical analysis of next generation Radio Telesc...A coupled Electromagnetic-Mechanical analysis of next generation Radio Telesc...
A coupled Electromagnetic-Mechanical analysis of next generation Radio Telesc...
Altair
 
Emission Line Objects in Integral Field Spectroscopic Datacubes
Emission Line Objects in Integral Field Spectroscopic DatacubesEmission Line Objects in Integral Field Spectroscopic Datacubes
Emission Line Objects in Integral Field Spectroscopic Datacubes
Edmund Christian Herenz
 
Interstellar explorerjun01
Interstellar explorerjun01Interstellar explorerjun01
Interstellar explorerjun01Clifford Stone
 
Towards Exascale Simulations of Stellar Explosions with FLASH
Towards Exascale  Simulations of Stellar  Explosions with FLASHTowards Exascale  Simulations of Stellar  Explosions with FLASH
Towards Exascale Simulations of Stellar Explosions with FLASH
Ganesan Narayanasamy
 
Volumetric Lighting for Many Lights in Lords of the Fallen
Volumetric Lighting for Many Lights in Lords of the FallenVolumetric Lighting for Many Lights in Lords of the Fallen
Volumetric Lighting for Many Lights in Lords of the Fallen
Benjamin Glatzel
 
Ill-posedness formulation of the emission source localization in the radio- d...
Ill-posedness formulation of the emission source localization in the radio- d...Ill-posedness formulation of the emission source localization in the radio- d...
Ill-posedness formulation of the emission source localization in the radio- d...
Ahmed Ammar Rebai PhD
 
The SpaceDrive Project - First Results on EMDrive and Mach-Effect Thrusters
The SpaceDrive Project - First Results on EMDrive and Mach-Effect ThrustersThe SpaceDrive Project - First Results on EMDrive and Mach-Effect Thrusters
The SpaceDrive Project - First Results on EMDrive and Mach-Effect Thrusters
Sérgio Sacani
 
637126main stysley presentation
637126main stysley presentation637126main stysley presentation
637126main stysley presentationClifford Stone
 
AROSAT_updated-spacesegment_presentation_NO_loghi
AROSAT_updated-spacesegment_presentation_NO_loghiAROSAT_updated-spacesegment_presentation_NO_loghi
AROSAT_updated-spacesegment_presentation_NO_loghiStefano Coltellacci
 

Similar to Simulating X-ray Observations with yt (20)

Remote Sensin
Remote SensinRemote Sensin
Remote Sensin
 
Acoustic_Imaging
Acoustic_ImagingAcoustic_Imaging
Acoustic_Imaging
 
FAST実験7:新型大気蛍光望遠鏡による極高エネルギー宇宙線観測報告
FAST実験7:新型大気蛍光望遠鏡による極高エネルギー宇宙線観測報告FAST実験7:新型大気蛍光望遠鏡による極高エネルギー宇宙線観測報告
FAST実験7:新型大気蛍光望遠鏡による極高エネルギー宇宙線観測報告
 
120_SEM_Special_Topics.ppt
120_SEM_Special_Topics.ppt120_SEM_Special_Topics.ppt
120_SEM_Special_Topics.ppt
 
Ranbots
RanbotsRanbots
Ranbots
 
FAST実験6:新型大気蛍光望遠鏡による観測報告とピエールオージェ観測所への設置計画
FAST実験6:新型大気蛍光望遠鏡による観測報告とピエールオージェ観測所への設置計画FAST実験6:新型大気蛍光望遠鏡による観測報告とピエールオージェ観測所への設置計画
FAST実験6:新型大気蛍光望遠鏡による観測報告とピエールオージェ観測所への設置計画
 
Pablo Estevez: "Computational Intelligence Applied to Time Series Analysis"
Pablo Estevez: "Computational Intelligence Applied to Time Series Analysis" Pablo Estevez: "Computational Intelligence Applied to Time Series Analysis"
Pablo Estevez: "Computational Intelligence Applied to Time Series Analysis"
 
MIRAS: the instrument aboard SMOS
MIRAS: the instrument aboard SMOSMIRAS: the instrument aboard SMOS
MIRAS: the instrument aboard SMOS
 
HS Demo
HS DemoHS Demo
HS Demo
 
ltu-cover6899158065669445093
ltu-cover6899158065669445093ltu-cover6899158065669445093
ltu-cover6899158065669445093
 
A coupled Electromagnetic-Mechanical analysis of next generation Radio Telesc...
A coupled Electromagnetic-Mechanical analysis of next generation Radio Telesc...A coupled Electromagnetic-Mechanical analysis of next generation Radio Telesc...
A coupled Electromagnetic-Mechanical analysis of next generation Radio Telesc...
 
Emission Line Objects in Integral Field Spectroscopic Datacubes
Emission Line Objects in Integral Field Spectroscopic DatacubesEmission Line Objects in Integral Field Spectroscopic Datacubes
Emission Line Objects in Integral Field Spectroscopic Datacubes
 
Interstellar explorerjun01
Interstellar explorerjun01Interstellar explorerjun01
Interstellar explorerjun01
 
Towards Exascale Simulations of Stellar Explosions with FLASH
Towards Exascale  Simulations of Stellar  Explosions with FLASHTowards Exascale  Simulations of Stellar  Explosions with FLASH
Towards Exascale Simulations of Stellar Explosions with FLASH
 
Volumetric Lighting for Many Lights in Lords of the Fallen
Volumetric Lighting for Many Lights in Lords of the FallenVolumetric Lighting for Many Lights in Lords of the Fallen
Volumetric Lighting for Many Lights in Lords of the Fallen
 
PanicO
PanicOPanicO
PanicO
 
Ill-posedness formulation of the emission source localization in the radio- d...
Ill-posedness formulation of the emission source localization in the radio- d...Ill-posedness formulation of the emission source localization in the radio- d...
Ill-posedness formulation of the emission source localization in the radio- d...
 
The SpaceDrive Project - First Results on EMDrive and Mach-Effect Thrusters
The SpaceDrive Project - First Results on EMDrive and Mach-Effect ThrustersThe SpaceDrive Project - First Results on EMDrive and Mach-Effect Thrusters
The SpaceDrive Project - First Results on EMDrive and Mach-Effect Thrusters
 
637126main stysley presentation
637126main stysley presentation637126main stysley presentation
637126main stysley presentation
 
AROSAT_updated-spacesegment_presentation_NO_loghi
AROSAT_updated-spacesegment_presentation_NO_loghiAROSAT_updated-spacesegment_presentation_NO_loghi
AROSAT_updated-spacesegment_presentation_NO_loghi
 

More from John ZuHone

Probing the Detailed Physics of Hot Baryons with Lynx: Predictions from Mock ...
Probing the Detailed Physics of Hot Baryons with Lynx: Predictions from Mock ...Probing the Detailed Physics of Hot Baryons with Lynx: Predictions from Mock ...
Probing the Detailed Physics of Hot Baryons with Lynx: Predictions from Mock ...
John ZuHone
 
Simulating Astro-H Observations of Galaxy Cluster Gas Motions: What We Can Ex...
Simulating Astro-H Observations of Galaxy Cluster Gas Motions: What We Can Ex...Simulating Astro-H Observations of Galaxy Cluster Gas Motions: What We Can Ex...
Simulating Astro-H Observations of Galaxy Cluster Gas Motions: What We Can Ex...
John ZuHone
 
Galaxy Cluster Gas Motions with X-ray Surveyor: Probing the Small Scales
Galaxy Cluster Gas Motions with X-ray Surveyor: Probing the Small ScalesGalaxy Cluster Gas Motions with X-ray Surveyor: Probing the Small Scales
Galaxy Cluster Gas Motions with X-ray Surveyor: Probing the Small Scales
John ZuHone
 
Bullets and Wine Glasses: The Exciting Encounters of Galaxy Clusters
Bullets and Wine Glasses: The Exciting Encounters of Galaxy ClustersBullets and Wine Glasses: The Exciting Encounters of Galaxy Clusters
Bullets and Wine Glasses: The Exciting Encounters of Galaxy Clusters
John ZuHone
 
Galaxy Cluster Gas Motions and Astro-H: Predictions and Challenges from Simul...
Galaxy Cluster Gas Motions and Astro-H: Predictions and Challenges from Simul...Galaxy Cluster Gas Motions and Astro-H: Predictions and Challenges from Simul...
Galaxy Cluster Gas Motions and Astro-H: Predictions and Challenges from Simul...
John ZuHone
 
Galaxy Cluster Gas Motions and Astro-H: Predictions and Challenges from Simul...
Galaxy Cluster Gas Motions and Astro-H: Predictions and Challenges from Simul...Galaxy Cluster Gas Motions and Astro-H: Predictions and Challenges from Simul...
Galaxy Cluster Gas Motions and Astro-H: Predictions and Challenges from Simul...
John ZuHone
 
Chandra, Cold Fronts, and ICM Physics: the Importance of Magnetic Fields
Chandra, Cold Fronts, and ICM Physics: the Importance of Magnetic FieldsChandra, Cold Fronts, and ICM Physics: the Importance of Magnetic Fields
Chandra, Cold Fronts, and ICM Physics: the Importance of Magnetic Fields
John ZuHone
 
The Physics of Gas Sloshing in Galaxy Clusters
The Physics of Gas Sloshing in Galaxy ClustersThe Physics of Gas Sloshing in Galaxy Clusters
The Physics of Gas Sloshing in Galaxy Clusters
John ZuHone
 
Gas Sloshing: Simulations and Observations
Gas Sloshing: Simulations and ObservationsGas Sloshing: Simulations and Observations
Gas Sloshing: Simulations and Observations
John ZuHone
 
The Physics of Gas Sloshing in Galaxy Clusters
The Physics of Gas Sloshing in Galaxy ClustersThe Physics of Gas Sloshing in Galaxy Clusters
The Physics of Gas Sloshing in Galaxy Clusters
John ZuHone
 
yt: An Analysis and Visualization System for Astrophysical Simulation Data
yt: An Analysis and Visualization System for Astrophysical Simulation Datayt: An Analysis and Visualization System for Astrophysical Simulation Data
yt: An Analysis and Visualization System for Astrophysical Simulation Data
John ZuHone
 
Applications of Advanced Numerical Simulations and Analysis in Theoretical As...
Applications of Advanced Numerical Simulations and Analysis in Theoretical As...Applications of Advanced Numerical Simulations and Analysis in Theoretical As...
Applications of Advanced Numerical Simulations and Analysis in Theoretical As...
John ZuHone
 

More from John ZuHone (12)

Probing the Detailed Physics of Hot Baryons with Lynx: Predictions from Mock ...
Probing the Detailed Physics of Hot Baryons with Lynx: Predictions from Mock ...Probing the Detailed Physics of Hot Baryons with Lynx: Predictions from Mock ...
Probing the Detailed Physics of Hot Baryons with Lynx: Predictions from Mock ...
 
Simulating Astro-H Observations of Galaxy Cluster Gas Motions: What We Can Ex...
Simulating Astro-H Observations of Galaxy Cluster Gas Motions: What We Can Ex...Simulating Astro-H Observations of Galaxy Cluster Gas Motions: What We Can Ex...
Simulating Astro-H Observations of Galaxy Cluster Gas Motions: What We Can Ex...
 
Galaxy Cluster Gas Motions with X-ray Surveyor: Probing the Small Scales
Galaxy Cluster Gas Motions with X-ray Surveyor: Probing the Small ScalesGalaxy Cluster Gas Motions with X-ray Surveyor: Probing the Small Scales
Galaxy Cluster Gas Motions with X-ray Surveyor: Probing the Small Scales
 
Bullets and Wine Glasses: The Exciting Encounters of Galaxy Clusters
Bullets and Wine Glasses: The Exciting Encounters of Galaxy ClustersBullets and Wine Glasses: The Exciting Encounters of Galaxy Clusters
Bullets and Wine Glasses: The Exciting Encounters of Galaxy Clusters
 
Galaxy Cluster Gas Motions and Astro-H: Predictions and Challenges from Simul...
Galaxy Cluster Gas Motions and Astro-H: Predictions and Challenges from Simul...Galaxy Cluster Gas Motions and Astro-H: Predictions and Challenges from Simul...
Galaxy Cluster Gas Motions and Astro-H: Predictions and Challenges from Simul...
 
Galaxy Cluster Gas Motions and Astro-H: Predictions and Challenges from Simul...
Galaxy Cluster Gas Motions and Astro-H: Predictions and Challenges from Simul...Galaxy Cluster Gas Motions and Astro-H: Predictions and Challenges from Simul...
Galaxy Cluster Gas Motions and Astro-H: Predictions and Challenges from Simul...
 
Chandra, Cold Fronts, and ICM Physics: the Importance of Magnetic Fields
Chandra, Cold Fronts, and ICM Physics: the Importance of Magnetic FieldsChandra, Cold Fronts, and ICM Physics: the Importance of Magnetic Fields
Chandra, Cold Fronts, and ICM Physics: the Importance of Magnetic Fields
 
The Physics of Gas Sloshing in Galaxy Clusters
The Physics of Gas Sloshing in Galaxy ClustersThe Physics of Gas Sloshing in Galaxy Clusters
The Physics of Gas Sloshing in Galaxy Clusters
 
Gas Sloshing: Simulations and Observations
Gas Sloshing: Simulations and ObservationsGas Sloshing: Simulations and Observations
Gas Sloshing: Simulations and Observations
 
The Physics of Gas Sloshing in Galaxy Clusters
The Physics of Gas Sloshing in Galaxy ClustersThe Physics of Gas Sloshing in Galaxy Clusters
The Physics of Gas Sloshing in Galaxy Clusters
 
yt: An Analysis and Visualization System for Astrophysical Simulation Data
yt: An Analysis and Visualization System for Astrophysical Simulation Datayt: An Analysis and Visualization System for Astrophysical Simulation Data
yt: An Analysis and Visualization System for Astrophysical Simulation Data
 
Applications of Advanced Numerical Simulations and Analysis in Theoretical As...
Applications of Advanced Numerical Simulations and Analysis in Theoretical As...Applications of Advanced Numerical Simulations and Analysis in Theoretical As...
Applications of Advanced Numerical Simulations and Analysis in Theoretical As...
 

Recently uploaded

Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 

Recently uploaded (20)

Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 

Simulating X-ray Observations with yt

  • 1. Simulating X-ray Observations with yt John ZuHone NASA/Goddard Space Flight Center
  • 2. yt is a Python-based platform for analysis and visualization of astrophysical simulation data Turk et al. 2011, ApJS, 192, 9 Turk & Smith 2011, arXiv:1112.4482
  • 3. ! yt is designed to address physical, not computational, questions
  • 4. “What is the average mass weighted temperature of the gas within a sphere of radius 100 kpc, centered at the maximum gas density? Oh, and I want it in keV.” from yt.mods import * from yt.utilities.physical_constants import kboltz ! ds = load("IsolatedGalaxy/galaxy0030/galaxy0030") ! sp = ds.h.sphere("max", (100, “kpc”)) ! T = sp.quantities[“WeightedAverageQuantity”](“temperature”, “cell_mass”) ! print (kboltz*T).in_units(“keV”)
  • 6. Formation of a Galaxy Cluster: Sam Skillman
  • 7. Bolatto et al. 2013, Nature, 499, 450
  • 8. Method: PHOX • Method developed by Veronica Biffi, Klaus Dolag (http://www.mpa-garching.mpg.de/ ~kdolag/Phox/) • Biffi,V., Dolag, K., Bohringer, H., & Lemson, G. 2012, MNRAS, 420, 3545 • Biffi,V., Dolag, K., Bohringer, H. 2013, MNRAS, 428, 1395
  • 9. Three Steps: 1. Generate a very large number of photons from an appropriate spectral model for each cell 2. Project photons along a chosen line of sight, Doppler and cosmologically shift their energies. Apply galactic absorption. 3. Convolve photons with instrument models.
  • 10. Step 1 • First, we define a spectral model. • There are interfaces within the code to use: • PyXspec (https://heasarc.gsfc.nasa.gov/ xanadu/xspec/python/html/) • AtomDB (http://www.atomdb.org) • There is flexibility to include other model sources
  • 11. Step 1 • In the first step we generate a lot of photons, many more than would be in a typical observation (at least ~10x more) • To make this precise, we specify a very large collecting area and a very long exposure time, along with a source distance • These photons become a Monte-Carlo sample which will be used to make the actual observation • Typically, we will store them to disk, also saving the positions and velocities of the gas they originated from
  • 12. Three Steps: 1. Generate a very large number of photons from an appropriate spectral model for each cell 2. Project photons along a chosen line of sight, Doppler and cosmologically shift their energies. Apply galactic absorption. Correct for exposure time and effective area. 3. Convolve photons with instrument models.
  • 13. Step 2 • Using the saved positions, energies, and velocities, we can project them along a line of sight, and use the gas velocities to Doppler-shift them. • We also apply cosmological redshift for distant sources, and galactic foreground absorption (tbabs, wabs, etc.) • Here is where we use the actual effective area (constant or from an ARF) and exposure time of the desired observation
  • 14. Three Steps: 1. Generate a very large number of photons from an appropriate spectral model for each cell 2. Project photons along a chosen line of sight, Doppler and cosmologically shift their energies. Apply galactic absorption. Correct for exposure time and effective area. 3. Convolve photons with instrument models.
  • 15. Step 3 • The photon simulator module provides a way to simply convolve with a ARF/RMF pair, to get a quick-and-dirty observation • If you want to accurately simulate a particular detector, you can export the generated events to files that can be read in by instrument simulators
  • 16. Step 3 • SIMX: http://hea-www.harvard.edu/simx/ • Not a full raytrace, but a predefined set of PSFs, vignetting information, and instrumental responses and outputs to make the simulation. • yt exports SIMPUT files of (x,y,E) that can be read in by SIMX • http://hea-www.harvard.edu/heasarc/formats/ simput-1.1.0.pdf
  • 17. Advantages • Most expensive step (generating the photons) happens in 3D, and only needs to be done (in most cases) ONCE. • Different projections, different exposure times, different instruments simulated from the same set of photons (computationally cheaper) • It runs in parallel using MPI
  • 18. A Couple of Examples
  • 19. Sloshing Cluster Core Athena MHD dataset, T ~ 2.5 keV Density Temperature
  • 20. Sloshing Cluster Core SXI 100 ks exposure, z = 0.01 (reblocked by 4x) 1 0.1 0.01 normalized counts/s/keV 10 SXS spectrum 0.5 1 2 E (keV) 5
  • 22. AGN-Blown Bubbles Dataset created from scratch “in memory”: 4 keV β-model cluster with bubbles
  • 23. AGN-Blown Bubbles SXI 100 ks exposure z = 0.02 (reblocked by 4x)
  • 24. To Get yt • http://yt-project.org/#getyt • I recommend using the install script: 1. wget http://hg.yt-project.org/yt/raw/yt/ doc/install_script.sh 2. bash install_script.sh 3. source YT_DEST/bin/activate
  • 25. To Get Help Email Me: jzuhone@milkyway.gsfc.nasa.gov ! Photon Simulator Documentation: http://yt-project.org/doc/analyzing/analysis_modules/ photon_simulator.html ! Website: http://yt-project.org ! Mailing List (yt-users): http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org