HDULocation

class gammapy.data.HDULocation(obs_id, hdu_type, hdu_class, base_dir, file_dir, file_name, hdu_name)[source]

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 DataStoreObservation, usually those objects will be used to access data.

See also HDU index table.

Methods Summary

get_hdu(self)

Get HDU.

info(self[, file])

Print some summary info to stdout.

load(self)

Load HDU as appropriate class.

path(self[, abs_path])

Full filename path.

Methods Documentation

get_hdu(self)[source]

Get HDU.

info(self, file=None)[source]

Print some summary info to stdout.

load(self)[source]

Load HDU as appropriate class.

TODO: this should probably go via an extensible registry.

path(self, abs_path=True)[source]

Full filename path.

Include base_dir if abs_path is True.