def datetime_hourly_temperature(self, dt, unit):
        """The hourly observed temperatures for each period.

        Parameters
        ----------
        periods : [list of] eemeter.evaluation.Period
            Time periods over which temperatures will be collected. A single
            datetime period may be given.
        unit : {"degC", "degF"}
            The unit in which temperatures should be returned.

        Returns
        -------
        out : np.ndarray
            Array of arrays of observed_daily temperatures observed during each
            period. Note: array is not guaranteed to be rectangular. If a
            single datetime period is given, a single numpy array of
            temperatures will be returned.
        """

        try:
            return self._unit_convert(self.tempC[dt], unit)
        except __HOLE__:
            try:
                self._fetch_datetime(dt)
                return self._unit_convert(self.tempC[dt], unit)
            except KeyError:
                pass
        return np.nan
dataset/ETHPy150Open impactlab/eemeter/eemeter/weather.py/WeatherSourceBase.datetime_hourly_temperature