--> -->
 
 
<type 'exceptions.KeyError'>
Python 2.7.12: /uufs/chpc.utah.edu/sys/installdir/anaconda/4.2.0/bin/python
Wed Jan 8 03:42:18 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 = 'EPMU1', 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='EPMU1', 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(2025, 1, 8, 2, 0), 'NAME': u'EPHRAIM', 'STID': u'EPMU1', 'URL': 'http://api.mesowest.net/v2/stations/nearesttime?...f06c9eb&stid=EPMU1&obtimezone=Local&units=English', u'air_temp': {'unit': u'Fahrenheit', 'value': 16.2}, u'wind_speed': {'unit': u'knots', 'value': 1.39}}, U = u'wet_bulb_temp', d = {u'ELEVATION': u'5530.0', u'ELEV_DEM': u'5544.6', u'ID': u'25875', u'LATITUDE': u'39.36798', u'LONGITUDE': u'-111.57803', u'MNET_ID': u'29', u'NAME': u'EPHRAIM', u'OBSERVATIONS': {u'air_temp_value_1': {u'date_time': u'2025-01-08T02:00:00-0700', u'value': 16.2}, u'dew_point_temperature_value_1d': {u'date_time': u'2025-01-08T02:00:00-0700', u'value': 8.65}, u'precip_accum_one_hour_value_1': {u'date_time': u'2025-01-08T00:00:00-0700', u'value': 0.0}, u'precip_accum_value_1': {u'date_time': u'2025-01-08T00:00:00-0700', u'value': 3.62}, u'relative_humidity_value_1': {u'date_time': u'2025-01-08T02:00:00-0700', u'value': 72.0}, u'soil_moisture_value_1': {u'date_time': u'2025-01-08T02:00:00-0700', u'value': 11.2}, u'soil_moisture_value_2': {u'date_time': u'2025-01-08T02:00:00-0700', u'value': 17.6}, u'soil_moisture_value_3': {u'date_time': u'2025-01-08T02:00:00-0700', u'value': 26.4}, u'soil_moisture_value_4': {u'date_time': u'2025-01-08T02:00:00-0700', u'value': 20.1}, u'soil_moisture_value_5': {u'date_time': u'2025-01-08T02:00:00-0700', u'value': 18.2}, ...}, u'PERIOD_OF_RECORD': {u'end': u'2025-01-08T09:00:00Z', u'start': u'2009-06-03T00: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'5530.0', u'ELEV_DEM': u'5544.6', u'ID': u'25875', u'LATITUDE': u'39.36798', u'LONGITUDE': u'-111.57803', u'MNET_ID': u'29', u'NAME': u'EPHRAIM', u'OBSERVATIONS': {u'air_temp_value_1': {u'date_time': u'2025-01-08T02:00:00-0700', u'value': 16.2}, u'dew_point_temperature_value_1d': {u'date_time': u'2025-01-08T02:00:00-0700', u'value': 8.65}, u'precip_accum_one_hour_value_1': {u'date_time': u'2025-01-08T00:00:00-0700', u'value': 0.0}, u'precip_accum_value_1': {u'date_time': u'2025-01-08T00:00:00-0700', u'value': 3.62}, u'relative_humidity_value_1': {u'date_time': u'2025-01-08T02:00:00-0700', u'value': 72.0}, u'soil_moisture_value_1': {u'date_time': u'2025-01-08T02:00:00-0700', u'value': 11.2}, u'soil_moisture_value_2': {u'date_time': u'2025-01-08T02:00:00-0700', u'value': 17.6}, u'soil_moisture_value_3': {u'date_time': u'2025-01-08T02:00:00-0700', u'value': 26.4}, u'soil_moisture_value_4': {u'date_time': u'2025-01-08T02:00:00-0700', u'value': 20.1}, u'soil_moisture_value_5': {u'date_time': u'2025-01-08T02:00:00-0700', u'value': 18.2}, ...}, u'PERIOD_OF_RECORD': {u'end': u'2025-01-08T09:00:00Z', u'start': u'2009-06-03T00:00:00Z'}, u'QC_FLAGGED': False, ...}], u'SUMMARY': {u'DATA_PARSING_TIME': u'0.9 ms', u'DB_QUERY_TIME': u'0 ms', u'METADATA_DB_QUERY_TIME': u'2.3 ms', u'METADATA_PARSE_TIME': u'0.2 ms', u'NUMBER_OF_OBJECTS': 1, u'QC_QUERY_TIME': u'0 ms', u'QUERY_TIME': u'3.5 ms', u'RESPONSE_CODE': 1, u'RESPONSE_MESSAGE': u'OK', u'TOTAL_DATA_TIME': u'4.4 ms', ...}, u'UNITS': {u'air_temp': u'Fahrenheit', u'dew_point_temperature': u'Fahrenheit', u'elevation': u'ft', u'heat_index': u'Fahrenheit', u'position': u'ft', u'precip_accum': u'Inches', u'precip_accum_one_hour': u'Inches', u'relative_humidity': u'%', u'soil_moisture': u'%', u'soil_temp': u'Fahrenheit', ...}}

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