<type 'exceptions.KeyError'> | Python 2.7.12: /uufs/chpc.utah.edu/sys/installdir/anaconda/4.2.0/bin/python Thu Jan 2 23:09:37 2025 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/uufs/chpc.utah.edu/common/home/u0553130/public_html/Brian_Blaylock/cgi-bin/mesowest_current.cgi in |
36 from BB_wx_calcs.humidity import Tempdwpt_to_RH |
37 |
=> 38 a = get_mesowest_latest(STN, tz=TZ, units=UNITS) |
39 |
40 sectors = np.arange(22.5, 361, 45) |
a undefined, get_mesowest_latest = <function get_mesowest_latest>, STN = 'BFLAT', tz undefined, TZ = 'Local', units undefined, UNITS = 'English' |
/uufs/chpc.utah.edu/common/home/u0553130/pyBKB_v2/BB_MesoWest/MesoWest_latest.py in get_mesowest_latest(stn='BFLAT', tz='Local', units='English', v=False) |
51 'NAME':d['NAME']} |
52 |
=> 53 date = d['OBSERVATIONS']['air_temp_value_1']['date_time'] |
54 if tz.upper() == "UTC": |
55 return_this['DATE'] = datetime.strptime(date,'%Y-%m-%dT%H:%M:%SZ') |
date undefined, d = {u'ELEVATION': u'4218.0', u'ELEV_DEM': u'4206.0', u'ID': u'60800', u'LATITUDE': u'40.78422', u'LONGITUDE': u'-113.82946', u'MNET_ID': u'153', u'NAME': u'Bonneville Salt Flats', u'OBSERVATIONS': {u'air_temp_value_3': {u'date_time': u'2025-01-02T23:00:00-0700', u'value': 36.45}, u'altimeter_value_1d': {u'date_time': u'2025-01-02T23:00:00-0700', u'value': 30.33}, u'evapotranspiration_value_1': {u'date_time': u'2025-01-02T23:00:00-0700', u'value': 0.0}, u'friction_velocity_value_1': {u'date_time': u'2025-01-02T23:00:00-0700', u'value': 0.15}, u'incoming_radiation_lw_value_1': {u'date_time': u'2025-01-02T23:00:00-0700', u'value': 284.07}, u'net_radiation_value_1': {u'date_time': u'2025-01-02T23:00:00-0700', u'value': -39.51}, u'outgoing_radiation_lw_value_1': {u'date_time': u'2025-01-02T23:00:00-0700', u'value': 319.09}, u'outgoing_radiation_sw_value_1': {u'date_time': u'2025-01-02T23:00:00-0700', u'value': 0.0}, u'precip_accum_five_minute_value_1': {u'date_time': u'2025-01-02T23:00:00-0700', u'value': 0.0}, u'pressure_value_1': {u'date_time': u'2025-01-02T23:00:00-0700', u'value': 879.88}, ...}, u'PERIOD_OF_RECORD': {u'end': u'2025-01-03T05:00:00Z', u'start': u'2016-09-29T19:48:00Z'}, u'QC_FLAGGED': False, ...} |
<type 'exceptions.KeyError'>: 'air_temp_value_1'
args =
('air_temp_value_1',)
message =
'air_temp_value_1'