add weather database creator

This commit is contained in:
2023-06-01 17:56:26 +03:00
parent c70ce5216a
commit 90f712f525
15 changed files with 526 additions and 1 deletions

View File

@@ -98,7 +98,7 @@ double stat_for(double Tsec, weatherstat_t *wstat){
size_t north = 0, south = 0;
while(st != lastidx){
double w = buf[st].winddir;
if(w < 90. || w > 300.) ++north;
if(w < 90. || w > 270.) ++north;
else ++south;
if(++st == buflen) st = 0;
}