satkit.time.time

AbsoluteDate extended class.

Classes

AbsoluteDateExt(*args, **kwargs)

Extends the Orekit AbsoluteDate class with added functionality.

class AbsoluteDateExt(*args, **kwargs)[source]

Extends the Orekit AbsoluteDate class with added functionality.

Extends the Orekit AbsoluteDate class with added functionality.

Input can be an AbsoluteDate, datetime or the usual AbsoluteDate initialisation options.

durationFrom(other)[source]

This is equivalent to self.durationFrom(otherDate). Output in seconds as a Quantity object.

Return type

Quantity

Parameters

other (type[org.orekit.time.AbsoluteDate]) –

getDate()[source]

Gets the date.

Return type

AbsoluteDateExt

isCloseTo(other_date, tolerance)[source]

Check if the instance time is close to another.

Return type

bool

Parameters
  • other_date (TimeStamped) – the instant to compare this date to

  • tolerance (float or Quantity) – the separation, in seconds, under which the two instants will be considered close to each other

Returns

true if the duration between the instance and the argument is strictly below the tolerance

Return type

bool

shiftedBy(dt)[source]

Get a time-shifted date.

Calling this method is equivalent to call new AbsoluteDateExt(this, dt).

Return type

AbsoluteDateExt

Parameters

dt (float or Quantity) – time shift in seconds

Returns

new_date – a new date, shifted with respect to instance (which is immutable)

Return type

AbsoluteDateExt