def time(self, n): """Get timestamp from a time frame""" tvar = self.nc.variables['time'] return num2date(tvar[n], tvar.units)