ILAMB.Confrontation.Confrontation.stageData

Confrontation.stageData(m)[source]

Extracts model data which matches the observational dataset.

The datafile associated with this confrontation defines what is to be extracted from the model results. If the observational data represents sites, as opposed to spatially defined over a latitude/longitude grid, then the model results will be sampled at the site locations to match. The spatial grids need not align, the analysis will handle the interpolations when necesary.

If both datasets are defined on the same temporal scale, then the maximum overlap time is computed and the datasets are clipped to match. If there is some disparity in the temporal scale (e.g. annual mean observational data and monthly mean model results) then we coarsen the model results automatically to match the observational data.

Parameters

m (ILAMB.ModelResult.ModelResult) – the model result context

Returns

  • obs (ILAMB.Variable.Variable) – the variable context associated with the observational dataset

  • mod (ILAMB.Variable.Variable) – the variable context associated with the model result