spectrum_from_simulation_config#

ctapipe.irf.spectrum_from_simulation_config(simulation_configuration_table: Table, shower_distribution_table: Table | None, obs_time: Quantity, method: str = 'powerlaw') → Callable[[Quantity], Quantity][source]#

Return simulated spectrum function from configuration information..

Note this currently implements only PowerLaw spectra, but in the future will returnq a

Parameters:
simulation_configuration_table: Table

table as read by TableLoader.read_simulation_configuration()

shower_distribution_table: Table

table of simulated shower distribution as read from TableLoader.read_shower_distribution()

obs_time: u.Quantity[‘s’]

Observation time in a unit convertible to seconds.

method: str

“powerlaw” (for assuming powerlaw distributions), or “histogram” to return an interpolation function from the underlying distribution histogram.

Returns:
Callable:

simulated spectrum function.