Skip to content
Snippets Groups Projects
Commit ce2244e4 authored by Peters, Wouter's avatar Peters, Wouter
Browse files

started to implement the function to get model-data mismatch for each obs

parent 4514d5a4
No related branches found
No related tags found
No related merge requests found
......@@ -227,10 +227,16 @@ def SampleOneCycle(DaCycle,Samples,StateVector, ObservationOperator,lag):
DaCycle.da_settings['ObsOperator.inputfile'] = filename
# Run the forecast model
# Run the observation operator
dummy = RunForecastModel(DaCycle,ObservationOperator)
# Add model-data mismatch to all samples, this *might* use output from the ensemble in the future??
dummy = Samples.AddModelDataMismatch(DaCycle)
msg = "Added Model Data Mismatch to all samples " ; logging.debug(msg)
# Read forecast model samples that were written to NetCDF files by each member, also add the obs to the statevector
silent = False
......@@ -240,7 +246,7 @@ def SampleOneCycle(DaCycle,Samples,StateVector, ObservationOperator,lag):
Member.ModelSample = Samples
silent=True
msg = "Added samples from the forecast model to each member of the StateVector" ; logging.debug(msg)
msg = "Added samples from the observation operator to each member of the StateVector" ; logging.debug(msg)
# Advance the sample time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment