

def get_isd_data(self, station, year):
    filename_format = '/pub/data/noaa/{year}/{station}-{year}.gz'
    lines = self._retreive_file_lines(filename_format, station, year)
    hours = []
    for line in lines:
        if (line[87:92].decode('utf-8') == '+9999'):
            temp_C = float('nan')
        else:
            temp_C = (float(line[87:92]) / 10.0)
        date_str = line[15:27].decode('utf-8')
        dt = datetime.strptime(date_str, '%Y%m%d%H%M')
        hours.append({
            'temp_C': temp_C,
            'datetime': dt,
        })
    return hours

dataset/ETHPy150Open impactlab/eemeter/eemeter/weather.py NOAAClient.get_isd_data/original