Environmental computing
Recording a missing rain reading
Zero rainfall and an empty observation are two different entries in a weather log. The distinction matters the moment you calculate a daily average.
Pair the value with its interval
Store the start and end of the observation alongside the depth. If a reader visits a gauge on Monday and again on Wednesday, the second value covers the whole interval between visits. Assigning it to Wednesday alone would invent a daily pattern. A separate status field can flag an interval that spans several expected readings.
Check a small example by hand
Try a three-day series with readings of zero millimetres, a missing value and six millimetres. The mean over the two observed days is three millimetres, and coverage is two days out of three. Reporting both numbers lets a reader judge what the summary represents. Keep this tiny series as a test case for your import routine.