mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 18:34:02 +00:00
Wind (NOAA GFS and ECMWF IFS: animated particles, colour field, a reading at map centre), observed weather (NOAA MRMS radar, GOES and NESDIS infrared clouds, lightning density) on one shared history timeline, NHC and CPHC cyclone advisories with tracks and cones, and a WEATHER panel in the right rail. On 3D Tiles the observed products render as raised shells with a sharper window around the view. Co-authored-by: Gustavo Beneduzi <[email protected]> Co-authored-by: Daniel Slay <[email protected]> Co-authored-by: Rehaan Delmotra <[email protected]> Co-authored-by: Cursor Agent <[email protected]>
10 lines
625 B
JavaScript
10 lines
625 B
JavaScript
import test from 'node:test';
|
|
import assert from 'node:assert/strict';
|
|
import { decodeWindGribMessage } from '../../server/providers/wind/decode.js';
|
|
test('decoder uses bounded virtual storage and releases both handle and message on errors', async () => {
|
|
const writes = []; let deleted = false;
|
|
const eccodesModule = { writeFile: (file, bytes) => writes.push(bytes.length), openGrib: () => ({ getLong: () => 1e9, delete: () => { deleted = true; } }) };
|
|
await assert.rejects(decodeWindGribMessage(new Uint8Array(20), { eccodesModule }), /geometry/);
|
|
assert.deepEqual(writes, [20,0]); assert.equal(deleted, true);
|
|
});
|