PSF3D¶
-
class
gammapy.irf.PSF3D(energy_axis_true, offset_axis, rad_axis, psf_value, energy_thresh_lo=<Quantity 0.1 TeV>, energy_thresh_hi=<Quantity 100. TeV>, interp_kwargs=None)[source]¶ Bases:
objectPSF with axes: energy, offset, rad.
Data format specification: PSF_TABLE
- Parameters
Attributes Summary
Methods Summary
containment_radius(energy[, theta, …])Containment radius.
evaluate([energy, offset, rad])Interpolate PSF value at a given offset and energy.
from_table(table)peek([figsize])Quick-look summary plots.
plot_containment([fraction, ax, add_cbar])Plot containment image with energy and theta axes.
plot_containment_vs_energy([fractions, …])Plot containment fraction as a function of energy.
plot_psf_vs_rad([theta, energy])Plot PSF vs rad.
read(filename[, hdu])Create
PSF3Dfrom FITS file.to_energy_dependent_table_psf([theta, rad, …])Convert PSF3D in EnergyDependentTablePSF.
Convert PSF table data to FITS HDU list.
to_table_psf(energy[, theta])Create
TablePSFat one given energy.write(filename, *args, **kwargs)Write PSF to FITS file.
Attributes Documentation
-
energy_axis_true¶
-
offset_axis¶
-
rad_axis¶
-
tag= 'psf_table'¶
Methods Documentation
-
containment_radius(energy, theta='0 deg', fraction=0.68, interp_kwargs=None)[source]¶ Containment radius.
-
evaluate(energy=None, offset=None, rad=None)[source]¶ Interpolate PSF value at a given offset and energy.
-
plot_containment(fraction=0.68, ax=None, add_cbar=True, **kwargs)[source]¶ Plot containment image with energy and theta axes.
- Parameters
- fractionfloat
Containment fraction between 0 and 1.
- add_cbarbool
Add a colorbar
-
plot_containment_vs_energy(fractions=[0.68, 0.95], thetas=<Angle [0., 1.] deg>, ax=None, **kwargs)[source]¶ Plot containment fraction as a function of energy.
-
classmethod
read(filename, hdu='PSF_2D_TABLE')[source]¶ Create
PSF3Dfrom FITS file.- Parameters
- filenamestr
File name
- hdustr
HDU name
-
to_energy_dependent_table_psf(theta='0 deg', rad=None, exposure=None)[source]¶ Convert PSF3D in EnergyDependentTablePSF.
- Parameters
- Returns
- table_psf
EnergyDependentTablePSF Energy-dependent PSF
- table_psf
-
to_hdulist()[source]¶ Convert PSF table data to FITS HDU list.
- Returns
- hdu_list
HDUList PSF in HDU list format.
- hdu_list