Exemple #1
0
    def setup_parser(self):
        """Set up information needed for the parser

        Add necessary parameters to `self.meta`. This should be a dictionary with all parameters needed by
        np.genfromtxt to do the actual parsing.
        """
        util.not_implemented()
Exemple #2
0
    def _read_data(self):
        """Read data needed by this Celestial Reference Frame for calculating positions of sources

        Returns:
            Dict:  Dictionary containing data about each source defined in this celestial reference frame.
        """
        util.not_implemented()
Exemple #3
0
    def read_data(self):
        """Read data from the data file

        Data should be read from `self.file_path` and stored in the dictionary `self.data`. A description of the data
        may be placed in the dictionary `self.meta`. If data are not available for some reason, `self.data_available`
        shoulde be set to False.
        """
        util.not_implemented()
Exemple #4
0
    def setup_parser(self):
        """Set up information needed for the parser

        This should return a dictionary with all parameters needed by np.genfromtxt to do the actual parsing.

        Returns:
            Dict:  Parameters needed by np.genfromtxt to parse the input file.
        """
        util.not_implemented()
Exemple #5
0
    def _calculate_pos_crs(self, source):
        """Calculate CRS position of one source

        Args:
            source (String):  Key specifying which source to calculate position for, must be key in self.data.

        Returns:
            Array:  Positions, one 2-vector for each time epoch.
        """
        util.not_implemented()
Exemple #6
0
    def setup_parser(self):
        """Set up information needed for the parser

        Each individual Sinex-parser should at least implement this method.

        If the order the blocks are parsed is not important, the information should be returned as a set for optimal
        performance. If the parsing order is important, a tuple of SinexBlock-objects may be returned instead.

        Returns:
            Set of SinexBlock-objects:  Which blocks in the Sinex file that should be parsed.
        """
        util.not_implemented()
Exemple #7
0
    def update_dataset(self, dset):
        """Update the given dataset with the parsed data

        This is a basic implementation, assuming the `self.data`-dictionary has a simple structure. More advanced
        parsers may need to reimplement this method.

        Args:
            dset (Dataset):  The dataset to update with parsed data.
        """
        # parser_dset = self.as_dataset()
        # if new fields:
        #     dset.add ...
        # elif new epochs:
        #     dset.extend ...
        util.not_implemented()
Exemple #8
0
 def setup_parsers(self):
     util.not_implemented()
Exemple #9
0
 def write_to_dataset(self, data_out):
     util.not_implemented()
Exemple #10
0
 def _calculate(self, dset):
     """Calculate orbit data
     """
     util.not_implemented()
Exemple #11
0
 def _edit(self, dset_edit):
     """Edit raw data
     """
     util.not_implemented()
Exemple #12
0
 def _read(self, dset_raw):
     """Read raw data
     """
     util.not_implemented()