GiftsBurstNumber

class gdt.missions.gifts.time.GiftsBurstNumber(val1, val2, scale, precision, in_subfmt, out_subfmt, from_jd=False)[source]

Bases: GbmBurstNumber

Represent date as GIFTS burst number.

For now, this reuses the Fermi-GBM burst number implementation.

Attributes Summary

in_subfmt

jd1

jd2

name

The name of the time format

out_subfmt

precision

scale

Time scale.

subfmts

value

Convert to string representation of GBM burst number

Methods Summary

fill_value(subfmt)

Return a value corresponding to J2000 (2000-01-01 12:00:00) in this format.

set_jds(val1, val2)

Convert burst number contained in val1 to jd1, jd2

to_value([parent, out_subfmt])

Convert to string representation of GBM burst number

Attributes Documentation

in_subfmt
jd1
jd2
name = 'gifts_bn'

The name of the time format

Type:

(str)

out_subfmt
precision
scale

Time scale.

subfmts = ()
value

Convert to string representation of GBM burst number

Methods Documentation

classmethod fill_value(subfmt)

Return a value corresponding to J2000 (2000-01-01 12:00:00) in this format.

This is used as a fill value for masked arrays to ensure that any ERFA operations on the masked array will not fail due to the masked value.

set_jds(val1, val2)

Convert burst number contained in val1 to jd1, jd2

to_value(parent=None, out_subfmt=None)

Convert to string representation of GBM burst number