SCETBase#

class stixcore.time.datetime.SCETBase(*args, **kwargs)[source]#

Bases: ShapedLikeNDArray

Base time class from which SCETime and SCETimeDelta inherit.

Attributes Summary

shape

The shape of the underlying data.

Methods Summary

argmax([axis, out])

Return indices of the maximum values along the given axis

argmin([axis, out])

Return indices of the minimum values along the given axis

as_bintime()

Return a uint64 representation of the SCET and time e.g. coarse << 16 + fine.

as_float()

Return a float representation of the SCET and time e.g. coarse+fine*(1/MAX_FINE).

get_scedays(*[, timestamp])

max([axis, out, keepdims])

Return the maximum time or maximum time along an axis

min([axis, out, keepdims])

Return the minimum of time or minimum time along an axis

Attributes Documentation

shape#

Methods Documentation

argmax(axis=None, out=None)[source]#

Return indices of the maximum values along the given axis

Parameters:
  • axis

  • out

argmin(axis=None, out=None)[source]#

Return indices of the minimum values along the given axis

Parameters:
  • axis

  • out

as_bintime()[source]#

Return a uint64 representation of the SCET and time e.g. coarse << 16 + fine

as_float()[source]#

Return a float representation of the SCET and time e.g. coarse+fine*(1/MAX_FINE)

get_scedays(*, timestamp=False)[source]#
max(axis=None, out=None, keepdims=False)[source]#

Return the maximum time or maximum time along an axis

Parameters:
  • axis

  • out

  • keepdims (boolean) – Keep the dimension of the original array

min(axis=None, out=None, keepdims=False)[source]#

Return the minimum of time or minimum time along an axis

Parameters:
  • axis

  • out

  • keepdims (boolean) – Keep the dimension of the original array