improver.cli.compare module

Script to compare netcdf files

process(actual, desired, rtol=0.0001, atol=0.0001, *, ignored_attributes=None)[source]

Compare two netcdf files

Parameters:
  • actual (inputpath) – Path to output data netcdf file

  • desired (inputpath) – Path to desired/known good data netcdf file

  • rtol (float) – Relative tolerance for data in variables

  • atol (float) – Absolute tolerance for data in variables

  • ignored_attributes (Optional[comma_separated_list]) – List of attributes to ignore in the comparison. This option allows for attributes such as “history” to be ignored, where such attributes often vary between files without indicating any differences in the data.

Return type:

None

Returns:

None