--> -->
 
 
<type 'exceptions.KeyError'>
Python 2.7.12: /uufs/chpc.utah.edu/sys/installdir/anaconda/4.2.0/bin/python
Tue Apr 23 05:17:06 2024

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 = 'WBB', 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='WBB', tz='Local', units='English', v=False)
     58 
     59     for U in data['UNITS']:
=>   60         return_this[U] = {'value':d['OBSERVATIONS'][U+'_value_1']['value'],
=>   61                           'unit':data['UNITS'][U]}
     62             
return_this = {'DATE': datetime.datetime(2024, 4, 23, 5, 10), 'NAME': u'U of U William Browning Building', 'STID': u'WBB', 'URL': 'http://api.mesowest.net/v2/stations/nearesttime?...81f06c9eb&stid=WBB&obtimezone=Local&units=English'}, U = u'wet_bulb_temp', d = {u'ELEVATION': u'4806.0', u'ELEV_DEM': u'4727.7', u'ID': u'1', u'LATITUDE': u'40.76623', u'LONGITUDE': u'-111.84755', u'MNET_ID': u'153', u'NAME': u'U of U William Browning Building', u'OBSERVATIONS': {u'PM_25_concentration_value_1': {u'date_time': u'2024-04-23T05:10:00-0600', u'value': 2.13}, u'air_flow_temperature_value_1': {u'date_time': u'2024-04-23T05:10:00-0600', u'value': 51.8}, u'air_temp_value_1': {u'date_time': u'2024-04-23T05:10:00-0600', u'value': 53.64}, u'altimeter_value_1d': {u'date_time': u'2024-04-23T05:10:00-0600', u'value': 29.96}, u'dew_point_temperature_value_1d': {u'date_time': u'2024-04-23T05:10:00-0600', u'value': 33.67}, u'flow_rate_value_1': {u'date_time': u'2024-04-23T05:10:00-0600', u'value': 1.89}, u'internal_relative_humidity_value_1': {u'date_time': u'2024-04-23T05:10:00-0600', u'value': 31.0}, u'ozone_concentration_value_1': {u'date_time': u'2024-04-23T05:05:00-0600', u'value': 30.22}, u'precip_accum_one_minute_value_1': {u'date_time': u'2024-04-23T05:10:00-0600', u'value': 0.0}, u'pressure_value_1': {u'date_time': u'2024-04-23T05:10:00-0600', u'value': 850.09}, ...}, u'PERIOD_OF_RECORD': {u'end': u'2024-04-23T10:15:00Z', u'start': u'1997-01-01T00:00:00Z'}, u'QC_FLAGGED': False, ...}, data = {u'QC_SUMMARY': {u'PERCENT_OF_TOTAL_OBSERVATIONS_FLAGGED': 0.0, u'QC_CHECKS_APPLIED': [u'sl_range_check'], u'QC_NAMES': {u'1': u'SynopticLabs Range Check'}, u'QC_SHORTNAMES': {u'1': u'sl_range_check'}, u'QC_SOURCENAMES': {u'1': u'SynopticLabs'}, u'TOTAL_OBSERVATIONS_FLAGGED': 0}, u'STATION': [{u'ELEVATION': u'4806.0', u'ELEV_DEM': u'4727.7', u'ID': u'1', u'LATITUDE': u'40.76623', u'LONGITUDE': u'-111.84755', u'MNET_ID': u'153', u'NAME': u'U of U William Browning Building', u'OBSERVATIONS': {u'PM_25_concentration_value_1': {u'date_time': u'2024-04-23T05:10:00-0600', u'value': 2.13}, u'air_flow_temperature_value_1': {u'date_time': u'2024-04-23T05:10:00-0600', u'value': 51.8}, u'air_temp_value_1': {u'date_time': u'2024-04-23T05:10:00-0600', u'value': 53.64}, u'altimeter_value_1d': {u'date_time': u'2024-04-23T05:10:00-0600', u'value': 29.96}, u'dew_point_temperature_value_1d': {u'date_time': u'2024-04-23T05:10:00-0600', u'value': 33.67}, u'flow_rate_value_1': {u'date_time': u'2024-04-23T05:10:00-0600', u'value': 1.89}, u'internal_relative_humidity_value_1': {u'date_time': u'2024-04-23T05:10:00-0600', u'value': 31.0}, u'ozone_concentration_value_1': {u'date_time': u'2024-04-23T05:05:00-0600', u'value': 30.22}, u'precip_accum_one_minute_value_1': {u'date_time': u'2024-04-23T05:10:00-0600', u'value': 0.0}, u'pressure_value_1': {u'date_time': u'2024-04-23T05:10:00-0600', u'value': 850.09}, ...}, u'PERIOD_OF_RECORD': {u'end': u'2024-04-23T10:15:00Z', u'start': u'1997-01-01T00:00:00Z'}, u'QC_FLAGGED': False, ...}], u'SUMMARY': {u'DATA_PARSING_TIME': u'0.8 ms', u'DB_QUERY_TIME': u'0 ms', u'METADATA_RESPONSE_TIME': u'2.9 ms', u'NUMBER_OF_OBJECTS': 1, u'QC_QUERY_TIME': u'0 ms', u'QUERY_TIME': u'3.1 ms', u'RESPONSE_CODE': 1, u'RESPONSE_MESSAGE': u'OK', u'TOTAL_DATA_TIME': u'3.9 ms', u'VERSION': u'v2.24.3'}, u'UNITS': {u'PM_25_concentration': u'ug/m3', u'air_flow_temperature': u'Fahrenheit', u'air_temp': u'Fahrenheit', u'altimeter': u'INHG', u'dew_point_temperature': u'Fahrenheit', u'elevation': u'ft', u'flow_rate': u'liters/min', u'heat_index': u'Fahrenheit', u'internal_relative_humidity': u'%', u'ozone_concentration': u'ppb', ...}}

<type 'exceptions.KeyError'>: u'wet_bulb_temp_value_1'
      args = (u'wet_bulb_temp_value_1',)
      message = u'wet_bulb_temp_value_1'