HDULocation#

class gammapy.utils.fits.HDULocation(hdu_class, base_dir='.', file_dir=None, file_name=None, hdu_name=None, cache=True, format=None)#

Bases: object

HDU localisation, loading and Gammapy object mapper.

This represents one row in HDUIndexTable.

It’s more a helper class, that is wrapped by Observation, usually those objects will be used to access data.

See also HDU index table.

Methods Summary

get_hdu()

Get HDU.

info([file])

Print some summary information to stdout.

load()

Load HDU as appropriate class.

path([abs_path])

Full filename path.

Methods Documentation

get_hdu()#

Get HDU.

info(file=None)#

Print some summary information to stdout.

load()#

Load HDU as appropriate class.

path(abs_path=True)#

Full filename path.

Include base_dir if abs_path is True.