2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

98_feels_like.pm: Improved algorithms

git-svn-id: https://svn.fhem.de/fhem/trunk@16950 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
hotbso 2018-07-06 14:09:58 +00:00
parent 6d07ec9a7e
commit 81ea2c64c0
2 changed files with 35 additions and 31 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- change: 98_feels_like.pm: Improved algorithms
- change: 98_dewpoint: new attributes absoluteHumidity, vapourPressure
attribute absFeuchte is now deprecated,
write warning to log

View File

@ -637,37 +637,40 @@ my $azimuth_max = 280;
my $alpha_min = 0.28;
my $alpha_max = 3.20;
my $nx = 7;
my $ny = 10;
my @poly = (-90.66442587970859,-0.12653967513953918,-0.05429196782572522,
-0.003947505982161431,0.0002942560101669465,-9.23777160083294e-06,
1.2564390326055938e-07,-7.837444757016697e-10,2.976503890716177e-12,
-9.029301310686075e-15,1.297737110059297e-17,3.811119753792056,
0.025141696145316254,0.0023982784945238145,-2.5486216904746934e-05,
4.018143816156442e-08,4.961244712996584e-08,-6.93209410072197e-10,
6.038700298155277e-13,7.445309001840248e-15,-1.9899681263361284e-19,
6.966461804177705e-22,-0.06612735443754429,-0.0007213163346721225,
-1.859170016835626e-05,9.228080919592265e-08,-2.5512896337894643e-08,
1.456811407705844e-10,-1.833908748420345e-14,2.2290556279960535e-14,
-2.6098516954286017e-19,-1.8043262610342805e-19,-1.246673705681534e-22,
0.0006231749950812171,8.038470749835932e-06,1.6299836636140978e-08,
6.7526397449547776e-09,1.013751152232904e-10,-8.865941766791051e-13,
-2.2679945112156536e-15,2.992765354989327e-19,-1.2796172696085801e-18,
5.692130944971647e-22,6.121907579877861e-25,-3.4503019397362654e-06,
-4.290149971856156e-08,2.900577518957586e-11,-5.395084246995899e-11,
-4.110949698556136e-14,9.961729200251771e-16,-6.781846849607143e-19,
2.8473447321672775e-19,9.03281869038426e-22,3.779074156761943e-23,
-6.41561370484806e-31,1.1233524858094804e-08,1.1218419288910449e-10,
1.705139816573712e-12,1.392728520516869e-13,3.3833213964714306e-17,
-1.915293420933926e-20,3.7494431936474405e-20,-1.73536092192404e-21,
1.098128449551401e-23,-1.656504982988262e-25,-3.2050256268063015e-28,
-1.994061567326138e-11,-1.1693850699135202e-13,-9.669322076648309e-15,
-2.359211807676409e-17,-3.3118811681151757e-18,2.3240018538390688e-20,
-2.1966930654068847e-23,-4.486890059210402e-25,1.5217375241812627e-26,
8.715547477814691e-30,2.0002771306203812e-30,1.4911298152625538e-14,
5.870928780450363e-21,1.5237962637002946e-17,-3.203113238718731e-19,
1.0006959961601528e-20,-1.2002161320425675e-22,7.845657723758814e-25,
-2.756151543721822e-28,-4.9606444725220614e-29,3.9282483015414235e-31,
-3.124485189918848e-33);
my $ny = 11;
my @poly = (-100.5272916306846,0.3851772804214305,-0.020922056671224352,
-0.009606197418741177,0.0005849132515498935,-1.7702695912133926e-05,
2.7723251864128576e-07,-2.2008421407093293e-09,7.98312106634558e-12,
-9.927125805770036e-15,-8.604877467953387e-21,2.265317645670313e-20,
4.1772609913122905,-0.003382646065288795,0.004002144590164501,
-5.4211809684315803e-05,-5.444706499364457e-10,6.634114173659209e-08,
-1.401016073554696e-09,8.827874472272314e-12,2.0449918292777215e-15,
-9.736015250496609e-17,-1.2628485998738518e-19,-6.528639259121269e-25,
-0.07111355060845763,-0.0004529543069338071,-4.4021806663494164e-05,
9.059712530819742e-07,-3.995683044901134e-08,4.267728767926248e-10,
-8.99216222938747e-13,8.946809361917819e-16,3.0559393103807377e-18,
-1.2161164440370677e-18,6.327425020223698e-21,-2.1093293979784917e-26,
0.0006548417964461427,8.616725227583858e-06,1.4214703156380296e-07,
1.6194971096239993e-09,1.193961278874705e-10,-9.867892387318816e-13,
7.731533627631885e-18,-2.51758137182563e-17,4.666842950199576e-20,
-8.087375804440922e-23,2.998974830829665e-23,-9.232094285359054e-26,
-3.5328742295575905e-06,-6.514191698173193e-08,-8.815469844312648e-11,
-2.6046214918557725e-11,2.5650664629227075e-18,-7.427126643548995e-15,
8.6511961126834e-17,3.5992628695651026e-20,-2.1167091228911203e-21,
3.56544713533269e-23,-2.7851859628863135e-25,2.6191072037006313e-30,
1.1177254065064902e-08,2.51900546433227e-10,3.3655023796213395e-13,
5.924476158904615e-16,2.0127621492146657e-15,3.9839039995943257e-19,
-1.1548464713367492e-20,-1.6688968404500252e-21,1.6961916774893855e-27,
3.3572561967420015e-28,-1.1826537287436407e-29,4.088004745053708e-30,
-1.9204337282521175e-11,-5.084099801020134e-13,-1.5629771424170198e-15,
1.8775095429271391e-16,-7.621571993423269e-18,2.270611143279266e-20,
2.0566602640908184e-22,-1.7224083003014677e-24,3.3573830492178875e-26,
-1.1092599050757706e-29,7.847387568022642e-37,-1.0904825142536614e-32,
1.3817373460788212e-14,4.358054579743455e-16,-3.8996192297342614e-19,
-1.0123638207451001e-19,1.37960356223409e-21,1.3930087304289616e-22,
-2.609911374214054e-24,1.786316983808703e-26,6.149662788070821e-30,
-1.2557848634303272e-30,6.885372725269743e-33,-1.8993544603666883e-36);
# numdp: 3648, mean error: 0.05819
# azimuth, sday
sub sensor_factor($$) {