Page 1 of 1

remove decimal beaufort value

Posted: Tue Dec 21, 2010 12:04 pm
by AenG
Is it possible to remove the decimal from the beaufort value?

Official decimal beaufort values don't exist.

gr Geert
www.hetweerinboskamp.nl

Re: remove decimal beaufort value

Posted: Tue Dec 21, 2010 12:27 pm
by YJB
Hi Geert,

The request makes sense to me, but it's not a matter of just removing the decimal (our rounding), instead the conversion should be done according to the following table:

Code: Select all

Bft	<- m/s
0	<- 0–0.2 
1	<- 0.3–1.5 
2	<- 1.6–3.3 
3	<- 3.4–5.4 
4	<- 5.5–7.9 
5	<- 8.0–10.7 
6	<- 10.8–13.8 
7	<- 13.9–17.1 
8	<- 17.2–20.7 
9	<- 20.8–24.4 
10	<- 24.5–28.4 
11	<- 28.5–32.6 
12	<- 32.7+ 
Regards,
Ysbrand

Re: remove decimal beaufort value

Posted: Tue Dec 21, 2010 12:41 pm
by AenG
Ysbrand,

Thats a good solution for the ajaxscripts.
But how can i use that with the values from the meteohub? (allsensors.txt)

On my webpage i use both!

Re: remove decimal beaufort value

Posted: Tue Dec 21, 2010 12:44 pm
by YJB
Hi Geert,

Your request is something that Boris will need to implement.

The main reason for listing the table is to make sure that the request is properly documented. My experience has learned that it is more likely that Boris is willing to implement something when the request is as complete as possible. Also, it's very frustrating for him if it turns out that the change is not living up to the expectations.

Ysbrand

Re: remove decimal beaufort value

Posted: Tue Dec 21, 2010 9:24 pm
by admin
Thanks for taking care of my time. YJB's table will be part of the next update. Integer values will be reported by variables ending with "bftint" in addition to the "bft" ones already there.

Re: remove decimal beaufort value

Posted: Wed Dec 22, 2010 8:04 pm
by AenG
Thats good news!

Thanks.

Geert
www.hetweerinboskamp.nl