def __init__(self,*args,**kwds): self.calendar = kwds.pop('calendar') self.format_time = kwds.pop('format_time',True) self._value_datetime = kwds.pop('value_datetime',None) self._bounds_datetime = kwds.pop('bounds_datetime',None) NcVectorDimension.__init__(self,*args,**kwds) assert(self.units != None) assert(self.calendar != None)
def __init__(self,*args,**kwds): self.calendar = kwds.pop('calendar') self.format_time = kwds.pop('format_time',True) self._value_datetime = kwds.pop('value_datetime',None) self._bounds_datetime = kwds.pop('bounds_datetime',None) NcVectorDimension.__init__(self,*args,**kwds) assert(self.units != None) assert(self.calendar != None) ## test if the units are the special case with months in the time units if self.units.startswith('months'): self._has_months_units = True else: self._has_months_units = False