barotrend=inhg **solved**

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

Moderator: Mattk

Post Reply
mchd17
Senior Boarder
Senior Boarder
Posts: 41
Joined: Tue Mar 20, 2018 11:40 pm

barotrend=inhg **solved**

Post by mchd17 »

using MB for webcam and adding templates to image. Trying to get the barometer trend to show two digits after decimal for inHg and i can't get it to work properly, always shows a zero in the second digit after decimal

Here's what I am using,

Code: Select all

'[thb0seapress-delta3h=enbarotrend]([thb0seapress-delta3h=barotrend=inhg.2:--] inHg)'

this code shows zero in second digit, examples: ST(-0.30) ST(-0.10) ST(0.10)

I can not get it to show the second digit after decimal. Is this correct or should MB be able to show that second digit?

I've even tried the following code just for a trial, still zero in the second digit after decimal

Code: Select all

'[thb0seapress-delta5=enbarotrend]([thb0seapress-delta5=barotrend=inhg.2:--] inHg)'
Then I tried using a multiplier to move that digit with the following code

Code: Select all

'[thb0seapress-delta5=enbarotrend]([thb0seapress-delta5=barotrend=inhg0,1.2:--] inHg)'
Is it possible to show second digit after decimal with barortrend=inhg?
Last edited by mchd17 on Mon May 09, 2022 4:28 am, edited 1 time in total.
Mattk
Platinum Boarder
Platinum Boarder
Posts: 1387
Joined: Mon Sep 22, 2014 3:24 am

Re: barotrend=inhg

Post by Mattk »

Have you checked the use of barotrend converter which uses the selector (delta) to convert the delta measurement into a barometer trend analysis pattern output which is an integer?

-2 if the delta is <= -2 hPa
-1 -2 hPa < delta <= -1hpa
0 if delta is between -1 and +1 hpa

similar for +1, +2 etc
mchd17
Senior Boarder
Senior Boarder
Posts: 41
Joined: Tue Mar 20, 2018 11:40 pm

Re: barotrend=inhg

Post by mchd17 »

Thanks for the response. I did check the use of barotrend converter, read it a few times before posting here. Very confusing to me.

Even read it a few more times just now, and I guess it won't show that second decimal for inHg. Thanks again.
Mattk
Platinum Boarder
Platinum Boarder
Posts: 1387
Joined: Mon Sep 22, 2014 3:24 am

Re: barotrend=inhg

Post by Mattk »

If you want the numeric delta value then take out the barotrend you should get a +/- trend difference over the specified delta period with x number decimal places as required

[thb0seapress-delta3h=enbarotrend]([thb0seapress-delta3h=inhg.2:--] inHg)
mchd17
Senior Boarder
Senior Boarder
Posts: 41
Joined: Tue Mar 20, 2018 11:40 pm

Re: barotrend=inhg

Post by mchd17 »

:oops: I should've thought of that, lol, a big THANKS, works very well.
Post Reply