Inaccurate temporal interpolation
the temporal interpolation from the time series of binay snow (0 or 1) is done by outputing a 1 bit file (binary daily snow)
But OTB converts a real number to 1 Bit by doing 'floor' (rounds to the next lower integer) not by 'round' (rounding to the nearest integer)
Input
| Day | Snow |
|---|---|
| 1 | 0 |
| 5 | 1 |
| 10 | 0 |
Output
| Day | Snow |
|---|---|
| 1 | 0 |
| 2 | 0 |
| 3 | 0 |
| 4 | 0 |
| 5 | 1 |
| 6 | 0 |
| 7 | 0 |
| 8 | 0 |
| 9 | 0 |
| 10 | 0 |
Whereas we want
Output
| Day | Snow |
|---|---|
| 1 | 0 |
| 2 | 0 |
| 3 | 0 |
| 4 | 1 |
| 5 | 1 |
| 6 | 1 |
| 7 | 1 |
| 8 | 0 |
| 9 | 0 |
| 10 | 0 |