pub const HUMIDITY_SENSOR_TOLERANCE_PERCENT: f64 = 5.0;Expand description
How far, in percentage points, a relative-humidity READING may lie outside 0-100 % and still be read as the saturated (100 %) or dry (0 %) air it measures: 5.
Weather is an input source, never a gate. The humidity a shooter enters is most often a
sensor’s (a Kestrel, a WEATHERmeter, a phone), and relative-humidity sensors are good to
about ±2-3 %: in fog and other condensing air they read above 100 %, where free air is
supersaturated by under 1 %, and in very dry air they can read a little below 0 %. Such a
reading is sensor error around saturated or dry air, not a different atmosphere, and must
not fail a calculation. So RelativeHumidity::try_percent accepts a percent from -5 to
105 and stores it clamped into 0..=100 (101.7 is exactly 100, -2 exactly 0), and
RelativeHumidity::try_fraction does the same with a fraction from -0.05 to 1.05. Every
surface reads humidity through those two constructors, so every surface has this band.
A value farther out is refused, as before: it is not a reading of real air but a wrong unit
(a percent sent as a fraction) or a typo. Air that cannot exist at all (a water-vapour mole
fraction of 1 or more) is a separate rule, StationAir::new’s, and the band does not
relax it.