def set_time(self, time):
times = num2date(time[:].squeeze(), time.units)<EOL>self.time = pd.DatetimeIndex(pd.Series(times), tz=self.location.tz)<EOL>
Converts time data into a pandas date object.

Parameters
----------
time: netcdf
    Contains time information.

Returns
-------
pandas.DatetimeIndex