--> -->
 
 
<type 'exceptions.KeyError'>
Python 2.7.12: /uufs/chpc.utah.edu/sys/installdir/anaconda/4.2.0/bin/python
Thu Apr 25 10:53:05 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 = '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'altimeter_value_1d': {u'date_time': u'2024-04-25T10:30:00-0600', u'value': 29.97}, u'friction_velocity_value_1': {u'date_time': u'2024-04-25T10:30:00-0600', u'value': 0.15}, u'incoming_radiation_lw_value_1': {u'date_time': u'2024-04-25T10:30:00-0600', u'value': 272.02}, u'net_radiation_value_1': {u'date_time': u'2024-04-25T10:30:00-0600', u'value': 284.53}, u'outgoing_radiation_lw_value_1': {u'date_time': u'2024-04-25T10:30:00-0600', u'value': 407.67}, u'outgoing_radiation_sw_value_1': {u'date_time': u'2024-04-25T10:30:00-0600', u'value': 235.46}, u'precip_accum_five_minute_value_1': {u'date_time': u'2024-04-25T10:45:00-0600', u'value': 0.0}, u'pressure_value_1': {u'date_time': u'2024-04-25T10:30:00-0600', u'value': 869.48}, u'soil_temp_value_1': {u'date_time': u'2024-04-25T10:30:00-0600', u'value': 60.51}, u'solar_radiation_value_1': {u'date_time': u'2024-04-25T10:30:00-0600', u'value': 655.63}, ...}, u'PERIOD_OF_RECORD': {u'end': u'2024-04-25T16:15: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'