@idm-plugin/meteo2 0.4.8 → 0.5.0
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 +6 -3
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1667,7 +1667,7 @@ class C0 {
|
|
|
1667
1667
|
const q = b[W];
|
|
1668
1668
|
["ecmwf_wam025", "meteofrance_wave", "ewam", "gwam", "era5_ocean"].includes(q) ? p.push("meteofrance_currents", q) : ["gfswave", "ncep_gfswave025", "ncep_gfswave016"].includes(q) ? p.push("meteofrance_currents", "ncep_gfswave025", "ncep_gfswave016") : p.push("best_match");
|
|
1669
1669
|
}
|
|
1670
|
-
const O = p.reduce((W, q) => (W.includes(q) || W.push(q), W), []), o = ["best_match", "meteofrance_currents", "meteofrance_wave", "ecmwf_wam025", "ncep_gfswave025", "gwam", "era5_ocean", "ewam"];
|
|
1670
|
+
const O = p.reduce((W, q) => (W.includes(q) || W.push(q), W), []), o = ["best_match", "meteofrance_currents", "meteofrance_wave", "ecmwf_wam025", "ncep_gfswave025", "gwam", "era5_ocean", "ewam", "ncep_gfswave016"];
|
|
1671
1671
|
return O.sort((W, q) => {
|
|
1672
1672
|
const d = o.indexOf(W), R = o.indexOf(q);
|
|
1673
1673
|
return d - R;
|
|
@@ -1688,10 +1688,13 @@ class C0 {
|
|
|
1688
1688
|
const d = Y.clone().utc().add(O.forecastDays ?? 1, "day");
|
|
1689
1689
|
d.isAfter(W) ? (d.subtract(1, "year"), Y.isAfter(W) ? (Y.subtract(1, "year"), p.start_dates = [
|
|
1690
1690
|
Y.clone().subtract(O.pastDays || 0, "day").utc().format("YYYY-MM-DD")
|
|
1691
|
-
], p.end_dates = [d.utc().format("YYYY-MM-DD")], p.fakes = [!0], p.url = [this.pickForecastUrl(b, !
|
|
1691
|
+
], p.end_dates = [d.utc().format("YYYY-MM-DD")], p.fakes = [!0], p.url = [this.pickForecastUrl(b, O.selfHosted ?? !0, !0, O)]) : (p.start_dates = [
|
|
1692
1692
|
Y.clone().subtract(O.pastDays || 0, "day").utc().format("YYYY-MM-DD"),
|
|
1693
1693
|
W.clone().subtract(1, "year").utc().format("YYYY-MM-DD")
|
|
1694
|
-
], p.end_dates = [W.clone().subtract(1, "day").utc().format("YYYY-MM-DD"), d.utc().format("YYYY-MM-DD")], p.fakes = [!1, !0], p.url = [
|
|
1694
|
+
], p.end_dates = [W.clone().subtract(1, "day").utc().format("YYYY-MM-DD"), d.utc().format("YYYY-MM-DD")], p.fakes = [!1, !0], p.url = [
|
|
1695
|
+
this.pickForecastUrl(b, O.selfHosted ?? !0, !1, O),
|
|
1696
|
+
this.pickForecastUrl(b, O.selfHosted ?? !0, !0, O)
|
|
1697
|
+
])) : (p.start_dates = [
|
|
1695
1698
|
Y.clone().subtract(O.pastDays || 0, "day").utc().format("YYYY-MM-DD")
|
|
1696
1699
|
], p.end_dates = [d.utc().format("YYYY-MM-DD")], p.fakes = [!1], p.url = [this.pickForecastUrl(b, O.selfHosted ?? !0, Y.isBefore(o.clone().subtract(30, "day")), O)]);
|
|
1697
1700
|
} else
|