Skip to content

Commit b442799

Browse files
author
Vincent van der Wal
committed
gusts also in knots
1 parent c37686a commit b442799

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/om-protocol.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,15 @@ export const omProtocol = async (
346346
const ranges = dimensions.map((dim, _) => {
347347
return { start: 0, end: dim };
348348
});
349-
const data = await fileReader.reader.read(
349+
let data = await fileReader.reader.read(
350350
OmDataType.FloatArray,
351351
ranges
352352
);
353+
354+
if (variable.value == 'wind_gusts_10m') {
355+
data = data.map((val) => val * 1.94384);
356+
}
357+
353358
omFileDataCache.set(omUrl, { values: data });
354359
}
355360
}

0 commit comments

Comments
 (0)