Page 1 of 1

barotrend=inhg **solved**

Posted: Mon May 09, 2022 2:45 am
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?

Re: barotrend=inhg

Posted: Mon May 09, 2022 3:11 am
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

Re: barotrend=inhg

Posted: Mon May 09, 2022 3:36 am
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.

Re: barotrend=inhg

Posted: Mon May 09, 2022 3:47 am
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)

Re: barotrend=inhg

Posted: Mon May 09, 2022 3:53 am
by mchd17
:oops: I should've thought of that, lol, a big THANKS, works very well.