nastro.types.GenericState#

class nastro.types.GenericState(q1, q2, q3, q4, q5, q6, deg=False, wrap=False)#

Bases: Generic

Base class for state vectors

Implements operations and basic functionality that is common to all types of state vectors and implements the containers that are used internally to manipulate their components. The elements q1 to q6 are representations of the six components of a state vector as numpy arrays.

This class is not meant to be instantiated directly, but to be subclassed to create specific types of state vectors: cartesian, keplerian, etc.

Attributes:
asarray

Time series of state vectors as a (6, N) numpy array

q1
q2
q3
q4
q5
q6
scalar

True for a single state vector

size

Number of state vectors in time series

Parameters:
  • q1 (U) –

  • q2 (U) –

  • q3 (U) –

  • q4 (U) –

  • q5 (U) –

  • q6 (U) –

  • deg (bool) –

  • wrap (bool) –

Methods

append(other)

Add state vector to time series

copy()

Return copy of state vector

from_tudat(state_history[, limits])

Generate state vector from Tudat state history

load(path[, relative])

Load state vector from npy file

save(path[, relative])

Save state vector to file

transform()

Transform state to a different reference frame

__init__(q1, q2, q3, q4, q5, q6, deg=False, wrap=False)#
Parameters:
  • q1 (U) –

  • q2 (U) –

  • q3 (U) –

  • q4 (U) –

  • q5 (U) –

  • q6 (U) –

  • deg (bool) –

  • wrap (bool) –

Return type:

None

Methods

__init__(q1, q2, q3, q4, q5, q6[, deg, wrap])

append(other)

Add state vector to time series

copy()

Return copy of state vector

from_tudat(state_history[, limits])

Generate state vector from Tudat state history

load(path[, relative])

Load state vector from npy file

save(path[, relative])

Save state vector to file

transform()

Transform state to a different reference frame

Attributes

q1

q2

q3

q4

q5

q6

angles

asarray

Time series of state vectors as a (6, N) numpy array

properties

scalar

True for a single state vector

size

Number of state vectors in time series