create_aeff2d_hdu
- pyirf.io.create_aeff2d_hdu(effective_area, true_energy_bins, fov_offset_bins, extname='EFFECTIVE AREA', point_like=True, **header_cards)[source]
Create a fits binary table HDU in GADF format for effective area. See the specification at https://gamma-astro-data-formats.readthedocs.io/en/latest/irfs/full_enclosure/aeff/index.html
- Parameters:
- effective_area: astropy.units.Quantity[area]
Effective area array, must have shape (n_energy_bins, n_fov_offset_bins)
- true_energy_bins: astropy.units.Quantity[energy]
Bin edges in true energy
- fov_offset_bins: astropy.units.Quantity[angle]
Bin edges in the field of view offset. For Point-Like IRFs, only giving a single bin is appropriate.
- point_like: bool
If the provided effective area was calculated after applying a direction cut, pass
True
, elseFalse
for a full-enclosure effective area.- extname: str
Name for BinTableHDU
- **header_cards
Additional metadata to add to the header, use this to set e.g. TELESCOP or INSTRUME.