Calculate the mean value. **solved**

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

Post Reply
Sperber
Fresh Boarder
Fresh Boarder
Posts: 14
Joined: Wed Dec 07, 2016 10:04 pm

Calculate the mean value. **solved**

Post by Sperber »

Hello, I'm trying to calculate the mean value.

With Temp Data is going:
{*[th0temp-dmax]+[th0temp-dmin]/2*1} (-5,6°C+0,7°C)/2= 2,45°C i have -2,1°C ok this 0,3°C is not the Problem
but Air pressure
{*[th0hum-dmin]+[th0hum-max]/2*1} (1028.5hpa+1024,6hpa)/2=1540,8hpa is a Problem !
only humidity and Air pressure do this.

please help
Sperber
Fresh Boarder
Fresh Boarder
Posts: 14
Joined: Wed Dec 07, 2016 10:04 pm

Re: Calculate the mean value.

Post by Sperber »

Helloo? Is this a ghost forum? I am alone here? :(
droiddk
Senior Boarder
Senior Boarder
Posts: 75
Joined: Sun May 01, 2016 10:55 pm

Re: Calculate the mean value.

Post by droiddk »

Sperber wrote:Hello, I'm trying to calculate the mean value.

With Temp Data is going:
{*[th0temp-dmax]+[th0temp-dmin]/2*1} (-5,6°C+0,7°C)/2= 2,45°C i have -2,1°C ok this 0,3°C is not the Problem
but Air pressure
{*[th0hum-dmin]+[th0hum-max]/2*1} (1028.5hpa+1024,6hpa)/2=1540,8hpa is a Problem !
only humidity and Air pressure do this.

please help
Dont know If its a typo but in 1028.5hpa+1024,6hpa you have . and , as separator?

Regards
Sperber
Fresh Boarder
Fresh Boarder
Posts: 14
Joined: Wed Dec 07, 2016 10:04 pm

Re: Calculate the mean value.

Post by Sperber »

Hello,

1028.5hpa+1024,6hpa=2053,1 /2 =1026,55hpa that is correct,
but i have 1540,8hpa

for example (0+5)/2=2,5

I need only the correct spelling for the meteobridge code, then I know if takes my Vantage pro2 wrong values .
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Calculate the mean value.

Post by admin »

Sperber wrote: but Air pressure
{*[th0hum-dmin]+[th0hum-max]/2*1} (1028.5hpa+1024,6hpa)/2=1540,8hpa is a Problem !
1) th0hum is not about air pressure
2) formular is not taking into account that a value might not be there
3) brackets are missing. Average is "(a+b)/2" not "a+b/2"
Post Reply