Note
Go to the end to download the full example code.
Telescope ARFs, RMFs, and SRMs
Throughout the modules in the codebase
there are a variety of functions with names starting wtih asset
.
These functions were created to mainly test the functions being written
but they might be useful to see and compare a lot of the response
elements.
One such example is an asset
function that generates a plot showing
all of FOXSI-4’s telescope ARFs, RMFs, and SRMs in one plot.
import response_tools.responses as responses
Some caveats come with these asset functions as many choices that the user can make are obviously chosen then hidden in the function but it might still be useful to see an idea of what these elements look like:
responses.asset_response_chain_plot()

WARNING:root:The `off_axis_angle` input for Position 0's optics (foxsi4_position0_optics) is not yet implemented.
WARNING:root:The `off_axis_angle` input for MSFC high-resolution optics (eff_area_msfc_hi_res) is not yet implemented.
WARNING:root:In foxsi4_telescope_spectral_response, the "telescope" fields from `arf_response` (foxsi4-telescope0) and `rmf_response` (foxsi4-telescope1) do not match.
An output shall be produced if possible (check the returned objects"telescope" field) but the user should be cautious.
WARNING:root:The `off_axis_angle` input for Position 1's optics (foxsi4_position1_optics) is not yet implemented.
WARNING:root:The `off_axis_angle` input for Nagoya high-resolution optics (eff_area_nagoya_sxt) is not yet implemented.
WARNING:root:The `off_axis_angle` input for Telescope 3's optics (foxsi4_telescope3_arf) is not yet implemented.
WARNING:root:The `off_axis_angle` input for Telescope 4's optics (foxsi4_telescope4_arf) is not yet implemented.
WARNING:root:The Telescope 6 Timepix detector response from foxsi4_telescope6_rmf does not yet exist.
WARNING:root:The Position 6 Timepix detector response from foxsi4_position6_detector_response does not yet exist.
WARNING:root:The `off_axis_angle` input for Position 3's optics (foxsi4_position6_optics) is not yet implemented.
WARNING:root:The `off_axis_angle` input for MSFC high-resolution optics (eff_area_msfc_hi_res) is not yet implemented.
Note these functions are not usually names the best since they were originally for testing purposes and so the names might change. Please utilize the auto-generated code documentation to keep up-to-date.
All figures produced using all of the asset
functions can be found
in the codebase. The assets
folder is on the same directory level
as the response-information
folder that can be found using the
Python package global variable: response_tools.responseFilePath
(more on the responseFilePath
global variable
here).
Total running time of the script: (0 minutes 4.605 seconds)