--> -->
 
 
<type 'exceptions.KeyError'>
Python 2.7.12: /uufs/chpc.utah.edu/sys/installdir/anaconda/4.2.0/bin/python
Tue Apr 23 04:42:53 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 = 'EYSC', 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='EYSC', 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, 18, 11, 45), 'NAME': u'Eyring Science Center', 'STID': u'EYSC', 'URL': 'http://api.mesowest.net/v2/stations/nearesttime?...1f06c9eb&stid=EYSC&obtimezone=Local&units=English', u'air_temp': {'unit': u'Fahrenheit', 'value': 47.0}, u'wind_speed': {'unit': u'knots', 'value': 1.48}}, U = u'wet_bulb_temp', d = {u'ELEVATION': u'4720.0', u'ELEV_DEM': u'4704.7', u'ID': u'22588', u'LATITUDE': u'40.24715', u'LONGITUDE': u'-111.65001', u'MNET_ID': u'12', u'NAME': u'Eyring Science Center', u'OBSERVATIONS': {u'air_temp_value_1': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': 47.0}, u'altimeter_value_1d': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': 29.93}, u'dew_point_temperature_value_1d': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': 16.16}, u'precip_accum_value_1': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': 0.0}, u'pressure_value_1': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': 852.02}, u'relative_humidity_value_1': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': 29.0}, u'sea_level_pressure_value_1d': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': 1011.67}, u'wet_bulb_temp_value_1d': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': 34.95}, u'wind_cardinal_direction_value_1d': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': u'SSW'}, u'wind_direction_value_1': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': 202.0}, ...}, u'PERIOD_OF_RECORD': {u'end': u'2024-04-18T17:45:00Z', u'start': u'2008-01-05T00:00:00Z'}, u'QC_FLAGGED': True, ...}, data = {u'QC_SUMMARY': {u'PERCENT_OF_TOTAL_OBSERVATIONS_FLAGGED': 12.5, 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': 1}, u'STATION': [{u'ELEVATION': u'4720.0', u'ELEV_DEM': u'4704.7', u'ID': u'22588', u'LATITUDE': u'40.24715', u'LONGITUDE': u'-111.65001', u'MNET_ID': u'12', u'NAME': u'Eyring Science Center', u'OBSERVATIONS': {u'air_temp_value_1': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': 47.0}, u'altimeter_value_1d': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': 29.93}, u'dew_point_temperature_value_1d': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': 16.16}, u'precip_accum_value_1': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': 0.0}, u'pressure_value_1': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': 852.02}, u'relative_humidity_value_1': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': 29.0}, u'sea_level_pressure_value_1d': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': 1011.67}, u'wet_bulb_temp_value_1d': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': 34.95}, u'wind_cardinal_direction_value_1d': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': u'SSW'}, u'wind_direction_value_1': {u'date_time': u'2024-04-18T11:45:00-0600', u'value': 202.0}, ...}, u'PERIOD_OF_RECORD': {u'end': u'2024-04-18T17:45:00Z', u'start': u'2008-01-05T00:00:00Z'}, u'QC_FLAGGED': True, ...}], u'SUMMARY': {u'DATA_PARSING_TIME': u'0.7 ms', u'DB_QUERY_TIME': u'0 ms', u'METADATA_RESPONSE_TIME': u'4.9 ms', u'NUMBER_OF_OBJECTS': 1, u'QC_QUERY_TIME': u'0 ms', u'QUERY_TIME': u'3.4 ms', u'RESPONSE_CODE': 1, u'RESPONSE_MESSAGE': u'OK', u'TOTAL_DATA_TIME': u'4.1 ms', u'VERSION': u'v2.24.3'}, u'UNITS': {u'air_temp': u'Fahrenheit', u'altimeter': u'INHG', 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'pressure': u'Millibars', u'relative_humidity': u'%', u'sea_level_pressure': u'Millibars', ...}}

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