2-byte Rainfall Rate Format (DB_RAINRATE2)
Rainfall rates are stored in 16-bit floating-point representation of a 27-bit integer in units of 0.0001 mm/hr.
The floating-point number consists of a 4-bit exponent in the high four bits, followed by a 12-bit mantissa. It uses implied digits and soft underflow. If the exponent is 0, the mantissa consists of the value.
If the exponent is 1 ... 15, the 12-bit mantissa has a 1 prefixed to it, making it a 13-bit mantissa. This 13-bit mantissa is shifted up by one less than the exponent.
The following table gives some examples.
| Float | Fixed | Meaning | |
|---|---|---|---|
| 0 | —> | 0 | No data available |
| 1 | —> | 1 | 0.0000 mm/hr |
| 2 | —> | 2 | 0.0001 mm/hr |
| 225 | —> | 225 | 0.0254 mm/hr |
| 1000 | —> | 1000 | 0.0999 mm/hr |
| 9096 | —> | 10000 | 0.9999 mm/hr |
| 22634 | —> | 100000 | 9.9999 mm/hr |
| 34922 | —> | 800000 | 79.9999 mm/hr |
| 50000 | —> | 10125312 | 1012.5311 mm/hr |
| 65534 | —> | 134184960 | 13418.4959 mm/hr or above |
| 65535 | —> | Area not scanned |
