Commit 9ba799c0 authored by Woude, Auke van der's avatar Woude, Auke van der
Browse files

removed superfluous function

parent 30894788
......@@ -537,19 +537,6 @@ class STILTObservationOperator(ObservationOperator):
delta_14CO2 = (Asn * np.exp(lambda_14CO2 * dt_obs) / Aabs -1) * 1000.# per mille
return delta_14CO2
def get_nc_variable(self, file, fluxname, dtype):
"""Helper function that gets the values from an nc file
Input:
file: str: filename of the nc file of which the value should be taken
fluxname: str: name of the variable in the file
Returns:
np.ndarray: the values in the nc file"""
data = nc.Dataset(file)
fluxmap = data[fluxname][:]
fluxmap = fluxmap.astype(dtype)
data.close()
return fluxmap
def run_forecast_model(self,dacycle,do_pseudo,adv):
logging.info('Preparing run...')
self.prepare_run(do_pseudo,adv)
......
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