# cf.CellMeasure.override_calendar

`CellMeasure.``override_calendar`(calendar, i=False)

  Override the calendar of date-time units.

  The new calendar need not be equivalent to the original one and the data array elements will not be changed to reflect the new units. Therefore, this method should only be used when it is known that the data array values are correct but the calendar has been incorrectly encoded.

  Not to be confused with setting the `calendar` or `Units` attributes to a calendar which is equivalent to the original calendar

  See also

  `calendar`, `override_units`, `units`, `Units`

  Examples 1: |

      >>> g = f.override_calendar('noleap')

  Parameters: | calendar: `str` The new calendar. i: `bool`, optional If True then update the cell measure in place. By default a new cell measure is created. In either case, a cell measure is returned.
  Returns: | out: `cf.CellMeasure`
  Examples 2: |