Thank you for your reply and for your willingness to help. I've been a satisfied QGIS user for several years now; I manage a few stations, so I have a pretty good idea of how things work. I deliberately didn't provide details about the station model, console, etc., because I'd like the solution to be hardware agnostic. I'm familiar with the Wiki article, but unfortunately, it doesn't explain what I'm asking about. Or maybe I just can't read between the lines :)
As for the barometer readings, I have two (WH25A and WN32P), and each shows a different value. Their readings differ by exactly 10 hPa. I have a Python script that retrieves the current METAR for a nearby airport, and based on the specified altitude above sea level and the entered pressure, it calculates the "correct" pressure and reports the offset of my barometer from the airport's. It saves the results to a file and calculates the mean and median from several measurements. That's why I wrote that I'm interested in a pressure correction of +6 hPa, because that's how much the WH25A sensor underreports (I borrowed a WN32P for verification only). I'd simply like to understand how the correction calculation workflow works, as specified in the [StdCalibrate] / [[Corrections]] section of weewx.conf. At what point is this correction applied, and to which "measurement" method—only software? Only hardware? Both? My reasoning is as follows: 1. I set the pressure correction to pressure = pressure + 6.0 in weewx.conf; I don't change anything in the station console—no offsets, no entering "correct" ABS or REL pressure 2. After setting the pressure correction, should I set pressure = prefer_hardware or software? 3. What should I do with barometer then, to avoid applying a double correction or causing a calculation error? wtorek, 7 lipca 2026 o 14:30:48 UTC+2 Greg Troxel napisał(a): > "'Tomasz Lewicki' via weewx-user" <[email protected]> writes: > > > Please help me understand the workflow for pressure/barometer > calculations > > in Weewx. > > First, read this: > > https://github.com/weewx/weewx/wiki/Barometer,-pressure,-and-altimeter > > Given auxilliary data (temperature, humidity, elevation), one can > convert between pressure/barometer and pressure/altimeter. weewx has > code that when a driver reports some but not all of those, it can > calculate the rest. > > Different consoles have different behavior. I will assume that a > console should display barometer. Physically, consoles measure station > pressure. > > > Here’s the situation. Let’s say my barometer reads 970 hPa. Setting > aside > > how the reduced pressure is calculated, I know that it underestimates > the > > pressure by 6 hPa. I’d like to inform Weewx of this without using the > > weather station console—that is, without physically entering corrections > > into the console. In other words, I want to do this in weewx.conf. > > There are assumptions lurking in your statements, and I'd like to draw > them out. > > The correct approach is for the console to have: > - an altitude setting > - a station pressure calibration offset (well, it could be an offset > at some pressure and a slope, or more complicated but I've never > seen that in any instrument people use with weewx) > and then for the console to calculate baromter. > > You haven't said what kind of station hardware you are using, and more > importantly, what values it reports. > > You are saying you "don't want to" do this in the console, but you don't > explain why. I think if you can adjust station pressure in the console, > that's the best place. > > You say it underestimates barometer. You didn't explain how well you > have determined height -- which is quite difficult, and it's roughly > 0.12 hPa per meter. > > Your 6 hpa is likely some combination of station pressure error and > altitude error. That's a lot. I would be suspicioiukous of the > hardware at anything over 3 hPa error. > > Because of the error being caused by station pressure reading error and > altitude setting error, it's likely to change somewhat. You are going > to have some second-order error from applying a barometer correction, > but I suspect that's in the noise compared to your other error sources > (like time variation in station pressure error). > > > I’ve made the following changes: > > [[[Units]]] > > [[[[Groups]]]] > > group_pressure = hPa > > > > [StdCalibrate] > > [[Corrections]] > > pressure = pressure + 6.0 > > > > [StdWXCalculate] > > [[Calculations]] > > barometer = WHAT SHOULD BE HERE? > > pressure = AND HERE? > > In order to decide what to do, you need to understand for each of > barometer, pressure, altimeter if they are > > reported by the station or not > > calculated by weewx or not (and obviously, if not reported, must be > calculated) > > Under > > [StdWXCalculate] > > [[Calculations]] > > There are configuration directives to prefer_hardware. > > > > My advice is: > > Tell us what station hardware you are using. (Really, read > https://github.com/weewx/weewx/wiki/Help!-Posting-to-weewx-user > and include what was asked for and relevant. The OS part is very > likely not important, but model of station, and how you have > configured it is very important.) > > Understand which values are reported (turn on debugging and watch LOOP > packets) and which are calculated, in the default setup. > > Consider setting barometer/altimeter to calculated, and go with with > your correction to pressure (which is "Station Pressure") > -- 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 visit https://groups.google.com/d/msgid/weewx-user/ba8926a5-5cb4-42cd-881c-089a00655b03n%40googlegroups.com.
