SlideShare a Scribd company logo
1 of 25
Download to read offline
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 dataSolarReference
 
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)
 
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 HEPYuan 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 imagesshantanu Chutiya begger
 
Thermal remote sensing BY Hariom Ahlawat
Thermal remote sensing BY Hariom AhlawatThermal remote sensing BY Hariom Ahlawat
Thermal remote sensing BY Hariom AhlawatHariom 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 2009Tecnosylva
 
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 PhotonToshihiro FUJII
 
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 GoogleAlberto Conti
 
Gold presentation lastri
Gold presentation lastriGold presentation lastri
Gold presentation lastrigrssieee
 
Thermal remote sensing and its applications
Thermal remote sensing and its applicationsThermal remote sensing and its applications
Thermal remote sensing and its applicationschandan00781
 
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.pptzaki194502
 
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 SMOSadrianocamps
 
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 DatacubesEdmund 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 FLASHGanesan 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 FallenBenjamin 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 ThrustersSé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 ScalesJohn 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 ClustersJohn 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 FieldsJohn 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 ClustersJohn ZuHone
 
Gas Sloshing: Simulations and Observations
Gas Sloshing: Simulations and ObservationsGas Sloshing: Simulations and Observations
Gas Sloshing: Simulations and ObservationsJohn 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 ClustersJohn 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 DataJohn 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

How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 

Recently uploaded (20)

How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 

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