remove decimal beaufort value

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
User avatar
AenG
Senior Boarder
Senior Boarder
Posts: 68
Joined: Sat Dec 01, 2007 10:06 am
Location: Boskamp, Netherlands
Contact:

remove decimal beaufort value

Post 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
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: remove decimal beaufort value

Post 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
User avatar
AenG
Senior Boarder
Senior Boarder
Posts: 68
Joined: Sat Dec 01, 2007 10:06 am
Location: Boskamp, Netherlands
Contact:

Re: remove decimal beaufort value

Post 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!
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: remove decimal beaufort value

Post 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
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7879
Joined: Mon Oct 01, 2007 10:51 pm

Re: remove decimal beaufort value

Post 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.
User avatar
AenG
Senior Boarder
Senior Boarder
Posts: 68
Joined: Sat Dec 01, 2007 10:06 am
Location: Boskamp, Netherlands
Contact:

Re: remove decimal beaufort value

Post by AenG »

Thats good news!

Thanks.

Geert
www.hetweerinboskamp.nl
Post Reply