@idm-plugin/meteo2 0.7.1 → 0.7.3

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.
package/dist/index.js CHANGED
@@ -1643,9 +1643,11 @@ class J0 {
1643
1643
  for (let W = M[b][p][c].length; W < z[b][p][c].length; W++)
1644
1644
  M[b][p][c].push(z[b][p][c][W]);
1645
1645
  } else {
1646
- const W = L(z[b][p].date).diff(L(M[b][p].date), "h");
1647
- for (let A = W; A < z[b][p][c].length; A++)
1648
- c === "time" ? M[b][p][c].push(z[b][p][c][A] + W) : M[b][p][c].push(z[b][p][c][A]);
1646
+ const W = L(z[b][p].date), A = L(M[b][p].date);
1647
+ for (let o = 0; o < z[b][p][c].length; o++) {
1648
+ const d = W.clone().add(o, "h").diff(A, "h");
1649
+ d < M[b][p][c].length ? M[b][p][c][d] === null && (M[b][p][c][d] = z[b][p][c][o]) : c === "time" ? M[b][p][c].push(d) : M[b][p][c].push(z[b][p][c][o]);
1650
+ }
1649
1651
  }
1650
1652
  } else if (p === "daily") {
1651
1653
  for (const c in z[b][p])
@@ -2461,7 +2463,7 @@ class T {
2461
2463
  * @returns 风圈半径对象
2462
2464
  */
2463
2465
  static estimateWindRadii(M, z, b) {
2464
- if (!M || M < 17)
2466
+ if (!M || M < 32)
2465
2467
  return { r7: null, r10: null, r12: null };
2466
2468
  const p = T.estimateRMW(M, z, b), c = p * 2.5, W = M >= 50 ? p * 1.8 : null, A = M >= 64 ? p * 1.3 : null;
2467
2469
  return {