Rainfall mm

Forum for english speaking users
Répondre
Gary Empting

Message par Gary Empting »

I just download your program to use with my WS2317U I received for Christmas. It works great except I can not get the rainfall to show in inches. I am using your gauges.xml

<title text="Total :n$CURRENT[absolute_rainfall] $UNIT[RAINFALL]" alignement="64" angle="0" position-x="0.47" position-y="0.92">

I am using the ws2300.dll plugin. Is there a configuration file I need to change??

How do I get the rainfall to come out in inches??

Thanks,
Gary
Avatar de l’utilisateur
TiToine
Site Admin
Messages : 3356
Inscription : lun. mars 20, 2006 11:16 am
Localisation : Montréal
Contact :

Message par TiToine »

Hi,

You can change all units in "Setup", tab "Probes".
All stylesheets take account of these changes but sometime the scale remains adapted for universal unit (for example in gauge.xml the scale of wind speed remains between 0 and 180 of the chosen speed unit, but you can change that in editing stylesheet :) ).

Regards,
Antoine.
Gary Empting

Message par Gary Empting »

Antoine,

Thanks for getting back to me so fast.

I have tried changing the Pluviometry to all three setting. The number is always displayed the same. Example. 99.5mm or 99.5 in. It is displayed in the Heavy Weather program as 3.91 inches. I am using version 1.6.1. I have it reading the History.day file. I have change the scale also.

Any other suggestion??

Thanks,
Gary
Gary Empting

Message par Gary Empting »

Antoine,

I found out something while playing with another xml file. If I use Cumulative variable it looks like it is in inches.

Example:
<line text="Total rainfall : $CURRENT[absolute_rainfall] $UNIT[RAINFALL]"/>
<line text="Cumul rainfall : $CUMUL[relative_rainfall] $UNIT[RAINFALL]"/>

Total rainfall : 99.5in
Cumul rainfall : 2.6in

Any ideas??

Thanks,
Gary
Avatar de l’utilisateur
TiToine
Site Admin
Messages : 3356
Inscription : lun. mars 20, 2006 11:16 am
Localisation : Montréal
Contact :

Message par TiToine »

Hum, it seems to be a bug, I have the same problem.
So, you must wait for the future version of GW, sorry :(

Antoine.
Gary Empting

Message par Gary Empting »

Antoine,

Thanks for letting me know.

Is there a way to math on the return value??

Example:

($CURRENT[absolute_rainfall] $UNIT[RAINFALL]) / 10


Thanks,
Gary
Avatar de l’utilisateur
TiToine
Site Admin
Messages : 3356
Inscription : lun. mars 20, 2006 11:16 am
Localisation : Montréal
Contact :

Message par TiToine »

Currently It's not possible, but you can apply a calibration on your rainfall probe.
In Options, Setup, Probes, select the absolute_rainfall probes and apply a calibration on it.
I think you want to multiply the absolute_rainfall value by a factor to change "manually" the unit.
Check the results after because in calibrating a probe, you can change the value of other probes cos they are dependents.
Gary Empting

Message par Gary Empting »

Antoine,

Looking for another suggestion on how to use the probe. I tried to change the absolute_rainfall by setting the second field to 0.03937. So it looked like

Measure corrected = 1 x Measure 0.03937

It does not do anything. What am I missing??

I could not find any documentation or examples on probes.

Thanks,
Gary
Avatar de l’utilisateur
TiToine
Site Admin
Messages : 3356
Inscription : lun. mars 20, 2006 11:16 am
Localisation : Montréal
Contact :

Message par TiToine »

Hi,

Why the second field ?
you should multiply Measure by 0.03937 to get the measure in inch. In the manner you do, you add 0.03937 to the measure.

Antoine.
Gary Empting

Message par Gary Empting »

Hi,

I guess I am confused on how to use the probes correction fields. If 1 mm = 0.03937 inch. I wanted to change the rainfall probe by multipling the current measurement by 0.03937.

Example 99.5(current measure) * 0.03937 = 3.917

This would give the the rainfall in inches.

What would be in each field for the Probe Correction??

Can you only do addtion on the correction??

Thanks,
Gary
Avatar de l’utilisateur
TiToine
Site Admin
Messages : 3356
Inscription : lun. mars 20, 2006 11:16 am
Localisation : Montréal
Contact :

Message par TiToine »

The correction is linear Y=a X + b
Where Y is the calibrated measure, X the original measure.
a, b are factors.

Theoritically the probe calibration is not used for conversion (but currently is the only solution to do the conversion because of a bug in plugin).

You should set the units in inch (to have the correct text units in the stylesheet) and apply a factor ( a=0.03937 ) to the absolute_rainfall probe (possibly the relative_rainfall probe).

Antoine.
Répondre