--> -->
 
 
<type 'exceptions.KeyError'>
Python 2.7.12: /uufs/chpc.utah.edu/sys/installdir/anaconda/4.2.0/bin/python
Thu Apr 18 21:44:56 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 = 'FPN', 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='FPN', 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(2019, 7, 29, 21, 25), 'NAME': u'Flight Park North', 'STID': u'FPN', 'URL': 'http://api.mesowest.net/v2/stations/nearesttime?...81f06c9eb&stid=FPN&obtimezone=Local&units=English', u'air_temp': {'unit': u'Fahrenheit', 'value': 89.04}, u'wind_speed': {'unit': u'knots', 'value': 4.16}}, U = u'wet_bulb_temp', d = {u'ELEVATION': u'5138.0', u'ELEV_DEM': u'5131.2', u'ID': u'60258', u'LATITUDE': u'40.47415', u'LONGITUDE': u'-111.89138', u'MNET_ID': u'153', u'NAME': u'Flight Park North', u'OBSERVATIONS': {u'air_temp_value_1': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 89.04}, u'altimeter_value_1d': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 30.0}, u'dew_point_temperature_value_1d': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 31.6}, u'heat_index_value_1d': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 85.05}, u'pressure_value_1': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 840.98}, u'relative_humidity_value_1': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 12.74}, u'sea_level_pressure_value_1d': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 999.43}, u'solar_radiation_value_1': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 0.01}, u'volt_value_1': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 13.06}, u'wet_bulb_temp_value_1d': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 56.84}, ...}, u'PERIOD_OF_RECORD': {u'end': u'2019-07-30T03:25:00Z', u'start': u'2016-08-23T17:18: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'5138.0', u'ELEV_DEM': u'5131.2', u'ID': u'60258', u'LATITUDE': u'40.47415', u'LONGITUDE': u'-111.89138', u'MNET_ID': u'153', u'NAME': u'Flight Park North', u'OBSERVATIONS': {u'air_temp_value_1': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 89.04}, u'altimeter_value_1d': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 30.0}, u'dew_point_temperature_value_1d': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 31.6}, u'heat_index_value_1d': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 85.05}, u'pressure_value_1': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 840.98}, u'relative_humidity_value_1': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 12.74}, u'sea_level_pressure_value_1d': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 999.43}, u'solar_radiation_value_1': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 0.01}, u'volt_value_1': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 13.06}, u'wet_bulb_temp_value_1d': {u'date_time': u'2019-07-29T21:25:00-0600', u'value': 56.84}, ...}, u'PERIOD_OF_RECORD': {u'end': u'2019-07-30T03:25:00Z', u'start': u'2016-08-23T17:18:00Z'}, u'QC_FLAGGED': False, ...}], u'SUMMARY': {u'DATA_PARSING_TIME': u'0.7 ms', u'DB_QUERY_TIME': u'4.1 ms', u'METADATA_RESPONSE_TIME': u'5.7 ms', u'NUMBER_OF_OBJECTS': 1, u'QC_QUERY_TIME': u'4.0 ms', u'QUERY_TIME': u'2.7 ms', u'RESPONSE_CODE': 1, u'RESPONSE_MESSAGE': u'OK', u'TOTAL_DATA_TIME': u'11.6 ms', u'VERSION': u'v2.24.2'}, 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'pressure': u'Millibars', u'relative_humidity': u'%', u'sea_level_pressure': u'Millibars', u'solar_radiation': u'W/m**2', ...}}

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