nastro.types.GenericState#
- class nastro.types.GenericState(q1, q2, q3, q4, q5, q6, deg=False, wrap=False)#
Bases:
GenericBase 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:
asarrayTime series of state vectors as a (6, N) numpy array
- q1
- q2
- q3
- q4
- q5
- q6
scalarTrue for a single state vector
sizeNumber of state vectors in time series
- Parameters:
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)#
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
q1q2q3q4q5q6anglesasarrayTime series of state vectors as a (6, N) numpy array
propertiesscalarTrue for a single state vector
sizeNumber of state vectors in time series