You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ echo "201701010000,1,160,-1,,,100000000" | meteo-vm2-to-bufr
1:[201701010000,1,160,-1,,,100000000] - Value -1 is outside the range [-0.1,1638.1] for B13011 (TOTAL PRECIPITATION / TOTAL WATER EQUIVALENT)
We should implement the behaviour of dbavm (in pseudocode):
if is_out_of_range(value) {
if not is_out_of_range(0) {
value = 0
} else {
value = avg(range[0], range[1])
}
attributes.append(B33196=0)
}
I'm not quite sure that B33196=0 is right: in the original code a comments says "Mark as replaced", but B33196=1 is "Manual invalidation" (note that the value is 1) and B33197 is "[SIM] Manual replacement in substitution".
The text was updated successfully, but these errors were encountered:
Now, a value out of range is ignored:
We should implement the behaviour of
dbavm
(in pseudocode):I'm not quite sure that
B33196=0
is right: in the original code a comments says "Mark as replaced", butB33196=1
is "Manual invalidation" (note that the value is1
) andB33197
is "[SIM] Manual replacement in substitution".The text was updated successfully, but these errors were encountered: