def output_merged_data(self, filename): ''' This function merges self.columnar_data and outputs the merged data. Parameters ---------- filename : string The filename to be output ''' #Merge data in case it has not been done self.merge_data() ff.output_form(self.merged_data, filename)
def output_columnar_data(self, filenames): ''' This function outputs the self.columnar_data Parameters ---------- filenames : list A list of filenames ''' assert len(filenames) == len(self.columnar_data), "Number of " + \ "filenames must be the same as the number of datasets" for i, name in enumerate(filenames): ff.output_form(self.columnar_data[i], name)
def output_dense_data(self, filenames): ''' This function prints the data within self.dense_data with the given filenames. If self.dense_data has not been filled, error is thrown. Parameters ---------- filenames : list A list of filenames to which the data will be saved ''' assert len(filenames) == len(self.dense_data), "Number of filenames\ must be the same as the number of datasets" for i, data in enumerate(self.dense_data): ff.output_form(data, filenames[i])
def output_transect_data(self, filenames): ''' This function prints the data within self.columnar_data with the given filenames. If self.columnar_data has not been filled, an error is thrown. Parameters ---------- filenames : list A list of filenames to which the data will be saved. Must be the same length as self.columnar_data ''' assert len(filenames) == len(self.transect_data), "Number of filenames\ must be the same as the number of datasets" for i, data in self.transect_data: ff.output_form(data, filenames[i])
def output_grid_data(self, filenames): """ This function prints the data within self.grid_data with the given filenames. Parameters ----------- filenames : list A list of filnames to which the data will be saved """ assert len(filenames) == len( self.grid_data ), "Number of filenames\ must be the same as the number of datasets" for i, data in enumerate(self.grid_data): ff.output_form(data, filenames[i])