autumnplot-gl 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/RawField.js +2 -2
  2. package/package.json +1 -1
package/lib/RawField.js CHANGED
@@ -463,8 +463,8 @@ class RawProfileField {
463
463
  }
464
464
  /** Get the gridded storm motion vector field (internal method) */
465
465
  getStormMotionGrid() {
466
- const u = new Float16Array(this.grid.ni * this.grid.nj);
467
- const v = new Float16Array(this.grid.ni * this.grid.nj);
466
+ const u = new Float16Array(this.grid.ni * this.grid.nj).fill(parseFloat('nan'));
467
+ const v = new Float16Array(this.grid.ni * this.grid.nj).fill(parseFloat('nan'));
468
468
  this.profiles.forEach(prof => {
469
469
  const idx = prof.ilon + this.grid.ni * prof.jlat;
470
470
  u[idx] = prof.smu;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autumnplot-gl",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",