compass.ocean.tests.planar_convergence.horizontal_advection.analysis.Analysis.rmse

Analysis.rmse(resolution, variable)[source]

Compute the RMSE for a given resolution

Parameters:
  • resolution (int) – The resolution of the (uniform) mesh in km

  • variable (str) – The name of a variable in the output file to analyze.

Returns:

  • rms_error (float) – The root-mean-squared error

  • ncells (int) – The number of cells in the mesh