The ruler lies
The ruler lies
A bottle is wider than its funnel, so a millimetre in the bottle is not a millimetre of rain. The fix is a ratio.
@@ -12,4 +12,6 @@ def reading(depth_mm):
"""Rain fallen, from the depth of water in the bottle."""
- return depth_mm
+ # The bottle's mouth is wider than the funnel's: scale by the ratio of their areas.
+ ratio = (FUNNEL_DIAMETER_MM / BOTTLE_DIAMETER_MM) ** 2
+ return depth_mm * ratio
The first two weeks of June, read again through the ratio, from data/rain.csv:
The numbers
| day | mm |
|---|---|
| 1 June 2026 | 0 |
| 2 June 2026 | 4.5 |
| 3 June 2026 | 12 |
| 4 June 2026 | 9 |
| 5 June 2026 | 31 |
| 6 June 2026 | 22.5 |
| 7 June 2026 | 3 |
| 8 June 2026 | 0 |
| 9 June 2026 | 7 |
| 10 June 2026 | 18 |
| 11 June 2026 | 44 |
| 12 June 2026 | 26 |
| 13 June 2026 | 10 |
| 14 June 2026 | 2 |
The same days as a line:
The numbers
| day | mm |
|---|---|
| 1 June 2026 | 0 |
| 2 June 2026 | 4.5 |
| 3 June 2026 | 12 |
| 4 June 2026 | 9 |
| 5 June 2026 | 31 |
| 6 June 2026 | 22.5 |
| 7 June 2026 | 3 |
| 8 June 2026 | 0 |
| 9 June 2026 | 7 |
| 10 June 2026 | 18 |
| 11 June 2026 | 44 |
| 12 June 2026 | 26 |
| 13 June 2026 | 10 |
| 14 June 2026 | 2 |
It went in as monsoon/rain-gauge pull request #14, which closes monsoon/rain-gauge issue #9, the report that started it; the ratio itself is monsoon/rain-gauge commit @3f2a9c1, on monsoon/rain-gauge branch @ratio until it was tagged monsoon/rain-gauge tag @v0.3.0. A hydrology toolkit had made the same mistake and the same fix years before, in hydro/tools pull request #30.
Each of those is an address pasted as it is: the theme draws a forge’s pull request, issue, commit, branch or tag as
the forge’s mark and the reference the forges write themselves: # and the number for a pull request or an issue,
@ for a commit, a branch or a tag. Written {plain}, one stays its address —
https://git.example.org/monsoon/rain-gauge/pulls/14 — and a link with words of its own keeps them:
the fix.
The station sends its readings home over plain HTTP, as RFC 9110 says, and the retry waits as RFC 9110 §10.2.3 asks. The logger’s compression library was the one CVE-2024-3094 was found in, so it was pinned below it; the record is also CVE-2024-3094. A standard and an advisory are drawn by the name a reader says, RFC and number, the CVE’s own id, whichever site the address is on.
সাবস্ক্রাইব
মাপ ওঠে যখন মাপা হয়, কোনো নিয়মে নয়: বেশিরভাগ সপ্তাহে দুবার, বর্ষায় রোজ। যেভাবেই অনুসরণ করুন, আপনার কিছুই এখানে রাখা হয় না।
- ফিড রিডারে
- Atom · JSON Feed. প্রতিটি বিভাগের আলাদা ফিডও আছে: বিভাগের ঠিকানার শেষে feed.xml।
- ফেডিভার্সে
- ম্যাস্টোডন বা অন্য যেকোনো ফেডিভার্স অ্যাপে https://adventure.x.bdeshi.space/ খুঁজে ফলো করুন।
- নিজের সাইট থেকে
- ইন্ডিওয়েব রিডারে https://adventure.x.bdeshi.space/bn/ ফলো করুন। নিজের সাইট থেকে কোনো লেখার উত্তর, লাইক বা রিপোস্ট ওয়েবমেনশনে এখানকার লেখায় পৌঁছায়।
The ruler lies
A bottle is wider than its funnel, so a millimetre in the bottle is not a millimetre of rain. The fix is a ratio.
@@ -12,4 +12,6 @@ def reading(depth_mm):
"""Rain fallen, from the depth of water in the bottle."""
- return depth_mm
+ # The bottle's mouth is wider than the funnel's: scale by the ratio of their areas.
+ ratio = (FUNNEL_DIAMETER_MM / BOTTLE_DIAMETER_MM) ** 2
+ return depth_mm * ratio
The first two weeks of June, read again through the ratio, from data/rain.csv:
| day | mm |
|---|---|
| 1 June 2026 | 0 |
| 2 June 2026 | 4.5 |
| 3 June 2026 | 12 |
| 4 June 2026 | 9 |
| 5 June 2026 | 31 |
| 6 June 2026 | 22.5 |
| 7 June 2026 | 3 |
| 8 June 2026 | 0 |
| 9 June 2026 | 7 |
| 10 June 2026 | 18 |
| 11 June 2026 | 44 |
| 12 June 2026 | 26 |
| 13 June 2026 | 10 |
| 14 June 2026 | 2 |
The same days as a line:
| day | mm |
|---|---|
| 1 June 2026 | 0 |
| 2 June 2026 | 4.5 |
| 3 June 2026 | 12 |
| 4 June 2026 | 9 |
| 5 June 2026 | 31 |
| 6 June 2026 | 22.5 |
| 7 June 2026 | 3 |
| 8 June 2026 | 0 |
| 9 June 2026 | 7 |
| 10 June 2026 | 18 |
| 11 June 2026 | 44 |
| 12 June 2026 | 26 |
| 13 June 2026 | 10 |
| 14 June 2026 | 2 |
It went in as monsoon/rain-gauge pull request #14, which closes monsoon/rain-gauge issue #9, the report that started it; the ratio itself is monsoon/rain-gauge commit @3f2a9c1, on monsoon/rain-gauge branch @ratio until it was tagged monsoon/rain-gauge tag @v0.3.0. A hydrology toolkit had made the same mistake and the same fix years before, in hydro/tools pull request #30.
Each of those is an address pasted as it is: the theme draws a forge’s pull request, issue, commit, branch or tag as
the forge’s mark and the reference the forges write themselves: # and the number for a pull request or an issue,
@ for a commit, a branch or a tag. Written {plain}, one stays its address —
https://git.example.org/monsoon/rain-gauge/pulls/14 — and a link with words of its own keeps them:
the fix.
The station sends its readings home over plain HTTP, as RFC 9110 says, and the retry waits as RFC 9110 §10.2.3 asks. The logger’s compression library was the one CVE-2024-3094 was found in, so it was pinned below it; the record is also CVE-2024-3094. A standard and an advisory are drawn by the name a reader says, RFC and number, the CVE’s own id, whichever site the address is on.
মাপ ওঠে যখন মাপা হয়, কোনো নিয়মে নয়: বেশিরভাগ সপ্তাহে দুবার, বর্ষায় রোজ। যেভাবেই অনুসরণ করুন, আপনার কিছুই এখানে রাখা হয় না।
- ফিড রিডারে
- Atom · JSON Feed. প্রতিটি বিভাগের আলাদা ফিডও আছে: বিভাগের ঠিকানার শেষে feed.xml।
- ফেডিভার্সে
- ম্যাস্টোডন বা অন্য যেকোনো ফেডিভার্স অ্যাপে https://adventure.x.bdeshi.space/ খুঁজে ফলো করুন।
- নিজের সাইট থেকে
- ইন্ডিওয়েব রিডারে https://adventure.x.bdeshi.space/bn/ ফলো করুন। নিজের সাইট থেকে কোনো লেখার উত্তর, লাইক বা রিপোস্ট ওয়েবমেনশনে এখানকার লেখায় পৌঁছায়।