StdCalibrate math question

91 views
Skip to first unread message

Steve2Q

unread,
Jan 21, 2024, 11:14:11 AM1/21/24
to weewx-user
I have a calibration curve for my outdoor humidity sensor that includes division and an exponent. The formula is : OutHumidity = 92.2/(1+(1/(OutHumididty/64.6)^3.47))  Can this be handled by StdCalibrate?

Tom Keffer

unread,
Jan 21, 2024, 12:19:58 PM1/21/24
to weewx...@googlegroups.com
Yes, of course. Just substitute "**" for "^" so it's a Python expression. Or, use the math function pow().

On Sun, Jan 21, 2024 at 8:14 AM Steve2Q <ste...@gmail.com> wrote:
I have a calibration curve for my outdoor humidity sensor that includes division and an exponent. The formula is : OutHumidity = 92.2/(1+(1/(OutHumididty/64.6)^3.47))  Can this be handled by StdCalibrate?

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/9e1d1a9b-faa3-48f9-8ca1-5cfeb712def9n%40googlegroups.com.

Graham Eddy

unread,
Jan 21, 2024, 5:07:01 PM1/21/24
to WeeWX User
it is worth noting and perhaps documenting that python builtin functions can be used in StdCalibrate expressions
⊣GE⊢

Tom Keffer

unread,
Jan 21, 2024, 6:02:42 PM1/21/24
to weewx...@googlegroups.com
It is documented.

expression is a valid Python expression involving any observation types in the same record, or functions in the math module


Reply all
Reply to author
Forward
0 new messages