ILAMB.ilamblib.MakeComparable

ILAMB.ilamblib.MakeComparable(ref, com, **keywords)[source]

Make two variables comparable.

Given a reference variable and a comparison variable, make the two variables comparable or raise an exception explaining why they are not.

Parameters
  • ref (ILAMB.Variable.Variable) – the reference variable object

  • com (ILAMB.Variable.Variable) – the comparison variable object

  • clip_ref (bool, optional) – enable in order to clip the reference variable time using the limits of the comparison variable (defult is False)

  • mask_ref (bool, optional) – enable in order to mask the reference variable using an interpolation of the comparison variable (defult is False)

  • eps (float, optional) – used to determine how close you can be to a specific time (expressed in days since 1-1-1850) and still be considered the same time (default is 30 minutes)

  • window (float, optional) – specify to extend the averaging intervals (in days since 1-1-1850) when a variable must be coarsened (default is 0)

Returns

  • ref (ILAMB.Variable.Variable) – the modified reference variable object

  • com (ILAMB.Variable.Variable) – the modified comparison variable object