Glenn, Other things and a need to reacquaint myself with #491 <https://github.com/weewx/weewx/issues/491> have delayed me getting back to you. You are correct that StdWXCalculate cannot calculate rate based fields other than rainRate. #491 considered a number of approaches for calculating delta fields from total fields (the case in hand being field rain from a rain total field) and a number of approaches were considered, these approaches impacted on some of the other StdWXCalculate functions and I suspect my comment earlier in this thread was based on some of the early development code written under #491. As it turned out the final #491 solution resulted in the current hard coded rainRate approach.
Happy you look at generalising rate based calculation in StdWXCalculate and I have raised issue #813 <https://github.com/weewx/weewx/issues/813> to track this. Should have some time in the next week to work on this. Gary On Sunday, 13 November 2022 at 16:16:11 UTC+10 Glenn McKechnie wrote: > On 29/06/2020, gjr80 <...> wrote: > > I would not worry about raising anything Christian, the code I am > working on > > would allow something like a rate based field to be calculated from some > > other (user specified) field. You still have to add any necessary extra > > fields to your database yourself, but StdWXCalculate could be configured > to > > create the rate based field. No guarantees as it needs the Tom-tick but > it > > looks good so far. > > Breathing life into an old thread... > > Did this idea get the "Tom-tick"? > > I'm using hail and hailrate. > > I've had a look at issue #491 and the new wxxtypes and wondering if > that is what was being referenced here. I can't see a way to make hail > (or snow!) work with it (RainRater) though. Hopefully some simple > stanza under [StdWXCalculate] [[WXXTypes]]? > > I co-opted the hail field a while ago and have 5 years of data > supplied via a modified OWFS driver. > > It would be helpful to have the hailrate to compare with the rainrate > from the original rain gauge as I'm cleaning up some extreme rain > values; which also means that issue #787 (wee_database --calc-missing > does not correctly calculate rainRate) bites if I want the historical > values? > -- > > > Cheers > Glenn > > rorpi - read only raspberry pi & various weewx addons > https://github.com/glennmckechnie > -- 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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/1e8d4083-e7ae-4c9c-bc54-36efb147c886n%40googlegroups.com.