thank you to tom for having resolved this defect but now my problem is that 
the computation of the wind direction is done by vector wind and so if I 
have no wind my direction is 90 ° (East).
I prefer that the calculation is done rather on the average direction of 
wind received by LOOP

if i change:

def extract_wind (self, record, obs_type):
        "" "Extract wind from a record." ""
        # Wind records must be flattened into the separate categories:
        record ['windSpeed'] = self [obs_type] .avg
        record ['windDir'] = self [obs_type] .vec_dir
        record ['windGust'] = self [obs_type] .max
        record ['windGustDir'] = self [obs_type] .max_dir
by
 

def extract_wind (self, record, obs_type):
        "" "Extract wind from a record." ""
        # Wind records must be flattened into the separate categories:
        record ['windSpeed'] = self [obs_type] .avg
        record ['windDir'] = self.dirsumtime
        record ['windGust'] = self [obs_type] .max
        record ['windGustDir'] = self [obs_type] .max_dir

it's good?

thank you in advance and your patience

-- 
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