示例#1
0
    def __init__(self, name, num_obs, dataset):
        """Direction-init doc?

            dataset:    A reference to the master Dataset. This is needed to lookup _time_obj and _other_obj.
        """
        super().__init__(name, num_obs, dataset)

        # Add units for DirectionTable-properties (set by @Unit.register)
        self._prop_units = Unit.units_dict(__name__)
示例#2
0
    def __init__(self, name, num_obs, dataset):
        super().__init__(name, num_obs, dataset)

        # Add units for PosVelTable-properties (set by @Unit.register)
        self._prop_units.update(Unit.units_dict(__name__))

        # Add columns for velocity
        self._itrs = np.full((self.num_obs, 6), np.nan, dtype=float)
        self._gcrs = np.full((self.num_obs, 6), np.nan, dtype=float)
示例#3
0
    def __init__(self, name, num_obs, dataset):
        """Position-init doc?

            dataset:    A reference to the master Dataset. This is needed to lookup _time_obj and _other_obj.
        """
        super().__init__(name, num_obs, dataset)

        # Add units for PositionTable-properties (set by @Unit.register)
        self._prop_units = Unit.units_dict(__name__)

        # Organize data in attributes instead of a data-dict
        self._itrs = np.full((self.num_obs, 3), np.nan, dtype=float)
        self._gcrs = np.full((self.num_obs, 3), np.nan, dtype=float)
        self._time_obj = None
        self._other_obj = None
        self._dependent_on_me = list()