You should try using the --calc-missing action 
<http://weewx.com/docs/utilities.htm#Action_--calc-missing> with 
wee_database. --calc-missing will calculate any missing derived 
observations in your database, rainRate is a derived observation as far as 
WeeWX is concerned, you may have prefer_hardware against rainRate in 
StdWXCalculate but that should not matter in this case (prefer_hardware simply 
means try to get the observation from the station/driver and if you can't 
calculate it). wee_database does not interrogate your station/driver for 
data in any way.

Note that for wee_database to consider an observation to be 'missing' the 
corresponding database field(s) must be empty or have been set to 
null/None. Being set to 0 (zero) is not considered empty nor is saving a 
zero length string (as can happen sometimes when using a graphical frontend 
to edit your database) and hence will not be re-calculated. Assuming you 
are dealing with a small segment of your data, you may wish to use the 
--from and --to command line options when using --calc-missing to limit the 
date span to be re-calculated.

Gary
On Sunday, 15 January 2023 at 00:45:54 UTC+10 [email protected] wrote:

> Hi. I have a Davis Vantage Pro 2. StdWxCalculate says that rainrate should 
> be taken from 'prefered hardware'.
>
> However, I needed to add some rainticks into the database, to correct 
> daily rainfall sums (long story, tipping bucket broke down). I want to 
> recalculate all rainrate values.
>
> What is the way to do that?
>
> I tried wee_database --drop-daily and --rebuild-daily, but the stored 
> rainrate values remain the same (which makes sense, as in StdWxCalculate it 
> should take them from hardware, which Davis provides). But now, I want to 
> recalculate rainrate values, based on the rain-values that's already in the 
> database.
>
> Can this be done? How?
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/0f130034-1ed4-467e-9d4a-f210c6a865cbn%40googlegroups.com.

Reply via email to