Exemplo n.º 1
0
    def save_data(self, output_file):
        """
        Save the UngriddedDataList to a file

        :param output_file: output filename
        :return:
        """
        logging.info('Saving data to %s' % output_file)
        # Should only write coordinates out once
        write_coordinates(self[0], output_file)
        for data in self:
            add_data_to_file(data, output_file)
Exemplo n.º 2
0
 def test_write_coords(self):
     from cis.data_io.write_netcdf import write_coordinates
     coords = self.product().create_coords([self.filename], self.valid_variable)
     write_coordinates(coords, test_file)
Exemplo n.º 3
0
 def test_write_coords(self):
     from cis.data_io.write_netcdf import write_coordinates
     coords = self.product().create_coords([self.filename],
                                           self.valid_variable)
     write_coordinates(coords, test_file)
Exemplo n.º 4
0
 def save_data(self, output_file):
     logging.info('Saving data to %s' % output_file)
     write_coordinates(self, output_file)
     add_data_to_file(self, output_file)
Exemplo n.º 5
0
 def save_data(self, output_file):
     output_file = utils.add_file_prefix('cis-', output_file)
     logging.info('Saving data to %s' % output_file)
     write_coordinates(self, output_file)
     add_data_to_file(self, output_file)