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

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 optics
Amar .
 
636908main paul presentation
636908main paul presentation636908main paul presentation
636908main paul presentation
Clifford Stone
 
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
Clifford 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

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
 
Interstellar explorerjun01
Interstellar explorerjun01Interstellar explorerjun01
Interstellar explorerjun01
Clifford Stone
 
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 presentation
Clifford Stone
 
AROSAT_updated-spacesegment_presentation_NO_loghi
AROSAT_updated-spacesegment_presentation_NO_loghiAROSAT_updated-spacesegment_presentation_NO_loghi
AROSAT_updated-spacesegment_presentation_NO_loghi
Stefano 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

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

Recently uploaded (20)

How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
How to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 InventoryHow to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 Inventory
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17
 
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPost Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
 
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
 
Essential Safety precautions during monsoon season
Essential Safety precautions during monsoon seasonEssential Safety precautions during monsoon season
Essential Safety precautions during monsoon season
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf
 
Behavioral-sciences-dr-mowadat rana (1).pdf
Behavioral-sciences-dr-mowadat rana (1).pdfBehavioral-sciences-dr-mowadat rana (1).pdf
Behavioral-sciences-dr-mowadat rana (1).pdf
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptx
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17
 
The Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptxThe Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptx
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 

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