Fix drawing of temperature, precipitation, wind

This commit is contained in:
Guntis Smaukstelis
2025-02-04 19:42:35 +02:00
parent df8d16ed4a
commit 2b1e348dde
7 changed files with 43 additions and 32 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ object GribParser {
bytes <- readBytes(path, ptr, 64)
length = ByteBuffer.wrap(bytes.slice(0, 4)).getInt
bitsPerDataPoint = bytes(19).toInt
reference = ByteBuffer.wrap(bytes.slice(11, 15)).getInt
reference = ByteBuffer.wrap(bytes.slice(11, 15)).getFloat
binaryScale = -(bytes(16) & 0xFF)
decimalScale = bytes(18) & 0xFF
conversion = MeteoConversion(reference, binaryScale, decimalScale)