Commit a47829ee authored by Peters, Wouter's avatar Peters, Wouter
Browse files

changed names of output routines for sample info

parent e6696b16
......@@ -135,7 +135,7 @@ class CO2Observations(Observations):
logging.debug("Added %d simulated values to the Data list" % (len(ids) - len(missing_samples)))
def write_sample_info(self, obsinputfile):
def write_sample_coords(self, obsinputfile):
"""
Write the information needed by the observation operator to a file. Return the filename that was written for later use
......@@ -309,14 +309,14 @@ class CO2Observations(Observations):
self.site_info = site_info
def write_obs_to_file(self, outfile):
def write_sample_auxiliary(self, auxoutputfile):
"""
Write selected information contained in the Observations object to a file.
"""
f = io.CT_CDF(outfile, method='create')
logging.debug('Creating new Sample output file for postprocessing (%s)' % outfile)
f = io.CT_CDF(auxoutputfile, method='create')
logging.debug('Creating new auxiliary sample output file for postprocessing (%s)' % auxoutputfile)
dimid = f.add_dim('obs', len(self.datalist))
dim200char = f.add_dim('string_of200chars', 200)
......@@ -410,7 +410,7 @@ class CO2Observations(Observations):
f.close()
logging.debug("Successfully wrote data to Sample output file (%s)" % outfile)
logging.debug("Successfully wrote data to auxiliary sample output file (%s)" % auxoutputfile)
#return outfile
......
......@@ -147,7 +147,7 @@ class ObsPackObservations(Observations):
logging.debug("Added %d simulated values to the Data list" % (len(ids) - len(missing_samples)))
def write_sample_info(self, obsinputfile):
def write_sample_coords(self, obsinputfile):
"""
Write the information needed by the observation operator to a file. Return the filename that was written for later use
......@@ -331,14 +331,14 @@ class ObsPackObservations(Observations):
self.site_info = site_info
def write_obs_to_file(self, outfile):
def write_sample_auxiliary(self, auxoutputfile):
"""
Write selected information contained in the Observations object to a file.
"""
f = io.CT_CDF(outfile, method='create')
logging.debug('Creating new Sample output file for postprocessing (%s)' % outfile)
f = io.CT_CDF(auxoutputfile, method='create')
logging.debug('Creating new auxiliary sample output file for postprocessing (%s)' % auxoutputfile)
dimid = f.add_dim('obs', len(self.datalist))
dim200char = f.add_dim('string_of200chars', 200)
......@@ -420,7 +420,7 @@ class ObsPackObservations(Observations):
f.add_data(savedict)
f.close()
logging.debug("Successfully wrote data to Sample output file (%s)" % outfile)
logging.debug("Successfully wrote data to auxiliary sample output file (%s)" % auxoutputfile)
#return outfile
......
......@@ -142,7 +142,7 @@ class ObsPackObservations(Observations):
logging.debug("Added %d simulated values to the Data list" % (len(ids) - len(missing_samples)))
def write_sample_info(self, obsinputfile):
def write_sample_coords(self, obsinputfile):
"""
Write the information needed by the observation operator to a file. Return the filename that was written for later use
......@@ -352,14 +352,14 @@ class ObsPackObservations(Observations):
logging.debug("Added Model Data Mismatch to all samples ")
def write_obs_to_file(self, outfile):
def write_sample_auxiliary(self, auxoutputfile):
"""
Write selected information contained in the Observations object to a file.
"""
f = io.CT_CDF(outfile, method='create')
logging.debug('Creating new Sample output file for postprocessing (%s)' % outfile)
f = io.CT_CDF(auxoutputfile, method='create')
logging.debug('Creating new auxiliary sample output file for postprocessing (%s)' % auxoutputfile)
dimid = f.add_dim('obs', len(self.datalist))
dim200char = f.add_dim('string_of200chars', 200)
......@@ -447,7 +447,7 @@ class ObsPackObservations(Observations):
f.close()
logging.debug("Successfully wrote data to Sample output file (%s)" % outfile)
logging.debug("Successfully wrote data to auxiliary sample output file (%s)" % auxoutputfile)
#return outfile
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment