SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Was ist angesagt?

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
 

Was ist angesagt? (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von John ZuHone

Mehr von 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...
 

Kürzlich hochgeladen

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Kürzlich hochgeladen (20)

Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
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
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
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)
 
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
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
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
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
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...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.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
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.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