Hallo,

my new way in kl.py

ca. row 1964            for r in records:
                this_ts = r['dateTime']
                records_handled += 1
                logtee("Handle record %s: %s" % (records_handled, 
weeutil.weeutil.timestamp_to_string(this_ts)))
                if last_ts is not None:
                    rec = dict()
                    rec['usUnits'] = weewx.METRIC
                    rec['dateTime'] = this_ts
                    rec['interval'] = (this_ts - last_ts) / 60
                    # calculate the dewpoint and heatindex for each sensor
                    # FIXME: this belongs in StdWXCalculate
                    
*for y in range(0, 9):                        if r['Temp%d' % y] < 81.0 and 
r['Humidity%d' % y] < 100.1:*
                            r['Dewpoint%d' % y] = 
weewx.wxformulas.dewpointC(r['Temp%d' % y], r['Humidity%d' % y])
                            r['Heatindex%d' % y] = 
weewx.wxformulas.heatindexC(r['Temp%d' % y], r['Humidity%d' % y])

                            r['AbsoF%d' % y] = 
weewx.wxformulas.absF_C(r['Temp%d' % y], r['Humidity%d' % y])

                            r['Avd%d' % y] = 
(weewx.wxformulas.SaturationVaporPressure(r['Temp%d' % y])) * 
r['Humidity%d' % y] / 100.0
                            r['Svd%d' % y] = 
weewx.wxformulas.SaturationVaporPressure(r['Temp%d' % y])

 2144       # calculate dewpoints and heatindices
        # FIXME: this belongs in StdWXCalculate

*        for y in range(0, 9):            if data.values['Temp%d' % y] < 
81.0 and data.values['Humidity%d' % y] < 100.1:*
                data.values['Dewpoint%d' % y] = 
weewx.wxformulas.dewpointC(data.values['Temp%d' % y], 
data.values['Humidity%d' % y])
                data.values['Heatindex%d' % y] = 
weewx.wxformulas.heatindexC(data.values['Temp%d' % y], 
data.values['Humidity%d' % y])

                data.values['AbsoF%d' % y] = 
weewx.wxformulas.absF_C(data.values['Temp%d' % y], data.values['Humidity%d' 
% y])
                data.values['Avd%d' % y] = 
(weewx.wxformulas.SaturationVaporPressure(data.values['Temp%d' % y])) * 
data.values['Humidity%d' % y] / 100.0
                data.values['Svd%d' % y] = 
weewx.wxformulas.SaturationVaporPressure(data.values['Temp%d' % y])

if Temp = 81 is not defined and also Humidity > 100  is not defined

in weewx 
             def calc_absHumidity(self, data, data_type):

it does not work 


I am sorry, my mistake
Hartmut

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to