TteHeaders

class gdt.missions.gifts.headers.TteHeaders[source]

Bases: TteCommonHeaders

FITS headers for continuous TTE files

Attributes Summary

filetype

num_headers

The number of headers

Methods Summary

copy()

Return a copy of the FileHeaders.

creator()

The Creator card

from_file_headers(input_headers)

Initialises a GIFTS headers set using a corresponding set of file (GBM/GIFTS) headers

from_headers(headers)

Create a FileHeaders object from a list of Headers.

keys()

A list of the extension names

update()

Update the 'FILETYPE' keywords to the instance type.

Attributes Documentation

filetype = 'GIFTS PHOTON LIST'
num_headers

The number of headers

Type:

(int)

Methods Documentation

copy()

Return a copy of the FileHeaders.

Returns:

(FileHeaders)

static creator()

The Creator card

classmethod from_file_headers(input_headers: FileHeaders) FileHeaders

Initialises a GIFTS headers set using a corresponding set of file (GBM/GIFTS) headers

classmethod from_headers(headers)

Create a FileHeaders object from a list of Headers. The header types and keyword types must match those in _header_templates or an exception is raised.

Parameters:

headers (list) – A list of Headers

Returns:

(FileHeaders)

keys()

A list of the extension names

Returns:

(list)

update()

Update the ‘FILETYPE’ keywords to the instance type.