cosmogrb.response package

Submodules

cosmogrb.response.response module

class cosmogrb.response.response.Response(matrix, geometric_area, energy_edges, channel_edges=None, channel_starts_at=0)[source]

Bases: object

channel_edges
channels
convolve(t1, t2)[source]
digitize(photon_energies)[source]

digitze the photon into a energy bin via the energy dispersion

Parameters:photon_energy
Returns:(pha_channel, detected)
Return type:
effective_area_max
emax
emin
energy_edges
geometric_area
get_photon_bin(energy)[source]
matrix
set_function(integral_function=None)[source]

Set the function to be used for the convolution

Parameters:integral_function (callable) – a function f = f(e1,e2) which returns the integral of the model between e1 and e2
to_fits(filename, telescope_name='telescope', instrument_name='detector', overwrite=False)[source]

Write the current matrix into a OGIP FITS file :param filename : the name of the FITS file to be created :type filename : str :param telescope_name : a name for the telescope/experiment which this matrix applies to :param instrument_name : a name for the instrument which this matrix applies to :param overwrite: True or False, whether to overwrite or not the output file :return: None

Module contents

class cosmogrb.response.Response(matrix, geometric_area, energy_edges, channel_edges=None, channel_starts_at=0)[source]

Bases: object

channel_edges
channels
convolve(t1, t2)[source]
digitize(photon_energies)[source]

digitze the photon into a energy bin via the energy dispersion

Parameters:photon_energy
Returns:(pha_channel, detected)
Return type:
effective_area_max
emax
emin
energy_edges
geometric_area
get_photon_bin(energy)[source]
matrix
set_function(integral_function=None)[source]

Set the function to be used for the convolution

Parameters:integral_function (callable) – a function f = f(e1,e2) which returns the integral of the model between e1 and e2
to_fits(filename, telescope_name='telescope', instrument_name='detector', overwrite=False)[source]

Write the current matrix into a OGIP FITS file :param filename : the name of the FITS file to be created :type filename : str :param telescope_name : a name for the telescope/experiment which this matrix applies to :param instrument_name : a name for the instrument which this matrix applies to :param overwrite: True or False, whether to overwrite or not the output file :return: None