v3 preview: solar plus storage with five reserve products, reference replays (anchor, AS-hog, sponge, energy-only) (part 10)
Browse files- stage/director.js +36 -3
- stage/line.js +1 -1
- stage/plant.js +452 -0
- stage/stage.js +25 -7
- stage/terrain.js +4 -3
- stage/yard.js +50 -6
- style.css +88 -0
- thumbs/39595d5a766915d8.jpg +0 -0
- ui/chartshybrid.js +80 -0
- ui/hud.js +1 -1
- ui/hudhybrid.js +607 -0
- ui/picker.js +5 -5
- weather/2023-08-10_HB_NORTH.json +1 -0
- weather/2023-09-06_HB_WEST.json +1 -0
- weather/2024-03-29_HB_WEST.json +1 -0
- weather/2025-02-15_LZ_WEST.json +1 -0
- weather/2025-03-02_LZ_CPS.json +1 -0
- weather/2025-03-05_LZ_NORTH.json +1 -0
stage/director.js
CHANGED
|
@@ -2,11 +2,11 @@ import * as THREE from "three";
|
|
| 2 |
|
| 3 |
const ease = (u) => (u <= 0 ? 0 : u >= 1 ? 1 : u * u * (3 - 2 * u));
|
| 4 |
const lerp = (a, b, u) => a + (b - a) * u;
|
| 5 |
-
const PRIORITY = { violation: 6, neg: 5, ramp: 4, push: 3, establish: 1, sub: 1, high: 1, line: 2, city: 1 };
|
| 6 |
|
| 7 |
/** The automatic camera: a shot list cut from the day (establishing orbit, a push in when the action changes, a wide
|
| 8 |
* shot down the line on the evening ramp, a close shot on a negative-price hour), each a pose as a function of t. */
|
| 9 |
-
export function buildDirector(d, L, { night }) {
|
| 10 |
const slots = Array.from({ length: 24 * 4 }, (_, i) => ({ kind: i < 8 ? "establish" : null, p: i < 8 ? 2 : 0 }));
|
| 11 |
const claim = (t0, t1, kind) => {
|
| 12 |
for (let i = Math.max(0, Math.round(t0 * 4)); i < Math.min(96, Math.round(t1 * 4)); i++)
|
|
@@ -24,7 +24,16 @@ export function buildDirector(d, L, { night }) {
|
|
| 24 |
const negH = d.hours.find((x) => x.neg && x.action < 0)?.h ?? d.firstNeg;
|
| 25 |
if (negH >= 0) claim(negH - 0.1, negH + 1.9, "neg");
|
| 26 |
if (d.trunc != null) claim(d.trunc - 0.1, d.trunc + 2.2, "violation");
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
let f = 0;
|
| 29 |
for (let i = 0; i < 96; i++) {
|
| 30 |
if (slots[i].kind) continue;
|
|
@@ -100,6 +109,30 @@ export function buildDirector(d, L, { night }) {
|
|
| 100 |
return { pos: [L.sx - 34 + 12 * u, 11, 36], look: [L.sx + 4, 5, -2], fov: 48 };
|
| 101 |
},
|
| 102 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
const out = { pos: new THREE.Vector3(), look: new THREE.Vector3(), fov: 45, shot: null };
|
| 104 |
function pose(t, force = null, reduced = false, drift = null) {
|
| 105 |
const tt = Math.max(0, Math.min(23.999, t));
|
|
|
|
| 2 |
|
| 3 |
const ease = (u) => (u <= 0 ? 0 : u >= 1 ? 1 : u * u * (3 - 2 * u));
|
| 4 |
const lerp = (a, b, u) => a + (b - a) * u;
|
| 5 |
+
const PRIORITY = { violation: 6, deploy: 6, stow: 5.5, neg: 5, ramp: 4, poi: 4, push: 3, solar: 3, establish: 1, sub: 1, high: 1, line: 2, city: 1, array: 1 };
|
| 6 |
|
| 7 |
/** The automatic camera: a shot list cut from the day (establishing orbit, a push in when the action changes, a wide
|
| 8 |
* shot down the line on the evening ramp, a close shot on a negative-price hour), each a pose as a function of t. */
|
| 9 |
+
export function buildDirector(d, L, { night, plant = null }) {
|
| 10 |
const slots = Array.from({ length: 24 * 4 }, (_, i) => ({ kind: i < 8 ? "establish" : null, p: i < 8 ? 2 : 0 }));
|
| 11 |
const claim = (t0, t1, kind) => {
|
| 12 |
for (let i = Math.max(0, Math.round(t0 * 4)); i < Math.min(96, Math.round(t1 * 4)); i++)
|
|
|
|
| 24 |
const negH = d.hours.find((x) => x.neg && x.action < 0)?.h ?? d.firstNeg;
|
| 25 |
if (negH >= 0) claim(negH - 0.1, negH + 1.9, "neg");
|
| 26 |
if (d.trunc != null) claim(d.trunc - 0.1, d.trunc + 2.2, "violation");
|
| 27 |
+
if (d.hybrid) {
|
| 28 |
+
const noon = d.hours.reduce((a, x) => (x.pvAvail > d.hours[a].pvAvail ? x.h : a), 0);
|
| 29 |
+
if (d.hours[noon].pvAvail > 5) claim(noon - 1.4, noon + 0.6, "solar");
|
| 30 |
+
const full = d.hours.find((x) => x.export >= 0.96 * d.L && x.h !== noon);
|
| 31 |
+
if (full) claim(full.h + 0.1, full.h + 1.3, "poi");
|
| 32 |
+
const st = d.hours.find((x) => x.neg && x.pvAvail > 5 && x.curtailed > 0.9 * x.pvAvail);
|
| 33 |
+
if (st) claim(st.h - 0.1, st.h + 1.7, "stow");
|
| 34 |
+
for (const w of d.wins) if (d.hours[Math.min(23, Math.floor(w.a / 60))].awards[w.product] > 0) claim(w.a / 60 - 0.15, w.a / 60 + 1.5, "deploy");
|
| 35 |
+
}
|
| 36 |
+
const fill = d.hybrid ? ["sub", "establish", "solar", "line", "array", "high"] : d.region.city.lights >= 0.85 ? ["sub", "establish", "city", "line", "high"] : ["sub", "establish", "line", "high"];
|
| 37 |
let f = 0;
|
| 38 |
for (let i = 0; i < 96; i++) {
|
| 39 |
if (slots[i].kind) continue;
|
|
|
|
| 109 |
return { pos: [L.sx - 34 + 12 * u, 11, 36], look: [L.sx + 4, 5, -2], fov: 48 };
|
| 110 |
},
|
| 111 |
};
|
| 112 |
+
if (plant) {
|
| 113 |
+
const [ax, az] = plant.aisle, [gx, gz] = plant.along;
|
| 114 |
+
const dx = ax - L.cx, dz = az, r = Math.hypot(dx, dz) || 1;
|
| 115 |
+
Object.assign(poses, {
|
| 116 |
+
solar(u) {
|
| 117 |
+
const k = r + 150 - 40 * u;
|
| 118 |
+
return { pos: [L.cx + (dx / r) * k - (dz / r) * 60, 46 - 6 * u, (dz / r) * k + (dx / r) * 60], look: [L.cx + dx * 0.35, 0, dz * 0.35], fov: 42 };
|
| 119 |
+
},
|
| 120 |
+
stow(u) {
|
| 121 |
+
return { pos: [ax - gx * (30 - 14 * u), 3.4, az - gz * (30 - 14 * u)], look: [ax + gx * 90, 1.2, az + gz * 90], fov: 50 };
|
| 122 |
+
},
|
| 123 |
+
poi(u) {
|
| 124 |
+
const mx = L.sx + 15, mz = 11.5;
|
| 125 |
+
return { pos: [mx + 5.2 - 1.5 * u, 2.9, mz + 6.8 - 0.8 * u], look: [mx - 2.4, 2.4, mz - 2], fov: 42 };
|
| 126 |
+
},
|
| 127 |
+
deploy(u) {
|
| 128 |
+
return { pos: [L.cx - 14 + 22 * u, 17, zf + 36], look: [L.sx + 70, 4, -8], fov: 46 };
|
| 129 |
+
},
|
| 130 |
+
array(u, s) {
|
| 131 |
+
const a = 3.6 + (s.n % 2) * 1.1 + 0.25 * u;
|
| 132 |
+
return { pos: [L.cx + dx * 0.4 + Math.cos(a) * 640, 230, dz * 0.4 + Math.sin(a) * 640], look: [L.cx + dx * 0.4, 0, dz * 0.4], fov: 40 };
|
| 133 |
+
},
|
| 134 |
+
});
|
| 135 |
+
}
|
| 136 |
const out = { pos: new THREE.Vector3(), look: new THREE.Vector3(), fov: 45, shot: null };
|
| 137 |
function pose(t, force = null, reduced = false, drift = null) {
|
| 138 |
const tt = Math.max(0, Math.min(23.999, t));
|
stage/line.js
CHANGED
|
@@ -46,7 +46,7 @@ function catenary(a, b, sag, n = 18) {
|
|
| 46 |
return pts;
|
| 47 |
}
|
| 48 |
|
| 49 |
-
function pulseMaterial() {
|
| 50 |
return new THREE.ShaderMaterial({
|
| 51 |
transparent: true, depthWrite: false, blending: THREE.AdditiveBlending, toneMapped: false,
|
| 52 |
uniforms: { uColor: { value: new THREE.Color("#2fd3ff") }, uMap: { value: glowTexture() }, uScale: { value: 600 }, uSize: { value: 2.6 }, uI: { value: 1 }, uFog: { value: 1e-4 } },
|
|
|
|
| 46 |
return pts;
|
| 47 |
}
|
| 48 |
|
| 49 |
+
export function pulseMaterial() {
|
| 50 |
return new THREE.ShaderMaterial({
|
| 51 |
transparent: true, depthWrite: false, blending: THREE.AdditiveBlending, toneMapped: false,
|
| 52 |
uniforms: { uColor: { value: new THREE.Color("#2fd3ff") }, uMap: { value: glowTexture() }, uScale: { value: 600 }, uSize: { value: 2.6 }, uI: { value: 1 }, uFog: { value: 1e-4 } },
|
stage/plant.js
ADDED
|
@@ -0,0 +1,452 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import * as THREE from "three";
|
| 2 |
+
import { box, canvasTexture, cyl, glowTexture, inst, insulator, mat4, merge, V } from "./kit.js";
|
| 3 |
+
import { pulseMaterial } from "./line.js";
|
| 4 |
+
import { rng } from "./rng.js";
|
| 5 |
+
import { gravelMaterial } from "./terrain.js";
|
| 6 |
+
|
| 7 |
+
/** A 1P single-axis tracker row: 90 modules of 1.13 m in portrait across a 2.38 m wide table, about 52 kWdc. */
|
| 8 |
+
const ROW = { len: 104, w: 2.38, kw: 52, pitch: 6.8, hub: 1.7, posts: 12 };
|
| 9 |
+
const BLOCK = { rows: 40, gap: 14, road: 10 };
|
| 10 |
+
const BX = BLOCK.rows * ROW.pitch + BLOCK.road;
|
| 11 |
+
const BZ = 2 * ROW.len + BLOCK.gap + BLOCK.road;
|
| 12 |
+
const GCR = ROW.w / ROW.pitch;
|
| 13 |
+
const MAX_TILT = 60;
|
| 14 |
+
const DEG = Math.PI / 180;
|
| 15 |
+
export const SOLAR = "#fff1bf";
|
| 16 |
+
export const CHARGE = "#2fd3ff";
|
| 17 |
+
export const DISCHARGE = "#ffa62b";
|
| 18 |
+
|
| 19 |
+
const smooth = (a, b, x) => {
|
| 20 |
+
const u = Math.max(0, Math.min(1, (x - a) / (b - a)));
|
| 21 |
+
return u * u * (3 - 2 * u);
|
| 22 |
+
};
|
| 23 |
+
|
| 24 |
+
/** Where the array stands for a site: tracker rows on a world-aligned block grid (axes north-south), grown outward
|
| 25 |
+
* from the battery yard until the site's MWdc is placed, kept off the pad, the access road, the gen-tie corridor and
|
| 26 |
+
* the collector feeder's road. Everything the terrain, the vegetation and the director need comes from here. */
|
| 27 |
+
export function plantLayout(site, L, yaw, seed) {
|
| 28 |
+
const cos = Math.cos(yaw), sin = Math.sin(yaw);
|
| 29 |
+
const toW = (lx, lz) => [lx * cos + lz * sin, -lx * sin + lz * cos];
|
| 30 |
+
const toL = (x, z) => [x * cos - z * sin, x * sin + z * cos];
|
| 31 |
+
const p = L.pad;
|
| 32 |
+
const fx = L.sx - 15, feedLen = 560;
|
| 33 |
+
const out = (lx, lz, m = 0) =>
|
| 34 |
+
(lx > p.x0 - 16 - m && lx < p.x1 + 16 + m && lz > p.z0 - 16 - m && lz < p.z1 + 16 + m) ||
|
| 35 |
+
(lz > p.z0 - 20 && Math.abs(lx - p.roadX) < 12 + m) ||
|
| 36 |
+
(lx > p.x1 - 20 && Math.abs(lz) < 42 + m) ||
|
| 37 |
+
(lz < p.z0 && lz > -feedLen - 30 && Math.abs(lx - fx) < 8 + m);
|
| 38 |
+
const need = Math.round(((site.pv_mwdc || site.pv_mwac * 1.3) * 1000) / ROW.kw);
|
| 39 |
+
let placed = 0;
|
| 40 |
+
const [ox, oz] = toW(L.cx, 0);
|
| 41 |
+
const r = rng(`${seed}-pv`);
|
| 42 |
+
const K = Math.ceil(Math.sqrt(need / (2 * BLOCK.rows))) + 4;
|
| 43 |
+
const cand = [];
|
| 44 |
+
for (let i = -K; i <= K; i++)
|
| 45 |
+
for (let j = -K; j <= K; j++) {
|
| 46 |
+
const bx = ox + i * BX - BX / 2, bz = oz + j * BZ - BZ / 2;
|
| 47 |
+
const [lx, lz] = toL(bx + BX / 2, bz + BZ / 2);
|
| 48 |
+
cand.push({ bx, bz, s: Math.hypot(lx - L.cx, lz * 1.08) * (lx > p.x1 ? 1.9 : 1) * (0.92 + 0.16 * r()) });
|
| 49 |
+
}
|
| 50 |
+
cand.sort((a, b) => a.s - b.s);
|
| 51 |
+
const rows = [], skids = [], blocks = [], roads = [];
|
| 52 |
+
for (const c of cand) {
|
| 53 |
+
if (placed >= need) break;
|
| 54 |
+
let n = 0;
|
| 55 |
+
const got = [];
|
| 56 |
+
for (let half = 0; half < 2; half++) {
|
| 57 |
+
const zc = c.bz + ROW.len / 2 + half * (ROW.len + BLOCK.gap);
|
| 58 |
+
for (let k = 0; k < BLOCK.rows; k++) {
|
| 59 |
+
if (placed + n >= need) break;
|
| 60 |
+
const x = c.bx + ROW.pitch * (k + 0.5);
|
| 61 |
+
const clear = (z0, z1) => [0, 0.25, 0.5, 0.75, 1].every((u) => [-1.3, 1.3].every((dx) => !out(...toL(x + dx, z0 + (z1 - z0) * u))));
|
| 62 |
+
if (clear(zc - ROW.len / 2, zc + ROW.len / 2)) got.push({ x, z: zc, len: ROW.len }), n++;
|
| 63 |
+
else for (const sgn of [-1, 1]) if (clear(zc + (sgn < 0 ? -ROW.len / 2 : 0), zc + (sgn < 0 ? 0 : ROW.len / 2))) got.push({ x, z: zc + (sgn * ROW.len) / 4, len: ROW.len / 2 }), (n += 0.5);
|
| 64 |
+
}
|
| 65 |
+
}
|
| 66 |
+
if (n < 2) continue;
|
| 67 |
+
const id = blocks.length;
|
| 68 |
+
const rank = r();
|
| 69 |
+
placed += n;
|
| 70 |
+
for (const g of got) rows.push({ ...g, rank, block: id });
|
| 71 |
+
blocks.push({ x0: c.bx, z0: c.bz, x1: c.bx + BX - BLOCK.road, z1: c.bz + BZ - BLOCK.road, rank, n });
|
| 72 |
+
const sx = c.bx + BX / 2 - 6, sz = c.bz + ROW.len + BLOCK.gap / 2;
|
| 73 |
+
if (n >= 24 && !out(...toL(sx, sz), 2)) skids.push({ x: sx, z: sz, block: id });
|
| 74 |
+
roads.push({ x: c.bx + (BX - BLOCK.road) / 2, z: sz, w: BX - BLOCK.road, d: 7 });
|
| 75 |
+
}
|
| 76 |
+
const order = [...blocks.keys()].sort((a, b) => blocks[a].rank - blocks[b].rank);
|
| 77 |
+
order.forEach((b, i) => (blocks[b].rank = (i + 0.5) / blocks.length));
|
| 78 |
+
for (const row of rows) row.rank = blocks[row.block].rank;
|
| 79 |
+
let ax0 = Infinity, ax1 = -Infinity, az0 = Infinity, az1 = -Infinity;
|
| 80 |
+
for (const b of blocks) (ax0 = Math.min(ax0, b.x0)), (ax1 = Math.max(ax1, b.x1)), (az0 = Math.min(az0, b.z0)), (az1 = Math.max(az1, b.z1));
|
| 81 |
+
const dist = (x, z) => {
|
| 82 |
+
let best = Infinity;
|
| 83 |
+
for (const b of blocks) {
|
| 84 |
+
const dx = Math.max(b.x0 - x, 0, x - b.x1), dz = Math.max(b.z0 - z, 0, z - b.z1);
|
| 85 |
+
best = Math.min(best, Math.hypot(dx, dz));
|
| 86 |
+
if (best === 0) break;
|
| 87 |
+
}
|
| 88 |
+
return best;
|
| 89 |
+
};
|
| 90 |
+
const level = (x, z) => (x < ax0 - 80 || x > ax1 + 80 || z < az0 - 80 || z > az1 + 80 ? 0 : 1 - smooth(10, 75, dist(x, z)));
|
| 91 |
+
const keepOut = (x, z) => !(x < ax0 - 8 || x > ax1 + 8 || z < az0 - 8 || z > az1 + 8) && dist(x, z) < 6;
|
| 92 |
+
const near = rows.map((w) => ({ w, l: toL(w.x, w.z) })).filter(({ l }) => l[0] < L.cx - 30 && l[1] < p.z0 - 30).sort((a, b) => Math.hypot(a.l[0] - L.cx, a.l[1]) - Math.hypot(b.l[0] - L.cx, b.l[1]))[0];
|
| 93 |
+
const aisle = near ? toL(near.w.x + ROW.pitch / 2, near.w.z) : [L.cx - 120, p.z0 - 80];
|
| 94 |
+
const along = toL(0, 1);
|
| 95 |
+
return { rows, skids, blocks, roads, need, placed, level, keepOut, toW, toL, fx, feedLen, aisle, along, out, mwdc: (placed * ROW.kw) / 1000 };
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
function moduleTexture() {
|
| 99 |
+
return canvasTexture(128, 256, (g, w, h) => {
|
| 100 |
+
g.fillStyle = "#b9c0c4";
|
| 101 |
+
g.fillRect(0, 0, w, h);
|
| 102 |
+
g.fillStyle = "#2a3646";
|
| 103 |
+
g.fillRect(3, 3, w - 6, h - 6);
|
| 104 |
+
const cw = (w - 8) / 6, ch = (h - 10) / 24;
|
| 105 |
+
for (let i = 0; i < 6; i++)
|
| 106 |
+
for (let j = 0; j < 24; j++) {
|
| 107 |
+
const x = 4 + i * cw, y = 5 + j * ch + (j >= 12 ? 2 : 0);
|
| 108 |
+
g.fillStyle = (i + j) % 2 ? "#141d29" : "#16202d";
|
| 109 |
+
g.fillRect(x + 0.6, y + 0.5, cw - 1.2, ch - 1);
|
| 110 |
+
g.fillStyle = "rgba(150,165,180,0.12)";
|
| 111 |
+
g.fillRect(x + cw * 0.32, y + 0.5, 0.8, ch - 1);
|
| 112 |
+
g.fillRect(x + cw * 0.66, y + 0.5, 0.8, ch - 1);
|
| 113 |
+
}
|
| 114 |
+
}, { aniso: 12 });
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
/** Panel materials that turn about the torque tube by uTilt, or toward uStow for blocks whose rank is under uOff. */
|
| 118 |
+
function tracking(m, U, depth = false) {
|
| 119 |
+
m.onBeforeCompile = (sh) => {
|
| 120 |
+
sh.uniforms.uTilt = U.uTilt;
|
| 121 |
+
sh.uniforms.uStow = U.uStow;
|
| 122 |
+
sh.uniforms.uOff = U.uOff;
|
| 123 |
+
sh.vertexShader = sh.vertexShader.replace("#include <common>", `#include <common>
|
| 124 |
+
attribute float aRank;
|
| 125 |
+
uniform float uTilt, uStow, uOff;
|
| 126 |
+
mat2 trk() { float o = smoothstep(aRank - 0.03, aRank + 0.03, uOff); float a = mix(uTilt, uStow, o); float c = cos(a), s = sin(a); return mat2(c, s, -s, c); }`)
|
| 127 |
+
.replace("#include <begin_vertex>", "#include <begin_vertex>\ntransformed.xy = trk() * transformed.xy;");
|
| 128 |
+
if (!depth) sh.vertexShader = sh.vertexShader.replace("#include <beginnormal_vertex>", "#include <beginnormal_vertex>\nobjectNormal.xy = trk() * objectNormal.xy;");
|
| 129 |
+
};
|
| 130 |
+
m.customProgramCacheKey = () => (depth ? "trk-depth" : "trk");
|
| 131 |
+
return m;
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
function gaugeMaterial() {
|
| 135 |
+
return new THREE.ShaderMaterial({
|
| 136 |
+
uniforms: { uPv: { value: 0 }, uBat: { value: 0 }, uImp: { value: 0 }, uHead: { value: 0 }, uGlow: { value: 1 } },
|
| 137 |
+
vertexShader: "varying vec2 vUv; void main() { vUv = uv; gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); }",
|
| 138 |
+
fragmentShader: /* glsl */ `
|
| 139 |
+
uniform float uPv, uBat, uImp, uHead, uGlow;
|
| 140 |
+
varying vec2 vUv;
|
| 141 |
+
void main() {
|
| 142 |
+
vec2 p = vUv;
|
| 143 |
+
vec3 frame = vec3(0.08, 0.09, 0.1);
|
| 144 |
+
float inner = step(0.36, p.x) * step(p.x, 0.86) * step(0.03, p.y) * step(p.y, 0.97);
|
| 145 |
+
float z = 0.2;
|
| 146 |
+
float y = (p.y - 0.03) / 0.94;
|
| 147 |
+
float tu = (y - z) / (1.0 - z);
|
| 148 |
+
float f = abs(fract(tu * 10.0 + 0.5) - 0.5);
|
| 149 |
+
float tick = step(-0.01, tu) * step(tu, 1.01) * (1.0 - step(0.07, f)) * step(0.14, p.x) * step(p.x, 0.3);
|
| 150 |
+
vec3 ink = vec3(0.75) * (1.0 + 0.5 * uGlow);
|
| 151 |
+
float up = (y - z) / (1.0 - z), dn = (z - y) / z;
|
| 152 |
+
vec3 off = vec3(0.15, 0.17, 0.18);
|
| 153 |
+
vec3 c = off;
|
| 154 |
+
float k = 1.1 + 0.7 * uGlow;
|
| 155 |
+
if (up >= 0.0) {
|
| 156 |
+
if (up < uPv) c = vec3(1.0, 0.93, 0.72) * k;
|
| 157 |
+
else if (up < uPv + uBat) c = vec3(1.0, 0.62, 0.15) * k;
|
| 158 |
+
float hb = step(1.0 - uHead, up) * step(0.002, uHead);
|
| 159 |
+
float hatch = step(0.5, fract((p.x + p.y * 0.6) * 22.0));
|
| 160 |
+
c = mix(c, mix(c, vec3(0.92) * k * 0.7, 0.55), hb * hatch);
|
| 161 |
+
} else if (dn < uImp) c = vec3(0.18, 0.83, 1.0) * k;
|
| 162 |
+
float zl = 1.0 - smoothstep(0.0, 0.01, abs(y - z));
|
| 163 |
+
float top = 1.0 - smoothstep(0.0, 0.012, abs(y - 0.985));
|
| 164 |
+
c = mix(c, vec3(0.9), zl * 0.8);
|
| 165 |
+
c = mix(c, vec3(1.0, 0.35, 0.25) * 1.6, top);
|
| 166 |
+
vec3 col = mix(frame, c, inner);
|
| 167 |
+
col = mix(col, ink, tick * (1.0 - inner));
|
| 168 |
+
gl_FragColor = vec4(col, 1.0);
|
| 169 |
+
#include <tonemapping_fragment>
|
| 170 |
+
#include <colorspace_fragment>
|
| 171 |
+
}`,
|
| 172 |
+
});
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
function plateTexture(text) {
|
| 176 |
+
return canvasTexture(256, 96, (g, w, h) => {
|
| 177 |
+
g.fillStyle = "#f2f2ee";
|
| 178 |
+
g.fillRect(0, 0, w, h);
|
| 179 |
+
g.strokeStyle = "#1c2329";
|
| 180 |
+
g.lineWidth = 5;
|
| 181 |
+
g.strokeRect(6, 6, w - 12, h - 12);
|
| 182 |
+
g.fillStyle = "#1c2329";
|
| 183 |
+
g.font = "700 34px Helvetica, Arial, sans-serif";
|
| 184 |
+
g.textAlign = "center";
|
| 185 |
+
g.fillText(text, w / 2, 58);
|
| 186 |
+
});
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
function louvre(base) {
|
| 190 |
+
return canvasTexture(256, 256, (g, w, h) => {
|
| 191 |
+
g.fillStyle = base;
|
| 192 |
+
g.fillRect(0, 0, w, h);
|
| 193 |
+
for (let y = 34; y < h - 34; y += 10) {
|
| 194 |
+
g.fillStyle = "rgba(30,34,38,0.5)";
|
| 195 |
+
g.fillRect(28, y, w - 56, 4);
|
| 196 |
+
}
|
| 197 |
+
g.strokeStyle = "rgba(40,44,48,0.45)";
|
| 198 |
+
g.lineWidth = 3;
|
| 199 |
+
g.strokeRect(12, 12, w - 24, h - 24);
|
| 200 |
+
});
|
| 201 |
+
}
|
| 202 |
+
|
| 203 |
+
function catenary(a, b, sag, n = 14) {
|
| 204 |
+
const pts = [];
|
| 205 |
+
for (let i = 0; i <= n; i++) {
|
| 206 |
+
const u = i / n;
|
| 207 |
+
const q = new THREE.Vector3().lerpVectors(a, b, u);
|
| 208 |
+
q.y -= sag * 4 * u * (1 - u);
|
| 209 |
+
pts.push(q);
|
| 210 |
+
}
|
| 211 |
+
return pts;
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
/** Comet pulses along polylines, as on the gen-tie: dir +1 runs from the first point to the last. */
|
| 215 |
+
function pulses(paths, per = 18) {
|
| 216 |
+
const TAIL = 7, n = paths.length * per;
|
| 217 |
+
const ps = paths.map((pts) => {
|
| 218 |
+
const c = [0];
|
| 219 |
+
for (let i = 1; i < pts.length; i++) c.push(c[i - 1] + pts[i].distanceTo(pts[i - 1]));
|
| 220 |
+
return { pts, cum: c, len: c.at(-1) };
|
| 221 |
+
});
|
| 222 |
+
const pos = new Float32Array(n * TAIL * 3), alpha = new Float32Array(n * TAIL);
|
| 223 |
+
const g = new THREE.BufferGeometry();
|
| 224 |
+
g.setAttribute("position", new THREE.BufferAttribute(pos, 3));
|
| 225 |
+
g.setAttribute("aA", new THREE.BufferAttribute(alpha, 1));
|
| 226 |
+
const mat = pulseMaterial();
|
| 227 |
+
const points = new THREE.Points(g, mat);
|
| 228 |
+
points.frustumCulled = false;
|
| 229 |
+
const hash = (i) => {
|
| 230 |
+
const s = Math.sin(i * 57.31 + 3.7) * 43758.5453;
|
| 231 |
+
return s - Math.floor(s);
|
| 232 |
+
};
|
| 233 |
+
const seeds = Array.from({ length: n }, (_, i) => hash(i)), jit = Array.from({ length: n }, (_, i) => 0.85 + 0.3 * hash(i + 300));
|
| 234 |
+
const _p = new THREE.Vector3();
|
| 235 |
+
const at = (path, s) => {
|
| 236 |
+
let lo = 0, hi = path.cum.length - 1;
|
| 237 |
+
while (hi - lo > 1) {
|
| 238 |
+
const mid = (lo + hi) >> 1;
|
| 239 |
+
if (path.cum[mid] < s) lo = mid;
|
| 240 |
+
else hi = mid;
|
| 241 |
+
}
|
| 242 |
+
return _p.lerpVectors(path.pts[lo], path.pts[hi], (s - path.cum[lo]) / Math.max(1e-6, path.cum[hi] - path.cum[lo]));
|
| 243 |
+
};
|
| 244 |
+
let travel = 0;
|
| 245 |
+
return {
|
| 246 |
+
points,
|
| 247 |
+
update({ dir, load, color, dt, height, fog, day, reduced, speed = 40 }) {
|
| 248 |
+
travel += dir * (speed + speed * 3 * load) * (reduced ? 0.5 : 1) * dt;
|
| 249 |
+
const on = Math.round(per * Math.min(1, 0.2 + 0.8 * load) * (dir && load > 0.004 ? 1 : 0));
|
| 250 |
+
let k = 0;
|
| 251 |
+
ps.forEach((path, pi) => {
|
| 252 |
+
for (let i = 0; i < per; i++) {
|
| 253 |
+
const id = pi * per + i;
|
| 254 |
+
const head = ((((seeds[id] + (travel * jit[id]) / path.len) % 1) + 1) % 1) * path.len;
|
| 255 |
+
const fade = Math.min(1, head / 6) * Math.min(1, (path.len - head) / 6);
|
| 256 |
+
for (let j = 0; j < TAIL; j++, k++) {
|
| 257 |
+
if (i >= on) {
|
| 258 |
+
alpha[k] = 0;
|
| 259 |
+
continue;
|
| 260 |
+
}
|
| 261 |
+
const q = at(path, Math.max(0, Math.min(path.len, head - dir * j * 1.4)));
|
| 262 |
+
pos[k * 3] = q.x;
|
| 263 |
+
pos[k * 3 + 1] = q.y - 0.08;
|
| 264 |
+
pos[k * 3 + 2] = q.z;
|
| 265 |
+
alpha[k] = fade * Math.pow(1 - j / TAIL, 1.6) * (j === 0 ? 1.2 : 0.8);
|
| 266 |
+
}
|
| 267 |
+
}
|
| 268 |
+
});
|
| 269 |
+
g.attributes.position.needsUpdate = true;
|
| 270 |
+
g.attributes.aA.needsUpdate = true;
|
| 271 |
+
mat.uniforms.uColor.value.set(color);
|
| 272 |
+
mat.uniforms.uScale.value = height;
|
| 273 |
+
mat.uniforms.uFog.value = fog;
|
| 274 |
+
mat.uniforms.uSize.value = 1.5 + 0.9 * day;
|
| 275 |
+
mat.uniforms.uI.value = 0.6 + 0.6 * day;
|
| 276 |
+
points.visible = on > 0;
|
| 277 |
+
},
|
| 278 |
+
};
|
| 279 |
+
}
|
| 280 |
+
|
| 281 |
+
/** Single-axis tracking with backtracking (flat ground): the rotation (degrees, + toward east) for a sun at el, az. */
|
| 282 |
+
export function trackerAngle(el, az) {
|
| 283 |
+
if (el <= 0.5) return 0;
|
| 284 |
+
const e = el * DEG, a = az * DEG;
|
| 285 |
+
const sx = Math.sin(a) * Math.cos(e), sy = Math.sin(e);
|
| 286 |
+
const ideal = Math.atan2(sx, sy);
|
| 287 |
+
const t = Math.cos(ideal) / GCR;
|
| 288 |
+
const th = t < 1 ? ideal - Math.sign(ideal) * Math.acos(t) : ideal;
|
| 289 |
+
return Math.max(-MAX_TILT, Math.min(MAX_TILT, th / DEG));
|
| 290 |
+
}
|
| 291 |
+
|
| 292 |
+
/** The solar farm and the plant's power path, built from plantLayout: tracker tables that follow the sun, posts and
|
| 293 |
+
* torque tubes, block roads, inverter and MV transformer skids, the 34.5 kV collector feeders into the substation, the
|
| 294 |
+
* link from the substation to the battery yard and the POI meter cabinet. world holds what stands on the world grid,
|
| 295 |
+
* local what sits in the site frame. */
|
| 296 |
+
export function buildPlant(P, L, { site, U: wetU, heightAt, sub }) {
|
| 297 |
+
const world = new THREE.Group(), local = new THREE.Group();
|
| 298 |
+
const U = { uTilt: { value: 0 }, uStow: { value: 0 }, uOff: { value: 0 } };
|
| 299 |
+
const tex = moduleTexture();
|
| 300 |
+
tex.wrapS = THREE.RepeatWrapping;
|
| 301 |
+
tex.repeat.set(90, 1);
|
| 302 |
+
const glass = tracking(new THREE.MeshStandardMaterial({ map: tex, roughness: 0.2, metalness: 0.0, envMapIntensity: 0.5 }), U);
|
| 303 |
+
const back = tracking(new THREE.MeshStandardMaterial({ color: "#5d666c", roughness: 0.6, metalness: 0.2 }), U);
|
| 304 |
+
const rim = tracking(new THREE.MeshStandardMaterial({ color: "#c4cacd", roughness: 0.35, metalness: 0.7 }), U);
|
| 305 |
+
const depth = tracking(new THREE.MeshDepthMaterial({ depthPacking: THREE.RGBADepthPacking }), U, true);
|
| 306 |
+
const steel = new THREE.MeshStandardMaterial({ color: "#9ea6aa", roughness: 0.45, metalness: 0.6 });
|
| 307 |
+
const panels = [];
|
| 308 |
+
for (const len of [ROW.len, ROW.len / 2]) {
|
| 309 |
+
const rs = P.rows.filter((w) => w.len === len);
|
| 310 |
+
if (!rs.length) continue;
|
| 311 |
+
const table = new THREE.BoxGeometry(len, 0.045, ROW.w);
|
| 312 |
+
table.translate(0, 0.16, 0);
|
| 313 |
+
table.rotateY(Math.PI / 2);
|
| 314 |
+
const g = len === ROW.len ? glass : glass.clone();
|
| 315 |
+
if (g !== glass) (g.map = tex.clone()), g.map.repeat.set(45, 1), (g.onBeforeCompile = glass.onBeforeCompile), (g.customProgramCacheKey = glass.customProgramCacheKey);
|
| 316 |
+
const ms = rs.map((w) => mat4(V(w.x, heightAt(w.x, w.z) + ROW.hub, w.z)));
|
| 317 |
+
const mesh = inst(table, [rim, rim, g, back, rim, rim], ms);
|
| 318 |
+
mesh.geometry.setAttribute("aRank", new THREE.InstancedBufferAttribute(new Float32Array(rs.map((w) => w.rank)), 1));
|
| 319 |
+
mesh.customDepthMaterial = depth;
|
| 320 |
+
world.add(mesh, inst(cyl(0.065, 0.065, len, 0, 0, 0, 7, "z"), steel, ms, { shadow: false }));
|
| 321 |
+
panels.push(mesh);
|
| 322 |
+
}
|
| 323 |
+
const [cx, cz] = P.toW(L.cx, 0);
|
| 324 |
+
const postM = [], motorM = [];
|
| 325 |
+
for (const w of P.rows) {
|
| 326 |
+
if (Math.hypot(w.x - cx, w.z - cz) > 900) continue;
|
| 327 |
+
const y0 = heightAt(w.x, w.z);
|
| 328 |
+
const np = w.len === ROW.len ? ROW.posts : ROW.posts / 2;
|
| 329 |
+
for (let i = 0; i < np; i++) postM.push(mat4(V(w.x, y0 + ROW.hub / 2, w.z - w.len / 2 + 3 + (i * (w.len - 6)) / (np - 1))));
|
| 330 |
+
motorM.push(mat4(V(w.x + 0.18, y0 + ROW.hub - 0.15, w.z)));
|
| 331 |
+
}
|
| 332 |
+
world.add(inst(box(0.16, ROW.hub, 0.12), steel, postM, { shadow: false }));
|
| 333 |
+
world.add(inst(box(0.32, 0.36, 0.5), new THREE.MeshStandardMaterial({ color: "#5c6368", roughness: 0.6, metalness: 0.4 }), motorM, { shadow: false }));
|
| 334 |
+
const roadMat = gravelMaterial("#b9ad97", wetU, { scale: 1.2, road: true });
|
| 335 |
+
const roadM = P.roads.map((r) => mat4(V(r.x, heightAt(r.x, r.z) + 0.06, r.z), 0, V(r.w, 1, r.d)));
|
| 336 |
+
const road = inst(new THREE.PlaneGeometry(1, 1).rotateX(-Math.PI / 2), roadMat, roadM, { shadow: false });
|
| 337 |
+
world.add(road);
|
| 338 |
+
|
| 339 |
+
const concrete = new THREE.MeshStandardMaterial({ color: "#bcb8af", roughness: 0.92 });
|
| 340 |
+
const cabinet = new THREE.MeshStandardMaterial({ map: louvre("#e3e5e2"), roughness: 0.5, metalness: 0.2 });
|
| 341 |
+
const padmount = new THREE.MeshStandardMaterial({ color: "#6f7d6b", roughness: 0.55, metalness: 0.35 });
|
| 342 |
+
const sp = [], sc = [], st = [], sf = [], sl = [];
|
| 343 |
+
for (const s of P.skids) {
|
| 344 |
+
const y = heightAt(s.x, s.z);
|
| 345 |
+
sp.push(mat4(V(s.x, y + 0.15, s.z), 0, V(3.4, 0.3, 8.2)));
|
| 346 |
+
sc.push(mat4(V(s.x, y + 0.3 + 1.2, s.z - 1.9)));
|
| 347 |
+
st.push(mat4(V(s.x, y + 0.3 + 1.05, s.z + 1.9)));
|
| 348 |
+
for (let i = 0; i < 6; i++) for (const side of [-1, 1]) sf.push(mat4(V(s.x + side * 1.12, y + 1.3, s.z + 1.2 + i * 0.26)));
|
| 349 |
+
sl.push(mat4(V(s.x + 1.23, y + 2.35, s.z - 1.9)));
|
| 350 |
+
}
|
| 351 |
+
world.add(inst(new THREE.BoxGeometry(1, 1, 1), concrete, sp));
|
| 352 |
+
world.add(inst(new THREE.BoxGeometry(2.4, 2.4, 3.6), cabinet, sc));
|
| 353 |
+
world.add(inst(new THREE.BoxGeometry(2.1, 2.1, 2.2), padmount, st));
|
| 354 |
+
world.add(inst(new THREE.BoxGeometry(0.35, 1.6, 0.05), padmount, sf));
|
| 355 |
+
const led = new THREE.MeshStandardMaterial({ color: "#111", emissive: new THREE.Color("#7dffa8"), emissiveIntensity: 1.6 });
|
| 356 |
+
world.add(inst(new THREE.BoxGeometry(0.04, 0.06, 0.5), led, sl, { shadow: false }));
|
| 357 |
+
|
| 358 |
+
const wood = new THREE.MeshStandardMaterial({ color: "#6e5d4b", roughness: 0.85 });
|
| 359 |
+
const arm = new THREE.MeshStandardMaterial({ color: "#7a6a58", roughness: 0.8 });
|
| 360 |
+
const polymer = new THREE.MeshStandardMaterial({ color: "#8d9396", roughness: 0.45 });
|
| 361 |
+
const wire = new THREE.LineBasicMaterial({ color: "#3a4045", transparent: true, opacity: 0.7 });
|
| 362 |
+
const poles = [];
|
| 363 |
+
for (let z = -18; z >= -P.feedLen; z -= 52) poles.push(V(P.fx, 0, z));
|
| 364 |
+
const poleM = [], armM = [], insM = [];
|
| 365 |
+
const tipsOf = (q) => [-1.5, 0, 1.5].flatMap((dx) => [V(q.x + dx, q.y + 12.6, q.z), V(q.x + dx, q.y + 11.2, q.z)]);
|
| 366 |
+
for (const q of poles) {
|
| 367 |
+
q.y = heightAt(...P.toW(q.x, q.z));
|
| 368 |
+
poleM.push(mat4(V(q.x, q.y + 6.5, q.z)));
|
| 369 |
+
for (const y of [12.45, 11.05]) armM.push(mat4(V(q.x, q.y + y, q.z)));
|
| 370 |
+
for (const t of tipsOf(q)) insM.push(mat4(t.clone().setY(t.y - 0.25)));
|
| 371 |
+
}
|
| 372 |
+
local.add(inst(cyl(0.14, 0.2, 13, 0, 0, 0, 8), wood, poleM));
|
| 373 |
+
local.add(inst(box(3.6, 0.14, 0.14), arm, armM));
|
| 374 |
+
local.add(inst(insulator(0.32, 0.07, 3), polymer, insM, { shadow: false }));
|
| 375 |
+
const land = V(sub.lowX, 6.8, -2.6);
|
| 376 |
+
const feeders = [];
|
| 377 |
+
for (const c of [0, 2, 4]) {
|
| 378 |
+
const pts = [V(land.x + [-1.5, -1.5, 0, 0, 1.5, 1.5][c], land.y - (c % 2) * 0.6, land.z)];
|
| 379 |
+
let prev = pts[0];
|
| 380 |
+
for (const q of poles) {
|
| 381 |
+
const a = tipsOf(q)[c];
|
| 382 |
+
pts.push(...catenary(prev, a, Math.min(1.6, 0.012 * prev.distanceTo(a))).slice(1));
|
| 383 |
+
prev = a;
|
| 384 |
+
}
|
| 385 |
+
local.add(new THREE.Line(new THREE.BufferGeometry().setFromPoints(pts), wire));
|
| 386 |
+
feeders.push(pts.slice().reverse());
|
| 387 |
+
}
|
| 388 |
+
const feed = pulses(feeders, 22);
|
| 389 |
+
local.add(feed.points);
|
| 390 |
+
|
| 391 |
+
const yx = L.cx + L.W / 2 + 5;
|
| 392 |
+
const riser = V(yx, 0, 6);
|
| 393 |
+
const linkPoles = [V(yx, 0, 6), V((yx + sub.lowX) / 2, 0, 9)];
|
| 394 |
+
const lp = [], la = [];
|
| 395 |
+
for (const q of linkPoles) {
|
| 396 |
+
lp.push(mat4(V(q.x, 5.5, q.z), 0, V(1, 11 / 13, 1)));
|
| 397 |
+
la.push(mat4(V(q.x, 10.6, q.z), Math.PI / 2, V(0.8, 1, 1)));
|
| 398 |
+
}
|
| 399 |
+
local.add(inst(cyl(0.14, 0.2, 13, 0, 0, 0, 8), wood, lp));
|
| 400 |
+
local.add(inst(box(3.6, 0.14, 0.14), arm, la));
|
| 401 |
+
const links = [-1.2, 0, 1.2].map((dz) => {
|
| 402 |
+
const pts = [V(sub.lowX, 6.8, 2.6 + dz * 0.6)];
|
| 403 |
+
let prev = pts[0];
|
| 404 |
+
for (const q of [...linkPoles].reverse()) {
|
| 405 |
+
const a = V(q.x, 10.75, q.z + dz);
|
| 406 |
+
pts.push(...catenary(prev, a, 0.4).slice(1));
|
| 407 |
+
prev = a;
|
| 408 |
+
}
|
| 409 |
+
pts.push(V(riser.x, 1.0, riser.z + dz * 0.4));
|
| 410 |
+
local.add(new THREE.Line(new THREE.BufferGeometry().setFromPoints(pts), wire));
|
| 411 |
+
return pts;
|
| 412 |
+
});
|
| 413 |
+
const link = pulses(links, 10);
|
| 414 |
+
local.add(link.points);
|
| 415 |
+
|
| 416 |
+
const mx = sub.deX - 5, mz = 11.5;
|
| 417 |
+
const cab = new THREE.Mesh(box(1.5, 2.2, 0.9, mx, 1.1 + 0.3, mz), new THREE.MeshStandardMaterial({ color: "#d9dcd8", roughness: 0.5, metalness: 0.25 }));
|
| 418 |
+
cab.castShadow = true;
|
| 419 |
+
const base = new THREE.Mesh(box(2.0, 0.3, 1.4, mx, 0.15, mz), concrete);
|
| 420 |
+
const gauge = gaugeMaterial();
|
| 421 |
+
const face = new THREE.Mesh(new THREE.PlaneGeometry(0.62, 1.55), gauge);
|
| 422 |
+
face.position.set(mx - 0.25, 1.45, mz + 0.46);
|
| 423 |
+
const plate = new THREE.Mesh(new THREE.PlaneGeometry(0.62, 0.23), new THREE.MeshStandardMaterial({ map: plateTexture(`POI ${Math.round(site.poi_mw)} MW`), roughness: 0.6 }));
|
| 424 |
+
plate.position.set(mx + 0.42, 2.05, mz + 0.46);
|
| 425 |
+
const glow = new THREE.Sprite(new THREE.SpriteMaterial({ map: glowTexture(), color: SOLAR, transparent: true, depthWrite: false, blending: THREE.AdditiveBlending, opacity: 0 }));
|
| 426 |
+
glow.position.set(mx - 0.25, 1.45, mz + 0.9);
|
| 427 |
+
glow.scale.set(2.2, 3.2, 1);
|
| 428 |
+
local.add(cab, base, face, plate, glow);
|
| 429 |
+
|
| 430 |
+
let tilt = 0;
|
| 431 |
+
/** state: tilt (deg), off (0..1 of blocks off sun), stow (deg), pv (MW reaching the bus), net (+ discharge MW),
|
| 432 |
+
* exp (meter MW), head (MW of up-award headroom at the meter). */
|
| 433 |
+
function update({ tilt: deg, off, pv, net, exp, head, night, dt, height, fog, day, reduced }) {
|
| 434 |
+
tilt = deg;
|
| 435 |
+
U.uTilt.value = -tilt * DEG;
|
| 436 |
+
U.uStow.value = 0;
|
| 437 |
+
U.uOff.value = off;
|
| 438 |
+
const Lm = Math.max(1, site.poi_mw);
|
| 439 |
+
feed.update({ dir: 1, load: Math.max(0, pv) / Math.max(1, site.pv_mwac), color: SOLAR, dt, height, fog, day, reduced, speed: 26 });
|
| 440 |
+
link.update({ dir: net > 0 ? -1 : 1, load: Math.abs(net) > 0.5 ? Math.abs(net) / site.bess.p_mw : 0, color: net > 0 ? DISCHARGE : CHARGE, dt, height, fog, day, reduced, speed: 14 });
|
| 441 |
+
const g = gauge.uniforms;
|
| 442 |
+
const toBat = Math.max(0, Math.min(exp, net));
|
| 443 |
+
g.uPv.value = Math.max(0, exp - toBat) / Lm;
|
| 444 |
+
g.uBat.value = Math.max(0, toBat) / Lm;
|
| 445 |
+
g.uImp.value = Math.max(0, -exp) / Math.max(1, site.poi_import_mw || Lm);
|
| 446 |
+
g.uHead.value = Math.min(1, Math.max(0, head) / Lm);
|
| 447 |
+
g.uGlow.value = night;
|
| 448 |
+
glow.material.opacity = (0.15 + 0.5 * night) * Math.min(1, Math.abs(exp) / Lm);
|
| 449 |
+
glow.material.color.set(exp < 0 ? CHARGE : net > 0.5 ? DISCHARGE : SOLAR);
|
| 450 |
+
}
|
| 451 |
+
return { world, local, update, U, panels, meter: V(mx, 1.4, mz), riser, poles };
|
| 452 |
+
}
|
stage/stage.js
CHANGED
|
@@ -9,6 +9,7 @@ import { at } from "../data.js";
|
|
| 9 |
import { buildBackdrop } from "./backdrop.js";
|
| 10 |
import { buildDirector } from "./director.js";
|
| 11 |
import { buildLine } from "./line.js";
|
|
|
|
| 12 |
import { buildSky } from "./sky.js";
|
| 13 |
import { buildTerrain } from "./terrain.js";
|
| 14 |
import { buildRain, lightningAt, snowCover, snowOn, weatherAt } from "./weather.js";
|
|
@@ -57,14 +58,16 @@ export class GridStage {
|
|
| 57 |
this.site = new THREE.Group();
|
| 58 |
this.site.rotation.y = this.yaw;
|
| 59 |
const U = { uWet: { value: 0 } };
|
| 60 |
-
|
|
|
|
| 61 |
const L = this.yard.layout;
|
| 62 |
-
this.
|
|
|
|
| 63 |
const cams = this.director.spots.map(([x, z, r]) => {
|
| 64 |
const v = new THREE.Vector3(x, 0, z).applyAxisAngle(new THREE.Vector3(0, 1, 0), this.yaw);
|
| 65 |
return [v.x, v.z, r];
|
| 66 |
});
|
| 67 |
-
this.terrain = buildTerrain(region, { pad: L.pad, yaw: this.yaw, seed, cams });
|
| 68 |
this.terrain.U.uWet = U.uWet;
|
| 69 |
this.U = U;
|
| 70 |
scene.add(this.terrain.group);
|
|
@@ -75,11 +78,16 @@ export class GridStage {
|
|
| 75 |
};
|
| 76 |
this.line = buildLine({ deadEnd: this.yard.sub.deadEnd, heightLocal, km: 9, seed });
|
| 77 |
this.site.add(this.yard.group, this.line.group);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
scene.add(this.site);
|
| 79 |
const nearPj = [[L.cx + 30, -L.D / 2 - 190], [L.cx - L.W / 2 - 160, L.D / 2 + 260]].map(([x, z]) => {
|
| 80 |
const v = toWorld(x, z);
|
| 81 |
return [v.x, v.z];
|
| 82 |
-
});
|
| 83 |
this.backdrop = buildBackdrop(region, this.terrain.heightAt, this.terrain.avoid, seed, { near: nearPj });
|
| 84 |
scene.add(this.backdrop.group);
|
| 85 |
this.rain = buildRain();
|
|
@@ -166,7 +174,7 @@ export class GridStage {
|
|
| 166 |
this.w = w;
|
| 167 |
const pre = d.live && t < 0;
|
| 168 |
const s = this.sky.update(pre ? (-600 + ((t + 2) / 2) * 600) / 60 : tt, wall, w);
|
| 169 |
-
const x = pre ? { ...at(d, 0), mode: "idle", mw: 0, soc: d.b.s0 } : at(d, Math.min(23.999, tt));
|
| 170 |
const mode = t >= 24 ? (d.trunc != null ? "grey" : "idle") : x.mode;
|
| 171 |
const mw = mode === "charge" || mode === "discharge" ? Math.abs(x.mw) : 0;
|
| 172 |
const pmax = mode === "charge" ? d.b.p_ch_mw : d.b.p_dis_mw;
|
|
@@ -175,8 +183,18 @@ export class GridStage {
|
|
| 175 |
if (this.manual && dt === 0) this.U.uWet.value = wet;
|
| 176 |
this.U.uSnow.value = snowCover(d.weather, tt);
|
| 177 |
const windYaw = -((w.windDir ?? 180) + 90) * DEG - this.yaw;
|
| 178 |
-
|
| 179 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
this.backdrop.update({ night: s.night, wall, dt, windMs: w.windMs, windDir: w.windDir, reduced: this.reduced });
|
| 181 |
const fl = lightningAt(wall, w.ts, this.reduced);
|
| 182 |
this.sky.flash(fl ? fl.f * 0.9 : 0, fl?.dir);
|
|
|
|
| 9 |
import { buildBackdrop } from "./backdrop.js";
|
| 10 |
import { buildDirector } from "./director.js";
|
| 11 |
import { buildLine } from "./line.js";
|
| 12 |
+
import { buildPlant, plantLayout, SOLAR, trackerAngle } from "./plant.js";
|
| 13 |
import { buildSky } from "./sky.js";
|
| 14 |
import { buildTerrain } from "./terrain.js";
|
| 15 |
import { buildRain, lightningAt, snowCover, snowOn, weatherAt } from "./weather.js";
|
|
|
|
| 58 |
this.site = new THREE.Group();
|
| 59 |
this.site.rotation.y = this.yaw;
|
| 60 |
const U = { uWet: { value: 0 } };
|
| 61 |
+
const hyb = !!d.hybrid;
|
| 62 |
+
this.yard = buildYard(d.b, U, { gravel: region.gravel, road: region.road, seed, ...(hyb ? { bands: true } : {}) });
|
| 63 |
const L = this.yard.layout;
|
| 64 |
+
this.plantL = hyb ? plantLayout(d.site, L, this.yaw, seed) : null;
|
| 65 |
+
this.director = buildDirector(d, L, { night: (t) => 1 - Math.min(1, Math.max(0, (this.sky.sunAt(t).el + 6) / 8)), plant: this.plantL });
|
| 66 |
const cams = this.director.spots.map(([x, z, r]) => {
|
| 67 |
const v = new THREE.Vector3(x, 0, z).applyAxisAngle(new THREE.Vector3(0, 1, 0), this.yaw);
|
| 68 |
return [v.x, v.z, r];
|
| 69 |
});
|
| 70 |
+
this.terrain = buildTerrain(region, { pad: L.pad, yaw: this.yaw, seed, cams, ...(hyb ? { level: this.plantL.level, keepOut: this.plantL.keepOut } : {}) });
|
| 71 |
this.terrain.U.uWet = U.uWet;
|
| 72 |
this.U = U;
|
| 73 |
scene.add(this.terrain.group);
|
|
|
|
| 78 |
};
|
| 79 |
this.line = buildLine({ deadEnd: this.yard.sub.deadEnd, heightLocal, km: 9, seed });
|
| 80 |
this.site.add(this.yard.group, this.line.group);
|
| 81 |
+
if (hyb) {
|
| 82 |
+
this.plant = buildPlant(this.plantL, L, { site: d.site, U, heightAt: this.terrain.heightAt, sub: { lowX: L.sx - 13, deX: this.yard.sub.deadEnd.x } });
|
| 83 |
+
scene.add(this.plant.world);
|
| 84 |
+
this.site.add(this.plant.local);
|
| 85 |
+
}
|
| 86 |
scene.add(this.site);
|
| 87 |
const nearPj = [[L.cx + 30, -L.D / 2 - 190], [L.cx - L.W / 2 - 160, L.D / 2 + 260]].map(([x, z]) => {
|
| 88 |
const v = toWorld(x, z);
|
| 89 |
return [v.x, v.z];
|
| 90 |
+
}).filter(([x, z]) => !hyb || this.plantL.level(x, z) === 0);
|
| 91 |
this.backdrop = buildBackdrop(region, this.terrain.heightAt, this.terrain.avoid, seed, { near: nearPj });
|
| 92 |
scene.add(this.backdrop.group);
|
| 93 |
this.rain = buildRain();
|
|
|
|
| 174 |
this.w = w;
|
| 175 |
const pre = d.live && t < 0;
|
| 176 |
const s = this.sky.update(pre ? (-600 + ((t + 2) / 2) * 600) / 60 : tt, wall, w);
|
| 177 |
+
const x = d.hybrid ? (pre ? d.pre(t) : d.at(tt)) : pre ? { ...at(d, 0), mode: "idle", mw: 0, soc: d.b.s0 } : at(d, Math.min(23.999, tt));
|
| 178 |
const mode = t >= 24 ? (d.trunc != null ? "grey" : "idle") : x.mode;
|
| 179 |
const mw = mode === "charge" || mode === "discharge" ? Math.abs(x.mw) : 0;
|
| 180 |
const pmax = mode === "charge" ? d.b.p_ch_mw : d.b.p_dis_mw;
|
|
|
|
| 183 |
if (this.manual && dt === 0) this.U.uWet.value = wet;
|
| 184 |
this.U.uSnow.value = snowCover(d.weather, tt);
|
| 185 |
const windYaw = -((w.windDir ?? 180) + 90) * DEG - this.yaw;
|
| 186 |
+
const lights = 1 - Math.min(1, Math.max(0, (s.el + 3) / 5)), wind = { kt: w.windKt, yawLocal: windYaw + Math.PI };
|
| 187 |
+
const height = this.renderer.domElement.height / (2 * Math.tan((this.camera.fov * DEG) / 2));
|
| 188 |
+
if (d.hybrid) {
|
| 189 |
+
this.yard.update({ mode, mw, pmax, soc: x.socLevels, night: s.night, lights, dt, wall, reduced: this.reduced, temp: w.temp ?? 25, wind, floor: t >= 24 ? 0 : x.floor / d.E, head: t >= 24 ? 0 : x.head / d.E, draw: x.bands.some((z) => z.live) ? 1 : 0 });
|
| 190 |
+
const e = x.exp;
|
| 191 |
+
this.line.update({ dir: e > 1 ? 1 : e < -1 ? -1 : 0, load: Math.abs(e) / Math.max(1, d.L), color: e < 0 ? COLORS.charge : x.net > 0.5 ? COLORS.discharge : SOLAR, dt, fog: this.scene.fog.density, height, day: s.day, reduced: this.reduced });
|
| 192 |
+
const sun = this.sky.sunAt(pre ? (-600 + ((t + 2) / 2) * 600) / 60 : tt);
|
| 193 |
+
this.plant.update({ tilt: trackerAngle(sun.el, sun.az), off: x.off, pv: x.pvUsed, net: x.net, exp: e, head: x.upMw, night: s.night, dt, height, fog: this.scene.fog.density, day: s.day, reduced: this.reduced });
|
| 194 |
+
} else {
|
| 195 |
+
this.yard.update({ mode, mw, pmax, soc: x.soc, night: s.night, lights, dt, wall, reduced: this.reduced, temp: w.temp ?? 25, wind });
|
| 196 |
+
this.line.update({ dir: mode === "discharge" ? 1 : mode === "charge" ? -1 : 0, load: mw / Math.max(1, pmax), color: x.neg && mode === "charge" ? "#7ff0ff" : COLORS[mode] || COLORS.idle, dt, fog: this.scene.fog.density, height, day: s.day, reduced: this.reduced });
|
| 197 |
+
}
|
| 198 |
this.backdrop.update({ night: s.night, wall, dt, windMs: w.windMs, windDir: w.windDir, reduced: this.reduced });
|
| 199 |
const fl = lightningAt(wall, w.ts, this.reduced);
|
| 200 |
this.sky.flash(fl ? fl.f * 0.9 : 0, fl?.dir);
|
stage/terrain.js
CHANGED
|
@@ -215,16 +215,17 @@ const SHRUB = { creosote: ["#6f7444", "#7a7a4a", "#65693e", "#858353"], mesquite
|
|
| 215 |
const TREE = { oak: ["#4e6233", "#56693a", "#46592f"], pine: ["#3a4f2c", "#344828", "#40562f"] };
|
| 216 |
|
| 217 |
/** The land: the ground out to the horizon, the gravel pad, the access road, shrubs and trees. */
|
| 218 |
-
export function buildTerrain(region, { pad, yaw, seed, cams = [] }) {
|
| 219 |
const group = new THREE.Group();
|
| 220 |
const U = { uWet: { value: 0 } };
|
| 221 |
const toLocal = (x, z) => [x * Math.cos(yaw) - z * Math.sin(yaw), x * Math.sin(yaw) + z * Math.cos(yaw)];
|
| 222 |
-
const
|
| 223 |
const [lx, lz] = toLocal(x, z);
|
| 224 |
let d = Math.hypot(Math.max(pad.x0 - lx, 0, lx - pad.x1), Math.max(pad.z0 - lz, 0, lz - pad.z1));
|
| 225 |
if (lz > pad.z1) d = Math.min(d, Math.abs(lx - pad.roadX) - 4);
|
| 226 |
return smooth(18, 110, d);
|
| 227 |
});
|
|
|
|
| 228 |
const ground = new THREE.Mesh(polarGround(heightAt), groundMaterial(region, U));
|
| 229 |
ground.receiveShadow = true;
|
| 230 |
group.add(ground);
|
|
@@ -234,7 +235,7 @@ export function buildTerrain(region, { pad, yaw, seed, cams = [] }) {
|
|
| 234 |
if (lx > pad.x0 - 30 && lx < pad.x1 + 30 && lz > pad.z0 - 30 && lz < pad.z1 + 30) return true;
|
| 235 |
if (lx > pad.x1 && Math.abs(lz - pad.lineZ) < 45) return true;
|
| 236 |
if (lz > pad.z1 && Math.abs(lx - pad.roadX) < 9) return true;
|
| 237 |
-
return false;
|
| 238 |
};
|
| 239 |
const bigCams = cams.map(([x, z, r]) => [x, z, r * 2.2]);
|
| 240 |
if (region.shrubs) scatter(group, region.shrubs, heightAt, avoid, `${seed}-shrub`, (k, r) => shrubGeometry(k, r), SHRUB[region.shrubs.kind] || SHRUB.grass, cams);
|
|
|
|
| 215 |
const TREE = { oak: ["#4e6233", "#56693a", "#46592f"], pine: ["#3a4f2c", "#344828", "#40562f"] };
|
| 216 |
|
| 217 |
/** The land: the ground out to the horizon, the gravel pad, the access road, shrubs and trees. */
|
| 218 |
+
export function buildTerrain(region, { pad, yaw, seed, cams = [], level = null, keepOut = null }) {
|
| 219 |
const group = new THREE.Group();
|
| 220 |
const U = { uWet: { value: 0 } };
|
| 221 |
const toLocal = (x, z) => [x * Math.cos(yaw) - z * Math.sin(yaw), x * Math.sin(yaw) + z * Math.cos(yaw)];
|
| 222 |
+
const natural = heightFn(region, (x, z) => {
|
| 223 |
const [lx, lz] = toLocal(x, z);
|
| 224 |
let d = Math.hypot(Math.max(pad.x0 - lx, 0, lx - pad.x1), Math.max(pad.z0 - lz, 0, lz - pad.z1));
|
| 225 |
if (lz > pad.z1) d = Math.min(d, Math.abs(lx - pad.roadX) - 4);
|
| 226 |
return smooth(18, 110, d);
|
| 227 |
});
|
| 228 |
+
const heightAt = level ? (x, z) => natural(x, z) * (1 - level(x, z)) : natural;
|
| 229 |
const ground = new THREE.Mesh(polarGround(heightAt), groundMaterial(region, U));
|
| 230 |
ground.receiveShadow = true;
|
| 231 |
group.add(ground);
|
|
|
|
| 235 |
if (lx > pad.x0 - 30 && lx < pad.x1 + 30 && lz > pad.z0 - 30 && lz < pad.z1 + 30) return true;
|
| 236 |
if (lx > pad.x1 && Math.abs(lz - pad.lineZ) < 45) return true;
|
| 237 |
if (lz > pad.z1 && Math.abs(lx - pad.roadX) < 9) return true;
|
| 238 |
+
return keepOut ? keepOut(x, z) : false;
|
| 239 |
};
|
| 240 |
const bigCams = cams.map(([x, z, r]) => [x, z, r * 2.2]);
|
| 241 |
if (region.shrubs) scatter(group, region.shrubs, heightAt, avoid, `${seed}-shrub`, (k, r) => shrubGeometry(k, r), SHRUB[region.shrubs.kind] || SHRUB.grass, cams);
|
stage/yard.js
CHANGED
|
@@ -127,8 +127,45 @@ function gaugeMaterial(levels) {
|
|
| 127 |
});
|
| 128 |
}
|
| 129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
/** The battery yard, its substation, fence, lights and O&M building. update(state) drives lights, fans and gauges. */
|
| 131 |
-
export function buildYard(battery, U, { gravel = "#a7a39b", road: roadColor = "#c2b394", seed = "yard" } = {}) {
|
| 132 |
const L = layout(battery);
|
| 133 |
const group = new THREE.Group();
|
| 134 |
const white = [
|
|
@@ -193,8 +230,8 @@ export function buildYard(battery, U, { gravel = "#a7a39b", road: roadColor = "#
|
|
| 193 |
group.add(fanMesh);
|
| 194 |
const barMat = new THREE.MeshStandardMaterial({ color: "#111", emissive: new THREE.Color(COLORS.idle), emissiveIntensity: 1.2, roughness: 0.4 });
|
| 195 |
group.add(inst(new THREE.BoxGeometry(ENC.L - 0.7, 0.13, 0.06), barMat, barM, { shadow: false }));
|
| 196 |
-
const gauge = gaugeMaterial(battery.soc_levels);
|
| 197 |
-
gauge.uniforms.uEnd.value = battery.s_end_min;
|
| 198 |
group.add(inst(new THREE.PlaneGeometry(0.36, 1.55), gauge, gaugeM, { shadow: false }));
|
| 199 |
|
| 200 |
const skidPad = [], cab = [], tank = [], fin = [], bush = [], led = [];
|
|
@@ -242,7 +279,7 @@ export function buildYard(battery, U, { gravel = "#a7a39b", road: roadColor = "#
|
|
| 242 |
const _m = new THREE.Matrix4(), _q = new THREE.Quaternion(), _e = new THREE.Euler(), one = V(1, 1, 1);
|
| 243 |
let fanAngle = 0, fanSpeed = 2;
|
| 244 |
const col = new THREE.Color();
|
| 245 |
-
function update({ mode, mw, pmax, soc, night, lights: lightsOn, dt, wall = 0, reduced = false, temp = 25, wind }) {
|
| 246 |
const load = Math.abs(mw) / Math.max(1, pmax);
|
| 247 |
const target = mode === "grey" ? 3 : 4 + 22 * load + Math.max(0, temp - 20) * 0.35;
|
| 248 |
fanSpeed += (target - fanSpeed) * Math.min(1, dt * 1.5);
|
|
@@ -261,9 +298,16 @@ export function buildYard(battery, U, { gravel = "#a7a39b", road: roadColor = "#
|
|
| 261 |
hum.material.opacity = active ? (0.25 + 0.55 * load) * (0.35 + 0.65 * night) * beat : 0;
|
| 262 |
humBush.emissive.set(COLORS[mode] || COLORS.idle);
|
| 263 |
humBush.emissiveIntensity = active ? (0.6 + 1.8 * load) * (0.4 + 0.8 * night) * beat : 0;
|
| 264 |
-
gauge.uniforms.uSoc.value = soc;
|
| 265 |
-
gauge.uniforms.uGrey.value = mode === "grey" ? 1 : 0;
|
| 266 |
gauge.uniforms.uGlow.value = night;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 267 |
ledMat.emissive.set(mode === "grey" || mode === "violation" ? "#ff5a4a" : "#7dffa8");
|
| 268 |
lights.update(lightsOn ?? night, dt);
|
| 269 |
om.windows.emissiveIntensity = 1.6 * (lightsOn ?? night);
|
|
|
|
| 127 |
});
|
| 128 |
}
|
| 129 |
|
| 130 |
+
/** A continuous SoC gauge with the reserve bands of a hybrid day: the up-reserve floor hatched from the bottom, the
|
| 131 |
+
* RegDn headroom hatched from the top; a band being deployed pulses. */
|
| 132 |
+
function bandGaugeMaterial() {
|
| 133 |
+
return new THREE.ShaderMaterial({
|
| 134 |
+
uniforms: { uSoc: { value: 0.5 }, uEnd: { value: 0.5 }, uFloor: { value: 0 }, uHead: { value: 0 }, uDraw: { value: 0 }, uGlow: { value: 1 } },
|
| 135 |
+
vertexShader: /* glsl */ `
|
| 136 |
+
varying vec2 vUv;
|
| 137 |
+
void main() {
|
| 138 |
+
vUv = uv;
|
| 139 |
+
gl_Position = projectionMatrix * modelViewMatrix * instanceMatrix * vec4(position, 1.0);
|
| 140 |
+
}`,
|
| 141 |
+
fragmentShader: /* glsl */ `
|
| 142 |
+
uniform float uSoc, uEnd, uFloor, uHead, uDraw, uGlow;
|
| 143 |
+
varying vec2 vUv;
|
| 144 |
+
void main() {
|
| 145 |
+
vec2 p = vUv;
|
| 146 |
+
vec3 frame = vec3(0.09, 0.1, 0.11);
|
| 147 |
+
float inner = step(0.12, p.x) * step(p.x, 0.88) * step(0.04, p.y) * step(p.y, 0.96);
|
| 148 |
+
float y = (p.y - 0.04) / 0.92;
|
| 149 |
+
float k = 1.2 + 0.6 * uGlow;
|
| 150 |
+
vec3 c = mix(vec3(0.16, 0.19, 0.2), vec3(0.2, 0.95, 0.5) * k, step(y, uSoc));
|
| 151 |
+
float hatch = step(0.5, fract((p.x * 0.36 + p.y * 1.55) * 9.0));
|
| 152 |
+
float fl = step(y, uFloor) * step(0.001, uFloor);
|
| 153 |
+
float hd = step(1.0 - uHead, y) * step(0.001, uHead);
|
| 154 |
+
vec3 band = vec3(0.95, 0.96, 0.97) * k * (0.75 + 0.25 * uDraw);
|
| 155 |
+
c = mix(c, band, (fl + hd) * hatch * 0.62);
|
| 156 |
+
float edge = (1.0 - smoothstep(0.0, 0.01, abs(y - uFloor))) * step(0.001, uFloor) + (1.0 - smoothstep(0.0, 0.01, abs(y - 1.0 + uHead))) * step(0.001, uHead);
|
| 157 |
+
c = mix(c, vec3(0.95) * k, min(1.0, edge));
|
| 158 |
+
float mark = 1.0 - smoothstep(0.0, 0.012, abs(y - uEnd));
|
| 159 |
+
c = mix(c, vec3(1.0, 0.85, 0.35) * 1.6, mark);
|
| 160 |
+
gl_FragColor = vec4(mix(frame, c, inner), 1.0);
|
| 161 |
+
#include <tonemapping_fragment>
|
| 162 |
+
#include <colorspace_fragment>
|
| 163 |
+
}`,
|
| 164 |
+
});
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
/** The battery yard, its substation, fence, lights and O&M building. update(state) drives lights, fans and gauges. */
|
| 168 |
+
export function buildYard(battery, U, { gravel = "#a7a39b", road: roadColor = "#c2b394", seed = "yard", bands = false } = {}) {
|
| 169 |
const L = layout(battery);
|
| 170 |
const group = new THREE.Group();
|
| 171 |
const white = [
|
|
|
|
| 230 |
group.add(fanMesh);
|
| 231 |
const barMat = new THREE.MeshStandardMaterial({ color: "#111", emissive: new THREE.Color(COLORS.idle), emissiveIntensity: 1.2, roughness: 0.4 });
|
| 232 |
group.add(inst(new THREE.BoxGeometry(ENC.L - 0.7, 0.13, 0.06), barMat, barM, { shadow: false }));
|
| 233 |
+
const gauge = bands ? bandGaugeMaterial() : gaugeMaterial(battery.soc_levels);
|
| 234 |
+
gauge.uniforms.uEnd.value = bands ? battery.s_end_min / battery.soc_levels : battery.s_end_min;
|
| 235 |
group.add(inst(new THREE.PlaneGeometry(0.36, 1.55), gauge, gaugeM, { shadow: false }));
|
| 236 |
|
| 237 |
const skidPad = [], cab = [], tank = [], fin = [], bush = [], led = [];
|
|
|
|
| 279 |
const _m = new THREE.Matrix4(), _q = new THREE.Quaternion(), _e = new THREE.Euler(), one = V(1, 1, 1);
|
| 280 |
let fanAngle = 0, fanSpeed = 2;
|
| 281 |
const col = new THREE.Color();
|
| 282 |
+
function update({ mode, mw, pmax, soc, night, lights: lightsOn, dt, wall = 0, reduced = false, temp = 25, wind, floor = 0, head = 0, draw = 0 }) {
|
| 283 |
const load = Math.abs(mw) / Math.max(1, pmax);
|
| 284 |
const target = mode === "grey" ? 3 : 4 + 22 * load + Math.max(0, temp - 20) * 0.35;
|
| 285 |
fanSpeed += (target - fanSpeed) * Math.min(1, dt * 1.5);
|
|
|
|
| 298 |
hum.material.opacity = active ? (0.25 + 0.55 * load) * (0.35 + 0.65 * night) * beat : 0;
|
| 299 |
humBush.emissive.set(COLORS[mode] || COLORS.idle);
|
| 300 |
humBush.emissiveIntensity = active ? (0.6 + 1.8 * load) * (0.4 + 0.8 * night) * beat : 0;
|
|
|
|
|
|
|
| 301 |
gauge.uniforms.uGlow.value = night;
|
| 302 |
+
if (bands) {
|
| 303 |
+
gauge.uniforms.uSoc.value = soc / battery.soc_levels;
|
| 304 |
+
gauge.uniforms.uFloor.value = floor;
|
| 305 |
+
gauge.uniforms.uHead.value = head;
|
| 306 |
+
gauge.uniforms.uDraw.value = draw;
|
| 307 |
+
} else {
|
| 308 |
+
gauge.uniforms.uSoc.value = soc;
|
| 309 |
+
gauge.uniforms.uGrey.value = mode === "grey" ? 1 : 0;
|
| 310 |
+
}
|
| 311 |
ledMat.emissive.set(mode === "grey" || mode === "violation" ? "#ff5a4a" : "#7dffa8");
|
| 312 |
lights.update(lightsOn ?? night, dt);
|
| 313 |
om.windows.emissiveIntensity = 1.6 * (lightsOn ?? night);
|
style.css
CHANGED
|
@@ -411,3 +411,91 @@ body.list-page { overflow: auto; background: #eef0ec; }
|
|
| 411 |
.lvl-intro .ctx { font-size: 13px; color: var(--ink2); border-top: 1px solid var(--line); padding-top: 8px; }
|
| 412 |
.lvl-toast .all { font-size: 13.5px; color: var(--ink2); margin-top: 6px; max-width: 560px; }
|
| 413 |
.race-board .rctx { font-size: 12px; color: var(--ink2); margin: -2px 0 6px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 411 |
.lvl-intro .ctx { font-size: 13px; color: var(--ink2); border-top: 1px solid var(--line); padding-top: 8px; }
|
| 412 |
.lvl-toast .all { font-size: 13.5px; color: var(--ink2); margin-top: 6px; max-width: 560px; }
|
| 413 |
.race-board .rctx { font-size: 12px; color: var(--ink2); margin: -2px 0 6px; }
|
| 414 |
+
|
| 415 |
+
/* v3 solar + storage days */
|
| 416 |
+
.ep.is-hybrid { --tl: 200px; }
|
| 417 |
+
.ep.is-hybrid .left-col { width: 410px; }
|
| 418 |
+
.tier.hyb { background: #2e5e4a; color: #fff; }
|
| 419 |
+
.era { display: inline-block; font-size: 10px; font-weight: 750; letter-spacing: 0.06em; padding: 0 6px; border-radius: 4px; border: 1px solid rgba(28, 35, 41, 0.35); color: #3d4a54; margin-left: 6px; vertical-align: 2px; line-height: 15px; }
|
| 420 |
+
.era.eA { background: #f1efe8; }
|
| 421 |
+
.era.eB { background: #e9eef1; }
|
| 422 |
+
.era.eC { background: #2c3440; color: #fff; border-color: #2c3440; }
|
| 423 |
+
.socsvg { width: 100%; height: 30px; display: block; overflow: visible; }
|
| 424 |
+
.socsvg .gl { font: 750 9.5px var(--sans); fill: #1c2329; text-anchor: middle; paint-order: stroke; stroke: rgba(255, 255, 255, 0.9); stroke-width: 2.6px; }
|
| 425 |
+
.soc.hyb { margin-bottom: 8px; }
|
| 426 |
+
.soc.hyb .bands { font-size: 11.5px; color: var(--ink2); margin-top: 1px; min-height: 16px; display: flex; flex-wrap: wrap; gap: 2px 4px; align-items: center; }
|
| 427 |
+
.soc.hyb .bands .gh { margin-left: auto; color: var(--faint); font-size: 11px; }
|
| 428 |
+
span.gl { display: inline-block; min-width: 14px; height: 14px; line-height: 13px; text-align: center; font-weight: 750; font-size: 9.5px; border-radius: 3px; border: 1px solid rgba(28, 35, 41, 0.45); margin-right: 3px; color: var(--ink); background: repeating-linear-gradient(45deg, rgba(28, 35, 41, 0.13) 0 2px, rgba(255, 255, 255, 0.7) 2px 4px); vertical-align: 1px; }
|
| 429 |
+
.plantrow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 2px 0 2px; }
|
| 430 |
+
.plantrow span { display: block; font-size: 11px; color: var(--faint); }
|
| 431 |
+
.plantrow b { display: block; font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
| 432 |
+
.plantrow svg.mini { width: 100%; height: 10px; display: block; margin-top: 4px; }
|
| 433 |
+
.pnl .r.dim, .pnl .r.dim b { color: var(--faint); font-weight: 500; }
|
| 434 |
+
.asbook { padding: 11px 14px 9px; }
|
| 435 |
+
.bookstrip svg { width: 100%; height: auto; display: block; }
|
| 436 |
+
.bookstrip text.gl2 { font: 750 9px var(--sans); fill: var(--ink); }
|
| 437 |
+
.bookstrip text.nm { font: 500 8.5px var(--sans); fill: var(--ink2); }
|
| 438 |
+
.bookstrip text.hr { font: 500 8px var(--sans); fill: var(--faint); }
|
| 439 |
+
.bookfoot { font-size: 11.5px; color: var(--ink2); margin-top: 3px; min-height: 16px; }
|
| 440 |
+
.pill.part { background: #fdf1df; color: #8a5200; }
|
| 441 |
+
.planlog .rules { font-size: 11.5px; color: var(--ink2); margin: 6px 6px 0; line-height: 1.5; }
|
| 442 |
+
.planlog .rules .dim { font-size: 11px; }
|
| 443 |
+
.badge.dep { background: #b4690e; }
|
| 444 |
+
.card.bul.dep { box-shadow: inset 4px 0 0 #ffa62b, var(--shadow); }
|
| 445 |
+
.card.bul.dep.fresh { box-shadow: inset 4px 0 0 #ffa62b, 0 0 0 2px rgba(28, 35, 41, 0.55), var(--shadow); }
|
| 446 |
+
.news.deploy i { background: var(--discharge-l); }
|
| 447 |
+
.news.meter i { background: #d9c27a; }
|
| 448 |
+
.news.ftp i, .news.refused i { background: var(--bad); }
|
| 449 |
+
.news.governor i { background: var(--ink); }
|
| 450 |
+
.score.hyb .w0 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px 10px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
|
| 451 |
+
.score.hyb .w0 span { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); font-weight: 650; white-space: nowrap; }
|
| 452 |
+
.score.hyb .w0 b { display: block; font-size: 15px; font-weight: 700; }
|
| 453 |
+
.score.hyb .w0 em { display: block; font-style: normal; font-size: 10.5px; color: var(--faint); line-height: 1.25; }
|
| 454 |
+
.score.hyb .second .r { font-size: 20px; }
|
| 455 |
+
.tl.hyb text.ftpm { font: 750 17px var(--sans); fill: #cf3e33; }
|
| 456 |
+
.tl.hyb text.govm { font: 600 8px var(--sans); fill: var(--ink2); }
|
| 457 |
+
.legend i.ol { background: none; border: 1.5px solid rgba(28, 35, 41, 0.45); }
|
| 458 |
+
.legend i.dot { border-radius: 50%; background: #2c3440; width: 8px; height: 8px; vertical-align: 0; }
|
| 459 |
+
.legend i.hp { width: 10px; height: 10px; border: 1px solid rgba(28, 35, 41, 0.5); margin: 0 2px 0 4px; }
|
| 460 |
+
.legend i.hp.fwd { background: repeating-linear-gradient(-45deg, rgba(28, 35, 41, 0.6) 0 1.5px, transparent 1.5px 4px); }
|
| 461 |
+
.legend i.hp.back { background: repeating-linear-gradient(45deg, rgba(28, 35, 41, 0.6) 0 1.5px, transparent 1.5px 4px); }
|
| 462 |
+
.legend i.hp.cross { background: repeating-linear-gradient(45deg, rgba(28, 35, 41, 0.55) 0 1.2px, transparent 1.2px 4px), repeating-linear-gradient(-45deg, rgba(28, 35, 41, 0.55) 0 1.2px, transparent 1.2px 4px); }
|
| 463 |
+
.legend i.hp.rows { background: repeating-linear-gradient(0deg, rgba(28, 35, 41, 0.6) 0 1.4px, transparent 1.4px 4px); }
|
| 464 |
+
.legend i.hp.dots { background: radial-gradient(circle, rgba(28, 35, 41, 0.65) 0 1px, transparent 1.3px) 0 0 / 4px 4px; }
|
| 465 |
+
.intro.hyb { width: 660px; }
|
| 466 |
+
.intro.hyb .strip svg { height: 32px; }
|
| 467 |
+
.intro.hyb h5 .era { vertical-align: 0; }
|
| 468 |
+
@media (max-height: 940px) and (min-width: 901px) {
|
| 469 |
+
.ep.is-hybrid { --tl: 180px; }
|
| 470 |
+
.ep.is-hybrid .card { padding: 10px 14px; }
|
| 471 |
+
.ep.is-hybrid .left-col { gap: 8px; }
|
| 472 |
+
.ep.is-hybrid .place .meta, .ep.is-hybrid .left-col .place .where + .where { display: none; }
|
| 473 |
+
.ep.is-hybrid .place .clock { font-size: 30px; }
|
| 474 |
+
.ep.is-hybrid .place .price { font-size: 26px; }
|
| 475 |
+
.ep.is-hybrid .place .act { margin: 4px 0 6px; font-size: 15.5px; }
|
| 476 |
+
.ep.is-hybrid .pnl .r { padding: 0.5px 0; }
|
| 477 |
+
.ep.is-hybrid .bulletins .bul:not(:first-child) { display: none; }
|
| 478 |
+
.ep.is-hybrid .race svg.spark { height: 46px; }
|
| 479 |
+
.ep.is-hybrid .race .lane { margin: 3px 0; }
|
| 480 |
+
}
|
| 481 |
+
@media (max-width: 900px) {
|
| 482 |
+
.ep.is-hybrid { --tl: 170px; }
|
| 483 |
+
.ep.is-hybrid .left-col { width: calc(100% - 2 * var(--gap)); }
|
| 484 |
+
.ep.is-hybrid .place .meta, .ep.is-hybrid .soc.hyb .bands .gh { display: none; }
|
| 485 |
+
.ep.is-hybrid .plantrow { gap: 10px; }
|
| 486 |
+
.ep.is-hybrid .plantrow b { font-size: 12.5px; }
|
| 487 |
+
.tl.hyb { height: 128px; }
|
| 488 |
+
.intro.hyb { width: calc(100% - 2 * var(--gap)); }
|
| 489 |
+
}
|
| 490 |
+
.tl.hyb text.excm { font: 750 15px var(--sans); fill: #9aa3a9; letter-spacing: 0; }
|
| 491 |
+
.legend b.xm { color: #cf3e33; font-weight: 750; margin: 0 3px 0 2px; }
|
| 492 |
+
.legend b.xm.ex { color: #9aa3a9; margin-left: 6px; }
|
| 493 |
+
.planlog .pill.part, .planlog .pill.no { white-space: normal; }
|
| 494 |
+
@media (max-width: 900px) {
|
| 495 |
+
.ep.is-hybrid .timeline { bottom: 60px; }
|
| 496 |
+
.tl.hyb .rows { display: none; }
|
| 497 |
+
.tl.live.hyb { padding-left: 0; }
|
| 498 |
+
.tl.live.hyb .hours { left: 0; }
|
| 499 |
+
}
|
| 500 |
+
.place .tags { white-space: nowrap; }
|
| 501 |
+
.score.hyb .line b { white-space: nowrap; }
|
thumbs/39595d5a766915d8.jpg
ADDED
|
|
ui/chartshybrid.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { hourLabel, money, price } from "../data.js";
|
| 2 |
+
import { PROD, UP } from "../hybrid.js";
|
| 3 |
+
|
| 4 |
+
const W = 560, H = 150, L = 50, R = 8, T = 10, B = 22;
|
| 5 |
+
const x = (h) => L + ((W - L - R) * h) / 24;
|
| 6 |
+
|
| 7 |
+
function axes(lo, hi, fmt) {
|
| 8 |
+
const y = (v) => T + (H - T - B) * (1 - (v - lo) / (hi - lo || 1));
|
| 9 |
+
let s = "";
|
| 10 |
+
for (const v of [lo, (lo + hi) / 2, hi]) s += `<line x1="${L}" x2="${W - R}" y1="${y(v)}" y2="${y(v)}" stroke="rgba(0,0,0,0.07)"/><text x="${L - 6}" y="${y(v) + 4}" font-size="10" text-anchor="end" fill="#7a868e">${fmt(v)}</text>`;
|
| 11 |
+
if (lo < 0 && hi > 0) s += `<line x1="${L}" x2="${W - R}" y1="${y(0)}" y2="${y(0)}" stroke="rgba(0,0,0,0.3)"/>`;
|
| 12 |
+
for (const h of [0, 6, 12, 18, 24]) s += `<text x="${x(h)}" y="${H - 6}" font-size="10" text-anchor="middle" fill="#7a868e">${hourLabel(h)}</text>`;
|
| 13 |
+
return { s, y };
|
| 14 |
+
}
|
| 15 |
+
const step = (vals, y, col, { dash = false, w = 2 } = {}) => `<polyline fill="none" stroke="${col}" stroke-width="${w}" ${dash ? 'stroke-dasharray="5 4"' : ""} points="${vals.map((v, i) => `${x(i)},${y(v)} ${x(i + 1)},${y(v)}`).join(" ")}"/>`;
|
| 16 |
+
const svg = (inner) => `<svg viewBox="0 0 ${W} ${H}">${inner}<line class="ph" x1="0" x2="0" y1="${T}" y2="${H - B}" stroke="#1c2329" stroke-width="1.5"/></svg>`;
|
| 17 |
+
|
| 18 |
+
/** The expert view of a solar-plus-storage day: RT against DA prices, the battery against the anchor's book over the
|
| 19 |
+
* PV, SoC inside its reserve bands, the reserve book by product, and the cash race. Linear scales. */
|
| 20 |
+
export function buildHybridCharts(root, d) {
|
| 21 |
+
const el = document.createElement("aside");
|
| 22 |
+
el.className = "drawer";
|
| 23 |
+
el.setAttribute("aria-label", "Charts");
|
| 24 |
+
const da = d.prices, rt = d.rt, hs = d.hours;
|
| 25 |
+
const cap = Math.max(...da) * 3 + 50;
|
| 26 |
+
const top = Math.min(Math.max(...rt, ...da), cap);
|
| 27 |
+
const pa = axes(Math.min(0, ...rt, ...da), top * 1.05, (v) => price(v));
|
| 28 |
+
const pk = rt.indexOf(Math.max(...rt));
|
| 29 |
+
const over = rt[pk] > top * 1.05 ? `<text x="${Math.min(x(pk + 0.5), W - R - 60)}" y="${T + 9}" font-size="10" text-anchor="middle" fill="#cf3e33">peak ${price(rt[pk])} (off scale)</text>` : "";
|
| 30 |
+
const priceSvg = svg(pa.s + rt.map((v, h) => `<rect x="${x(h) + 1}" y="${Math.min(pa.y(Math.min(v, top * 1.05)), pa.y(0))}" width="${x(1) - x(0) - 2}" height="${Math.abs(pa.y(Math.min(v, top * 1.05)) - pa.y(0))}" fill="${v < 0 ? "#9a7fd0" : "#9fb0bc"}"/>`).join("") + step(da, pa.y, "#2c3440", { dash: true }) + over);
|
| 31 |
+
const P = d.P, pvm = Math.max(P, d.pvMwac);
|
| 32 |
+
const ba = axes(-P, pvm, (v) => `${v > 0 ? "+" : ""}${Math.round(v)}`);
|
| 33 |
+
const anchor = d.ep.references?.anchor?.book?.energy;
|
| 34 |
+
const pvArea = `<polygon fill="#efe0a8" opacity="0.7" points="${x(0)},${ba.y(0)} ${hs.map((z, h) => `${x(h)},${ba.y(z.pvAvail)} ${x(h + 1)},${ba.y(z.pvAvail)}`).join(" ")} ${x(24)},${ba.y(0)}"/>`;
|
| 35 |
+
const battSvg = svg(ba.s + pvArea + hs.map((z, h) => (Math.abs(z.batt) > 0.05 ? `<rect x="${x(h) + 1.5}" y="${Math.min(ba.y(0), ba.y(z.batt))}" width="${x(1) - x(0) - 3}" height="${Math.abs(ba.y(z.batt) - ba.y(0))}" fill="${z.batt > 0 ? "#ffa62b" : "#2fd3ff"}" opacity="0.9"/>` : "")).join("") + (anchor ? step(anchor.map(Number), ba.y, "#2c3440", { dash: true, w: 1.5 }) : ""));
|
| 36 |
+
const sa = axes(0, d.E, (v) => `${Math.round(v)}`);
|
| 37 |
+
const floor = hs.map((z) => Math.min(d.E, z.rUp)), head = hs.map((z) => d.E - Math.min(d.E, z.rDn));
|
| 38 |
+
const bands = `<polygon fill="url(#hp-fwd)" points="${x(0)},${sa.y(0)} ${floor.map((v, h) => `${x(h)},${sa.y(v)} ${x(h + 1)},${sa.y(v)}`).join(" ")} ${x(24)},${sa.y(0)}"/><polygon fill="url(#hp-dots)" points="${x(0)},${sa.y(d.E)} ${head.map((v, h) => `${x(h)},${sa.y(v)} ${x(h + 1)},${sa.y(v)}`).join(" ")} ${x(24)},${sa.y(d.E)}"/>`;
|
| 39 |
+
const socPts = d.ep.soc_path.map((s, i) => `${x(i)},${sa.y(s)}`).join(" ");
|
| 40 |
+
const an = d.lanes.find((l) => l.k === "anchor");
|
| 41 |
+
const socSvg = svg(sa.s + bands + `<line x1="${L}" x2="${W - R}" y1="${sa.y(d.site.bess.s_end_min_mwh)}" y2="${sa.y(d.site.bess.s_end_min_mwh)}" stroke="#d08a00" stroke-dasharray="3 3"/>` + (an ? `<polyline fill="none" stroke="rgba(28,35,41,0.45)" stroke-width="1.5" stroke-dasharray="4 3" points="${an.soc.map((s, i) => `${x(i)},${sa.y(s)}`).join(" ")}"/>` : "") + `<polyline fill="none" stroke="#22b866" stroke-width="2" points="${socPts}"/>`);
|
| 42 |
+
const aa = axes(-P, P, (v) => `${v > 0 ? "+" : ""}${Math.round(v)}`);
|
| 43 |
+
const asSvg = svg(aa.s + hs.map((z, h) => {
|
| 44 |
+
let up = 0, s = "";
|
| 45 |
+
for (const k of UP.filter((kk) => d.offered.includes(kk))) {
|
| 46 |
+
const v = z.awards[k];
|
| 47 |
+
if (v > 0.05) s += `<rect x="${x(h) + 2}" y="${aa.y(up + v)}" width="${x(1) - x(0) - 4}" height="${aa.y(up) - aa.y(up + v)}" fill="url(#hp-${PROD[k].hatch})" stroke="rgba(28,35,41,0.5)" stroke-width="0.6"/>`;
|
| 48 |
+
up += v;
|
| 49 |
+
}
|
| 50 |
+
const rd = z.awards.regdn;
|
| 51 |
+
if (rd > 0.05 && d.offered.includes("regdn")) s += `<rect x="${x(h) + 2}" y="${aa.y(0)}" width="${x(1) - x(0) - 4}" height="${aa.y(-rd) - aa.y(0)}" fill="url(#hp-dots)" stroke="rgba(28,35,41,0.5)" stroke-width="0.6"/>`;
|
| 52 |
+
return s;
|
| 53 |
+
}).join(""));
|
| 54 |
+
const series = [["agent", d.agentCum, "#2c3440", false], ...d.lanes.map((l) => [l.k, l.cum, l.k === "hind" ? "#1d9a57" : l.k === "anchor" ? "#7a868e" : "#c9a24d", true])];
|
| 55 |
+
const all = series.flatMap((s) => s[1]).concat([0]);
|
| 56 |
+
const ma = axes(Math.min(...all), Math.max(...all) * 1.05 || 1, (v) => money(v));
|
| 57 |
+
const cashSvg = svg(ma.s + series.map(([, c, col, dash]) => `<polyline fill="none" stroke="${col}" stroke-width="2" ${dash ? 'stroke-dasharray="5 4"' : ""} points="${[0, ...c].map((v, i) => `${x(i)},${ma.y(v)}`).join(" ")}"/>`).join(""));
|
| 58 |
+
const glyphs = d.offered.map((k) => `${PROD[k].glyph} ${PROD[k].name}`).join(", ");
|
| 59 |
+
el.innerHTML = `<button class="x" aria-label="Close charts">×</button><h3>Charts</h3><div class="sub">${d.task.settlement_point} · ${d.task.date} · PV ${d.site.pv_mwac} MWac · ${d.P} MW / ${d.E} MWh · η ${d.eta} · degradation $${d.site.bess.c_deg}/MWh · meter ${Math.round(d.L)} MW · ${d.watches.length} watches · v3 preview</div>
|
| 60 |
+
<figure><figcaption>Real-time price by the hour (bars) and the day-ahead price (dashed), $/MWh</figcaption>${priceSvg}</figure>
|
| 61 |
+
<figure><figcaption>Battery MW as executed (bars; + discharges) over the PV available (cream), against the rolling anchor's book (dashed)</figcaption>${battSvg}</figure>
|
| 62 |
+
<figure><figcaption>State of charge, MWh (green), the anchor's (dashed), inside the reserve bands: up-reserves need charge below (hatched), RegDn needs room above (dotted); orange is the end obligation</figcaption>${socSvg}</figure>
|
| 63 |
+
${d.offered.length ? `<figure><figcaption>Reserve awards, MW: up products stacked above, RegDn below (${glyphs})</figcaption>${asSvg}</figure>` : ""}
|
| 64 |
+
<figure><figcaption>Cumulative cash, $: the agent (solid), the rolling anchor (grey), the energy-only anchor and AS-hog (gold), hindsight (green)</figcaption>${cashSvg}</figure>`;
|
| 65 |
+
root.append(el);
|
| 66 |
+
const phs = [...el.querySelectorAll(".ph")];
|
| 67 |
+
el.querySelector(".x").addEventListener("click", () => toggle(false));
|
| 68 |
+
function toggle(on = !el.classList.contains("open")) {
|
| 69 |
+
el.classList.toggle("open", on);
|
| 70 |
+
return on;
|
| 71 |
+
}
|
| 72 |
+
return {
|
| 73 |
+
toggle,
|
| 74 |
+
update(t) {
|
| 75 |
+
if (!el.classList.contains("open")) return;
|
| 76 |
+
const px = x(Math.max(0, Math.min(24, t)));
|
| 77 |
+
for (const l of phs) l.setAttribute("x1", px), l.setAttribute("x2", px);
|
| 78 |
+
},
|
| 79 |
+
};
|
| 80 |
+
}
|
ui/hud.js
CHANGED
|
@@ -125,7 +125,7 @@ export function buildHud(root, d, { onSeek, onToggle }) {
|
|
| 125 |
return { update, place, timeline };
|
| 126 |
}
|
| 127 |
|
| 128 |
-
const REFS = { "rolling-anchor": "Rolling anchor (reference)", naive: "Naive (reference)", "dp-optimum": "DP optimum (reference)", greedy: "Greedy (reference)", threshold: "Threshold (reference)", "flawed-plan": "Flawed plan (demo)", "persistence-dp": "Persistence DP (reference)" };
|
| 129 |
|
| 130 |
export function modelName(m, label) {
|
| 131 |
if (label) return label;
|
|
|
|
| 125 |
return { update, place, timeline };
|
| 126 |
}
|
| 127 |
|
| 128 |
+
const REFS = { "rolling-anchor": "Rolling anchor (reference)", naive: "Naive (reference)", "dp-optimum": "DP optimum (reference)", greedy: "Greedy (reference)", threshold: "Threshold (reference)", "flawed-plan": "Flawed plan (demo)", "persistence-dp": "Persistence DP (reference)", "as-hog": "AS-hog (reference)", "solar-sponge": "Solar sponge (reference)", "v2-energy-only": "v2 energy-only plan (reference)" };
|
| 129 |
|
| 130 |
export function modelName(m, label) {
|
| 131 |
if (label) return label;
|
ui/hudhybrid.js
ADDED
|
@@ -0,0 +1,607 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { hourLabel, money, price } from "../data.js";
|
| 2 |
+
import { clockMin, ERA, hourSpan, laneAt, PROD, RULES, UP } from "../hybrid.js";
|
| 3 |
+
import { describe, weatherAt } from "../stage/weather.js";
|
| 4 |
+
import { ATTRIBUTION, modelName } from "./hud.js";
|
| 5 |
+
import { clockText } from "./hudlive.js";
|
| 6 |
+
|
| 7 |
+
const el = (tag, cls, html) => {
|
| 8 |
+
const e = document.createElement(tag);
|
| 9 |
+
if (cls) e.className = cls;
|
| 10 |
+
if (html != null) e.innerHTML = html;
|
| 11 |
+
return e;
|
| 12 |
+
};
|
| 13 |
+
const esc = (s) => String(s ?? "").replace(/[&<>"]/g, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """ })[c]);
|
| 14 |
+
const NS = "http://www.w3.org/2000/svg";
|
| 15 |
+
const svgEl = (tag, attrs) => {
|
| 16 |
+
const e = document.createElementNS(NS, tag);
|
| 17 |
+
for (const [k, v] of Object.entries(attrs)) e.setAttribute(k, v);
|
| 18 |
+
return e;
|
| 19 |
+
};
|
| 20 |
+
const plain = (min) => clockText(min, { small: false });
|
| 21 |
+
const mwTxt = (v) => (Math.abs(v) < 10 ? Math.abs(v).toFixed(1) : String(Math.round(Math.abs(v))));
|
| 22 |
+
const mwh = (v) => `${Math.round(v)} MWh`;
|
| 23 |
+
const mvTxt = (v) => (Math.abs(v) < 0.05 ? "idle" : `${v > 0 ? "discharging" : "charging"} ${mwTxt(v)} MW`);
|
| 24 |
+
const CHARGE = "#2fd3ff", DISCHARGE = "#ffa62b", SOLAR = "#efe0a8", SOLAR_EDGE = "#b8973c";
|
| 25 |
+
const INK = "rgba(28,35,41,0.62)";
|
| 26 |
+
const reward = (p, idle, anchor) => (anchor - idle > 1e-6 ? Math.max(0, Math.min(1, 0.2 + (0.8 * (p - idle)) / (anchor - idle))) : null);
|
| 27 |
+
|
| 28 |
+
/** Hatches for the reserve products (ink on transparent), shared by every SVG on the page. */
|
| 29 |
+
export function hatchDefs() {
|
| 30 |
+
const line = (id, rot, w = 1.6, gap = 4.5) => `<pattern id="hp-${id}" width="${gap}" height="${gap}" patternUnits="userSpaceOnUse" patternTransform="rotate(${rot})"><rect width="${w}" height="${gap}" fill="${INK}"/></pattern>`;
|
| 31 |
+
return `<svg width="0" height="0" style="position:absolute" aria-hidden="true"><defs>${line("fwd", 45)}${line("back", -45)}${line("rows", 90, 1.4, 4)}
|
| 32 |
+
<pattern id="hp-cross" width="5" height="5" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="1.3" height="5" fill="${INK}"/><rect width="5" height="1.3" fill="${INK}"/></pattern>
|
| 33 |
+
<pattern id="hp-dots" width="4.5" height="4.5" patternUnits="userSpaceOnUse"><circle cx="2.2" cy="2.2" r="1.05" fill="${INK}"/></pattern>
|
| 34 |
+
<pattern id="hp-curt" width="5" height="5" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="1.8" height="5" fill="${SOLAR_EDGE}"/></pattern>
|
| 35 |
+
<pattern id="hp-fz" width="5" height="5" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="2" height="5" fill="rgba(28,35,41,0.22)"/></pattern></defs></svg>`;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
/** The cards over a solar-plus-storage day: the place card with the SoC and its reserve bands, the panels and the
|
| 39 |
+
* meter; settlement; bulletins; the race; the reserve book; how it planned; the score; the 24-hour timeline. */
|
| 40 |
+
export function buildHybridHud(root, d, { onSeek, onToggle }) {
|
| 41 |
+
const ep = d.ep;
|
| 42 |
+
root.insertAdjacentHTML("beforeend", hatchDefs());
|
| 43 |
+
const left = el("div", "left-col");
|
| 44 |
+
const place = el("section", "card place hyb");
|
| 45 |
+
const pnl = el("section", "card pnl");
|
| 46 |
+
const bulls = el("div", "bulletins");
|
| 47 |
+
left.append(place, pnl, bulls);
|
| 48 |
+
const news = el("div", "news off");
|
| 49 |
+
const right = el("aside", "right");
|
| 50 |
+
const race = el("section", "card race");
|
| 51 |
+
const book = el("section", "card asbook");
|
| 52 |
+
const think = el("section", "card think planlog");
|
| 53 |
+
right.append(race, ...(d.offered.length ? [book] : []), think);
|
| 54 |
+
const timeline = el("section", "card timeline live hyb");
|
| 55 |
+
const attrib = el("div", "attrib", ATTRIBUTION.replace("ERCOT DAM settlement point prices", "ERCOT DAM and real-time settlement point prices, DAM AS clearing prices") + " Solar: ERCOT system-wide availability (proxy). Bulletins: paraphrased ERCOT and NWS notices.");
|
| 56 |
+
const back = el("a", "back-link", "← All runs");
|
| 57 |
+
back.href = "./index.html";
|
| 58 |
+
const intro = el("section", "card intro live-intro hyb");
|
| 59 |
+
root.append(left, news, right, timeline, attrib, back, intro);
|
| 60 |
+
|
| 61 |
+
const name = modelName(ep.model, ep.model_label);
|
| 62 |
+
const lanes = [{ k: "agent", label: name, cum: d.agentCum, final: ep.profit_usd }, ...d.lanes];
|
| 63 |
+
const lo = Math.min(0, ...lanes.flatMap((l) => [l.final, ...l.cum]));
|
| 64 |
+
const hi = Math.max(1, ...lanes.flatMap((l) => [l.final, ...l.cum]));
|
| 65 |
+
const zx = (v) => ((v - lo) / (hi - lo)) * 100;
|
| 66 |
+
const cls = { agent: "agent", anchor: "opt", hind: "hind", energy: "base", as_hog: "base" };
|
| 67 |
+
race.innerHTML = `<h5>Race against the references <span class="v2tag">v3 preview</span></h5>` + lanes.map((l) => `<div class="lane ${cls[l.k] || "base"} ${l.k}" data-k="${l.k}"><div class="who">${l.k === "agent" ? `<b>${esc(l.label)}</b>` : esc(l.label)}</div><div class="track"><i class="z" style="left:${zx(0)}%"></i><span></span></div><div class="v num"></div></div>`).join("") +
|
| 68 |
+
`<svg class="spark" viewBox="0 0 240 70" preserveAspectRatio="none"></svg><div class="score live hyb" hidden></div>`;
|
| 69 |
+
intro.innerHTML = introHtml(d, name);
|
| 70 |
+
const anchorLane = d.lanes.find((l) => l.k === "anchor");
|
| 71 |
+
const ab = d.offered.length ? bookStrip(d) : null;
|
| 72 |
+
if (ab) {
|
| 73 |
+
book.innerHTML = `<h5>Reserve book <small>MW by hour · ${ep.tier === "reserves" ? "sold day-ahead, fixed after 2 pm" : "re-optimisable"}</small></h5>`;
|
| 74 |
+
book.append(ab.root);
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
const tl = buildTimeline(d);
|
| 78 |
+
timeline.innerHTML = `<div class="ctl"><div class="row"><button class="play" data-a="play">▶ Play</button><button data-a="director" class="on" title="Automatic camera (D)">Director</button></div>
|
| 79 |
+
<div class="row speeds">${[0.5, 1, 2, 4].map((s, i) => `<button data-s="${s}" title="${i + 1}">${s === 0.5 ? "½" : s}×</button>`).join("")}</div>
|
| 80 |
+
<div class="row"><button data-a="charts" title="C">Charts</button><button data-a="settings">Settings</button><button data-a="link" title="Copy a link to this hour">Link</button></div></div>`;
|
| 81 |
+
timeline.append(tl.root);
|
| 82 |
+
const seekAt = (e) => {
|
| 83 |
+
const r = tl.svg.getBoundingClientRect();
|
| 84 |
+
onSeek(Math.max(0, Math.min(24, ((e.clientX - r.left) / r.width) * 24)));
|
| 85 |
+
};
|
| 86 |
+
let drag = false;
|
| 87 |
+
tl.root.addEventListener("pointerdown", (e) => ((drag = true), tl.root.setPointerCapture(e.pointerId), seekAt(e)));
|
| 88 |
+
tl.root.addEventListener("pointermove", (e) => drag && seekAt(e));
|
| 89 |
+
tl.root.addEventListener("pointerup", () => (drag = false));
|
| 90 |
+
timeline.querySelectorAll("button").forEach((btn) => btn.addEventListener("click", () => onToggle(btn.dataset.a || "speed", btn.dataset.s ? +btn.dataset.s : null)));
|
| 91 |
+
|
| 92 |
+
const events = newsEvents(d);
|
| 93 |
+
let lastKey = "", lastPlan = -1, lastEv = null, lastBook = "";
|
| 94 |
+
function update(t, { playing, speed, directing }) {
|
| 95 |
+
const min = clockMin(t);
|
| 96 |
+
const pre = t < 0, ended = t >= 24;
|
| 97 |
+
const x = pre ? d.pre(t) : d.at(Math.min(23.999, t));
|
| 98 |
+
const w = d.watchAt(t);
|
| 99 |
+
const settled = Math.max(0, Math.min(24, Math.floor(t + 1e-9)));
|
| 100 |
+
const key = [Math.floor(t * 30), w.index, playing, speed, directing].join("|");
|
| 101 |
+
if (key !== lastKey) {
|
| 102 |
+
lastKey = key;
|
| 103 |
+
const wx = weatherAt(d.weather, Math.max(0, Math.min(24, t)));
|
| 104 |
+
const lastRt = settled > 0 ? d.rt[settled - 1] : null;
|
| 105 |
+
const hot = lastRt != null && lastRt > Math.max(150, 2 * d.prices[settled - 1]);
|
| 106 |
+
place.innerHTML = placeHtml(d, x, t, min, settled, lastRt, hot, wx, anchorLane);
|
| 107 |
+
pnl.innerHTML = pnlHtml(d, t, settled, ended);
|
| 108 |
+
bulls.innerHTML = bulletinsHtml(d, t);
|
| 109 |
+
const ev = events.filter((e) => t >= e.t && t < e.until).at(-1);
|
| 110 |
+
if (ev !== lastEv) {
|
| 111 |
+
lastEv = ev;
|
| 112 |
+
if (ev) {
|
| 113 |
+
news.className = `news ${ev.kind}`;
|
| 114 |
+
news.innerHTML = `${ev.badge ? `<span class="badge ${ev.badge[1]}">${esc(ev.badge[0])}</span>` : "<i></i>"}<span>${esc(ev.text)}</span>`;
|
| 115 |
+
} else news.className = "news off";
|
| 116 |
+
}
|
| 117 |
+
for (const l of lanes) {
|
| 118 |
+
const v = laneAt(l.cum, t, l.final);
|
| 119 |
+
const row = race.querySelector(`.lane[data-k="${l.k}"]`);
|
| 120 |
+
const s = row.querySelector("span");
|
| 121 |
+
const a = zx(Math.min(0, v)), c = zx(Math.max(0, v));
|
| 122 |
+
s.style.left = `${a}%`;
|
| 123 |
+
s.style.width = `${Math.max(0.5, c - a)}%`;
|
| 124 |
+
row.querySelector(".v").textContent = money(v);
|
| 125 |
+
}
|
| 126 |
+
race.querySelector(".spark").innerHTML = spark(lanes, Math.min(24, Math.max(0, t)), lo, hi);
|
| 127 |
+
const score = race.querySelector(".score");
|
| 128 |
+
score.hidden = !ended;
|
| 129 |
+
if (ended) score.innerHTML = scoreHtml(d, lanes);
|
| 130 |
+
if (w.index !== lastPlan || ended) {
|
| 131 |
+
lastPlan = w.index;
|
| 132 |
+
think.innerHTML = planHtml(d, t);
|
| 133 |
+
const cur = think.querySelector(".wrow.now");
|
| 134 |
+
if (ended) think.scrollTop = think.scrollHeight;
|
| 135 |
+
else if (cur) think.scrollTop = Math.max(0, cur.offsetTop - think.clientHeight + cur.offsetHeight + 8);
|
| 136 |
+
}
|
| 137 |
+
const bk = `${pre ? -1 : Math.min(23, Math.floor(t))}|${w.index}|${ended}`;
|
| 138 |
+
if (ab && bk !== lastBook) (lastBook = bk), ab.update(t, w, settled);
|
| 139 |
+
timeline.querySelector(".play").textContent = playing ? "❚❚ Pause" : "▶ Play";
|
| 140 |
+
timeline.querySelectorAll("[data-s]").forEach((s) => s.classList.toggle("on", +s.dataset.s === speed));
|
| 141 |
+
timeline.querySelector('[data-a="director"]').classList.toggle("on", directing);
|
| 142 |
+
intro.hidden = t >= -0.15;
|
| 143 |
+
}
|
| 144 |
+
const ramp = (a, b) => Math.max(0, Math.min(1, (t - a) / (b - a)));
|
| 145 |
+
news.style.opacity = lastEv ? Math.min(ramp(lastEv.t, lastEv.t + 0.08), 1 - ramp(lastEv.until - 0.08, lastEv.until)) : 0;
|
| 146 |
+
intro.style.opacity = 1 - ramp(-0.45, -0.15);
|
| 147 |
+
intro.style.setProperty("--pos", 0.25 + 0.75 * ramp(-1.45, -1.2));
|
| 148 |
+
tl.update(t, settled, w);
|
| 149 |
+
}
|
| 150 |
+
return { update, place, timeline };
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
function socSvg(d, x, ghost) {
|
| 154 |
+
const W = 368, H = 30, y0 = 6, bh = 16, sx = (v) => (Math.max(0, Math.min(d.E, v)) / d.E) * W;
|
| 155 |
+
const fill = sx(x.soc);
|
| 156 |
+
let s = `<rect x="0" y="${y0}" width="${W}" height="${bh}" rx="5" fill="#e1e5e2"/><rect x="0" y="${y0}" width="${fill}" height="${bh}" rx="5" fill="url(#socfill)"/>`;
|
| 157 |
+
let a = 0;
|
| 158 |
+
const short = x.floor > x.soc + 0.5;
|
| 159 |
+
for (const b of x.bands) {
|
| 160 |
+
const w = sx(b.mwh);
|
| 161 |
+
if (w < 0.6) continue;
|
| 162 |
+
const p = PROD[b.k];
|
| 163 |
+
s += `<rect x="${a}" y="${y0}" width="${w}" height="${bh}" fill="url(#hp-${p.hatch})" stroke="${short ? "#cf3e33" : b.live ? DISCHARGE : "rgba(28,35,41,0.55)"}" stroke-width="${short || b.live ? 2 : 1}"/>`;
|
| 164 |
+
if (w > 13) s += `<text x="${a + w / 2}" y="${y0 + bh / 2 + 3.6}" class="gl">${p.glyph}</text>`;
|
| 165 |
+
a += w;
|
| 166 |
+
}
|
| 167 |
+
if (x.head > 0.3) {
|
| 168 |
+
const w = sx(x.head);
|
| 169 |
+
s += `<rect x="${W - w}" y="${y0}" width="${w}" height="${bh}" fill="url(#hp-dots)" stroke="rgba(28,35,41,0.55)"/>`;
|
| 170 |
+
if (w > 13) s += `<text x="${W - w / 2}" y="${y0 + bh / 2 + 3.6}" class="gl">D</text>`;
|
| 171 |
+
}
|
| 172 |
+
const end = sx(d.site.bess.s_end_min_mwh);
|
| 173 |
+
if (end > 0) s += `<line x1="${end}" x2="${end}" y1="2" y2="${y0 + bh + 3}" stroke="#d08a00" stroke-width="2"/>`;
|
| 174 |
+
if (ghost != null) s += `<line x1="${sx(ghost)}" x2="${sx(ghost)}" y1="1" y2="${y0 + bh + 5}" stroke="#1c2329" stroke-width="1.4" stroke-dasharray="2 2"/><path d="M${sx(ghost) - 3.5},0 L${sx(ghost) + 3.5},0 L${sx(ghost)},4.5 Z" fill="#1c2329" opacity="0.55"/>`;
|
| 175 |
+
return `<svg class="socsvg" viewBox="0 0 ${W} ${H}"><defs><linearGradient id="socfill"><stop offset="0" stop-color="#2bc271"/><stop offset="1" stop-color="#5fd893"/></linearGradient></defs>${s}</svg>`;
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
function barSvg(segs, W = 160, H = 12) {
|
| 179 |
+
return `<svg class="mini" viewBox="0 0 ${W} ${H}" preserveAspectRatio="none"><rect width="${W}" height="${H}" rx="3" fill="#e3e6e3"/>${segs.map(([a, b, fill, stroke]) => (b - a > 0.2 ? `<rect x="${a * W}" y="0" width="${(b - a) * W}" height="${H}" fill="${fill}" ${stroke ? `stroke="${stroke}" stroke-width="0.8"` : ""}/>` : "")).join("")}</svg>`;
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
function placeHtml(d, x0, t, min, settled, lastRt, hot, wx, anchor) {
|
| 183 |
+
const ended = t >= 24, pre = t < 0, ep = d.ep;
|
| 184 |
+
const x = ended ? { ...x0, bands: [], head: 0, floor: 0 } : x0;
|
| 185 |
+
const mw = Math.abs(x.net);
|
| 186 |
+
const dep = x.dep > 0.1 ? x.events.filter((e) => min >= e.from && min < e.to).map((e) => PROD[e.product].name) : [];
|
| 187 |
+
const upMw = UP.reduce((a, k) => a + x.awards[k], 0);
|
| 188 |
+
const act = pre ? (t < -1.2 ? "The day before: planning" : "Day-ahead book committed") : ended ? "Day over" :
|
| 189 |
+
dep.length ? `${dep.join(" and ")} deployed · ${mwTxt(x.dep)} MW called${x.net > 0.5 ? `, discharging ${mwTxt(x.net)}` : x.net < -0.5 ? `, still charging ${mwTxt(x.net)} net` : ""}` :
|
| 190 |
+
x.mode === "charge" ? `Charging ${mwTxt(mw)} MW${x.fromPv > mw - 0.5 ? " from the panels" : x.fromPv > 0.5 ? `, ${mwTxt(x.fromPv)} from the panels` : x.price < 0 ? " from the grid, paid to take it" : " from the grid"}` :
|
| 191 |
+
x.mode === "discharge" ? `Discharging ${mwTxt(mw)} MW` :
|
| 192 |
+
upMw + x.awards.regdn > 0.5 ? `Holding ${[upMw > 0.5 && `${mwTxt(upMw)} MW up`, x.awards.regdn > 0.5 && `${mwTxt(x.awards.regdn)} MW RegDn`].filter(Boolean).join(" and ")} in reserve` : "Idle";
|
| 193 |
+
const era = ERA[d.era];
|
| 194 |
+
const ghost = anchor && !pre && !ended ? anchor.soc[x.h] + (anchor.soc[x.h + 1] - anchor.soc[x.h]) * x.u : null;
|
| 195 |
+
const held = x.bands.filter((b) => b.mwh > 0.5).map((b) => `<span class="gl">${PROD[b.k].glyph}</span>${PROD[b.k].name} ${mwh(b.mwh)}`).join(" · ");
|
| 196 |
+
const room = x.head > 0.5 ? `<span class="gl">D</span>RegDn room ${mwh(x.head)}` : "";
|
| 197 |
+
const bandLine = ended ? `ends at ${Math.round(x.soc)} MWh; the obligation is ${Math.round(d.site.bess.s_end_min_mwh)}` : pre ? "" : [held && `held for ${held}`, room].filter(Boolean).join(" · ");
|
| 198 |
+
const pvA = x.pvAvail, pvU = x.pvUsed;
|
| 199 |
+
const L = d.L, toBat = Math.max(0, Math.min(x.exp, x.net)), pvOut = Math.max(0, x.exp - toBat);
|
| 200 |
+
const panels = pvA < 0.5 ? "no sun" : x.stow && !pre ? (x.price < 0 ? "stowed: negative price" : "stowed") : `${mwTxt(pvU)} MW${x.curtailed > 0.5 && !pre ? ` · ${mwTxt(x.curtailed)} curtailed` : ""}`;
|
| 201 |
+
const meter = x.exp < -0.5 ? `importing ${mwTxt(x.exp)} MW` : `${mwTxt(x.exp)} of ${Math.round(L)} MW`;
|
| 202 |
+
return `<div class="where">${d.dateLabel} · <b>${esc(d.task.settlement_point)}</b> · ${esc(d.place.name)}<span class="tags"><span class="tier hyb">V3 · ${esc(ep.tier.toUpperCase())}</span><span class="era e${d.era}" title="${esc(era[1])}">${esc(era[0])}</span></span></div>
|
| 203 |
+
<div class="big"><span class="clock num">${ended ? "End of day" : clockText(min)}</span>${pre ? "" : lastRt == null ? `<span class="price num dim-price">${price(d.prices[x.h])}<small>/MWh DA</small></span>` : `<span class="price num ${lastRt < 0 ? "neg" : hot ? "hot" : ""}">${price(lastRt)}<small>/MWh RT</small></span>`}</div>
|
| 204 |
+
<div class="where" style="margin-top:-2px">${pre ? "the day before · the day-ahead book is due at 2 pm" : lastRt == null ? "day-ahead price; the first real-time price settles at 1 am" : `real time, ${hourSpan(settled - 1)} settled · day-ahead ${price(d.prices[settled - 1])}`}</div>
|
| 205 |
+
<div class="act ${ended ? "" : dep.length ? "discharge" : x.mode}"><i></i><span>${act}</span></div>
|
| 206 |
+
<div class="soc hyb"><div class="row"><span>State of charge</span><span><b class="num">${Math.round((x.soc / d.E) * 100)}%</b> · ${Math.round(x.soc)} of ${Math.round(d.E)} MWh</span></div>
|
| 207 |
+
${socSvg(d, x, ghost)}<div class="bands">${bandLine || (pre ? "reserves are booked at 2 pm" : "no reserves this hour")}${ghost != null ? '<span class="gh">┆ anchor</span>' : ""}</div></div>
|
| 208 |
+
<div class="plantrow"><div><span>Panels</span><b class="num">${panels}</b>${barSvg([[0, Math.min(1, pvU / d.pvMwac), SOLAR, SOLAR_EDGE], [pvU / d.pvMwac, Math.min(1, pvA / d.pvMwac), "url(#hp-curt)"]])}</div>
|
| 209 |
+
<div><span>Meter</span><b class="num">${meter}</b>${barSvg(x.exp < 0 ? [[0, Math.min(1, -x.exp / d.Limp), CHARGE]] : [[0, pvOut / L, SOLAR, SOLAR_EDGE], [pvOut / L, Math.min(1, (pvOut + toBat) / L), DISCHARGE], [Math.max(0, 1 - upMw / L), 1, "url(#hp-fwd)"]])}</div></div>
|
| 210 |
+
<div class="meta">PV ${d.site.pv_mwac} MWac / ${d.site.pv_mwdc} MWdc · battery ${d.P} MW / ${d.E} MWh · meter ${Math.round(L)} MW · ${describe(wx) || "weather n/a"}</div>`;
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
function pnlHtml(d, t, settled, ended) {
|
| 214 |
+
const hs = d.hours.slice(0, ended ? 24 : settled);
|
| 215 |
+
const s = (k) => hs.reduce((a, x) => a + x.cashParts[k], 0);
|
| 216 |
+
const c = ended ? d.ep.cash : null;
|
| 217 |
+
const pen = ended ? c.end_penalty || 0 : null;
|
| 218 |
+
const exc = hs.reduce((a, x) => a + x.excusedUsd, 0);
|
| 219 |
+
const total = hs.reduce((a, x) => a + x.cash, 0) + (ended ? 0 : 0);
|
| 220 |
+
const row = (k, v, cl = "") => `<div class="r ${cl}"><span>${k}</span><b class="num">${v}</b></div>`;
|
| 221 |
+
const sm = (v) => (Math.abs(v) < 0.5 ? "$0" : money(v, { sign: true }));
|
| 222 |
+
const dep = s("dep"), ftp = s("ftp");
|
| 223 |
+
return `<h5>Settlement so far <small>${ended ? "24 of 24 hours" : `${settled} of 24 hours`}</small></h5>
|
| 224 |
+
${row("Energy, day-ahead", sm(s("energy_da")))}
|
| 225 |
+
${row("Energy, real-time deviation", sm(s("energy_rt")), s("energy_rt") < -0.5 ? "bad" : s("energy_rt") > 0.5 ? "good" : "")}
|
| 226 |
+
${d.offered.length ? row("Reserves (AS), day-ahead", sm(s("as"))) : ""}
|
| 227 |
+
${d.offered.length ? row("Deployment energy", sm(dep)) : ""}
|
| 228 |
+
${row("Degradation", s("deg") < 0.5 ? "$0" : money(-s("deg")))}
|
| 229 |
+
${d.offered.length ? row("Failure to provide", ftp > 0.5 ? money(-ftp) : "$0", ftp > 0.5 ? "bad" : "") : ""}
|
| 230 |
+
${row("End-of-day shortfall", pen == null ? "at midnight" : pen ? money(-pen) : "$0", pen ? "bad" : "")}
|
| 231 |
+
${exc > 0.5 ? row("Excused (not charged)", money(exc), "dim") : ""}
|
| 232 |
+
${row("Total", money(ended ? d.ep.profit_usd : total), "total")}`;
|
| 233 |
+
}
|
| 234 |
+
|
| 235 |
+
function bulletinsHtml(d, t) {
|
| 236 |
+
const got = d.notices.map((n) => ({ n, at: n.deploy ? Math.max(0, n.deploy.start_min) / 60 : n.deliverT })).filter((z) => z.at != null && z.at <= t + 1e-9 && (z.n.deploy || z.n.deliverT != null));
|
| 237 |
+
if (!got.length) return "";
|
| 238 |
+
const lastAt = got.at(-1).at;
|
| 239 |
+
const recent = got.filter((z) => t - z.at < 2 || z.at === lastAt).sort((a, b) => a.at - b.at);
|
| 240 |
+
const shown = recent.slice(-2).reverse();
|
| 241 |
+
return shown.map(({ n, at }, i) => {
|
| 242 |
+
const fresh = i === 0 && t - at < 0.75;
|
| 243 |
+
const issued = n.issued.toLocaleTimeString("en-US", { hour: "numeric", minute: "2-digit", timeZone: "America/Chicago" }).toLowerCase();
|
| 244 |
+
let text = n.text, when = `issued ${issued}${n.watch === 0 ? " · on the board" : n.watch != null ? ` · read at ${plain(d.watches[n.watch].min)}` : ""}`;
|
| 245 |
+
if (n.deploy) {
|
| 246 |
+
const h = Math.min(23, Math.floor(n.deploy.start_min / 60)), aw = d.hours[h].awards[n.deploy.product] || 0, k = PROD[n.deploy.product];
|
| 247 |
+
const win = d.wins.find((z) => z.n.event_id === n.event_id);
|
| 248 |
+
const hrs = win ? (win.b - win.a) / 60 : 0;
|
| 249 |
+
text = aw > 0.05 ? `${k.name} deployed ${plain(n.deploy.start_min)} · ${mwTxt(aw * n.deploy.frac)} MW for ${hrs >= 0.95 ? `${+hrs.toFixed(1)} h` : `${Math.round(hrs * 60)} min`}: the reserved band drains to the line.` : `ERCOT deploys ${k.name} at ${plain(n.deploy.start_min)}; this plant holds none then.`;
|
| 250 |
+
when = `the agent learns of it ${n.watch != null ? `at the ${plain(d.watches[n.watch].min)} watch` : "after the day"}`;
|
| 251 |
+
}
|
| 252 |
+
return `<div class="card bul ${fresh ? "fresh" : ""} ${n.deploy ? "dep" : ""}"><div class="bh"><span class="badge ${n.badge[1]}">${esc(n.badge[0])}</span><span class="src">${esc(n.name || n.source)}</span><span class="when">${esc(when)}</span></div><p>${esc(text)}</p></div>`;
|
| 253 |
+
}).join("") + (got.length > shown.length ? `<div class="more-b">${got.length - shown.length} earlier bulletin${got.length - shown.length > 1 ? "s" : ""} in the timeline</div>` : "");
|
| 254 |
+
}
|
| 255 |
+
|
| 256 |
+
const CALL = { check_schedule: "check", commit_schedule: "commit" };
|
| 257 |
+
|
| 258 |
+
function planHtml(d, t) {
|
| 259 |
+
const cur = d.watchAt(t);
|
| 260 |
+
const rows = d.watches.filter((w) => w.t <= t + 1e-9 || t >= 24).map((w) => {
|
| 261 |
+
const ns = d.notices.filter((n) => n.watch === w.index && !/cancel/i.test(n.title || ""));
|
| 262 |
+
const pills = w.calls.map((s) => {
|
| 263 |
+
const o = s.output || {};
|
| 264 |
+
if (o.error) return `<span class="pill no">${CALL[s.tool]} ✗ · ${esc(o.error.slice(0, 40))}</span>`;
|
| 265 |
+
if (s.tool === "check_schedule") return `<span class="pill ${o.feasible ? "ok" : "no"}">check ${o.feasible ? "✓" : `✗ ${(o.issues || []).length} issue${(o.issues || []).length === 1 ? "" : "s"}`}</span>`;
|
| 266 |
+
const got = o.committed || [], bad = o.refused || [];
|
| 267 |
+
const span = got.length ? ` ${hourLabel(got[0])}–${hourLabel(got.at(-1) + 1)}` : "";
|
| 268 |
+
const why = bad.length ? ` · refused ${[...new Set(bad.map((r) => r.hour))].length}h: ${[...new Set(bad.map((r) => r.rule))].map((r) => esc(r)).join(", ")}` : "";
|
| 269 |
+
return `<span class="pill ${got.length ? (bad.length ? "part" : "ok") : "no"}" title="${esc(bad.slice(0, 4).map((r) => `${r.hour}: ${r.detail}`).join("\n"))}">commit ${got.length ? "✓" : "✗"}${span}${why}</span>`;
|
| 270 |
+
}).join("");
|
| 271 |
+
return `<div class="wrow ${w.index === cur.index && t < 24 ? "now" : ""}"><span class="wt">${w.index === 0 ? "2 pm, day before" : plain(w.min)}</span><span class="wc">${ns.slice(0, 2).map((n) => `<span class="badge ${n.badge[1]}">${esc(n.badge[0])}</span>`).join("")}${pills || '<span class="pill idle">held the book</span>'}</span></div>`;
|
| 272 |
+
}).join("");
|
| 273 |
+
const n = d.watches.reduce((a, w) => a + w.calls.length, 0);
|
| 274 |
+
const rules = {};
|
| 275 |
+
for (const w of d.watches) if (w.t <= t + 1e-9 || t >= 24) for (const r of w.refused) rules[r.rule] = (rules[r.rule] || 0) + 1;
|
| 276 |
+
const ruleLine = Object.keys(rules).length ? `<div class="rules">Refused hours by rule: ${Object.entries(rules).sort((a, b) => b[1] - a[1]).map(([r, k]) => `<b>${esc(r)}</b> ${k} <span class="dim">(${esc(RULES[r] || r)})</span>`).join(" · ")}</div>` : "";
|
| 277 |
+
const said = (d.ep.messages || []).filter((m) => m.role === "assistant" && m.content).map((m) => m.content);
|
| 278 |
+
const msg = (t < 0 ? said.slice(0, 1) : said.slice(-2)).map((m) => `<blockquote>“${esc(m.slice(0, 240))}${m.length > 240 ? "…" : ""}”</blockquote>`).join("");
|
| 279 |
+
return `<h5>How it planned <small>${d.watches.length} watches · ${n} planning call${n === 1 ? "" : "s"}</small></h5><div class="wlist">${rows}</div>${ruleLine}${t >= 24 || t < 0 ? msg : ""}`;
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
+
function scoreHtml(d, lanes) {
|
| 283 |
+
const ep = d.ep, R = ep.reward ?? 0, ref = ep.references || {}, w0 = d.weight0;
|
| 284 |
+
const pi = ref.p_idle, pa = ref.p_anchor;
|
| 285 |
+
const pos = (r) => `${Math.max(0, Math.min(1, r)) * 100}%`;
|
| 286 |
+
const ticks = [["energy", "energy-only"], ["as_hog", "AS-hog"]].map(([k, lab]) => {
|
| 287 |
+
const l = lanes.find((x) => x.k === k);
|
| 288 |
+
const r = l ? reward(l.final, pi, pa) : null;
|
| 289 |
+
return r == null ? "" : `<i class="tick n" style="left:${pos(r)}" title="${lab} ${r.toFixed(2)}"></i>`;
|
| 290 |
+
}).join("");
|
| 291 |
+
const cap = (k) => {
|
| 292 |
+
const l = lanes.find((x) => x.k === k);
|
| 293 |
+
const r = l ? reward(l.final, pi, pa) : null;
|
| 294 |
+
return r == null ? "" : `${k === "energy" ? "energy-only" : "AS-hog"} ${r.toFixed(2)} · `;
|
| 295 |
+
};
|
| 296 |
+
const self = ep.model === "reference/rolling-anchor" ? "This is the rolling anchor: R is 1 by definition." : ep.beats_anchor ? "Beats the rolling anchor." : "Does not beat the rolling anchor.";
|
| 297 |
+
const vs = lanes.find((l) => l.k === "anchor");
|
| 298 |
+
const rel = vs ? ` vs the anchor <b class="${ep.profit_usd - vs.final >= 0 ? "good" : "bad"}">${money(ep.profit_usd - vs.final, { sign: true })}</b>` : "";
|
| 299 |
+
const pct = (v) => (v == null ? "—" : `${Math.round(v * 100)}%`);
|
| 300 |
+
const cells = [
|
| 301 |
+
["Hindsight", pct(w0.capture), `of ${money((ref.p_hind ?? 0) - (pi ?? 0))} over idle`],
|
| 302 |
+
["AS share", d.offered.length ? pct(w0.asShare) : "—", "of revenue over idle"],
|
| 303 |
+
["Clip saved", w0.clipPct == null ? "n/a" : `${Math.round(w0.clipPct)}%`, w0.clipPct == null ? "meter ≥ PV AC" : "of PV over the meter"],
|
| 304 |
+
["Curtailed", `${Math.round(w0.curtailed)} MWh`, "PV held back"],
|
| 305 |
+
["Short (FTP)", `${w0.ftpMwh.toFixed(1)} MWh`, `charged · ${w0.excusedMwh.toFixed(1)} excused`],
|
| 306 |
+
["Governor", `${w0.governor} h`, "moves clipped"],
|
| 307 |
+
];
|
| 308 |
+
return `<div class="pair"><div><div class="lbl">R · anchor scale</div><div class="r num">${R.toFixed(3)}</div>
|
| 309 |
+
<div class="rscale"><span class="fill" style="width:${pos(R)}"></span><i class="tick" style="left:20%" title="idle"></i>${ticks}<i class="tick a" style="left:100%" title="anchor"></i></div>
|
| 310 |
+
<div class="cap">idle 0.2 · ${cap("energy")}${cap("as_hog")}anchor 1.0</div></div>
|
| 311 |
+
<div class="second"><div class="lbl">Profit</div><div class="r num">${money(ep.profit_usd)}</div><div class="cap">anchor ${money(pa ?? 0)} · hindsight ${money(ref.p_hind ?? 0)}</div></div></div>
|
| 312 |
+
<div class="w0">${cells.map(([k, v, c]) => `<div><span>${k}</span><b class="num">${v}</b><em>${c}</em></div>`).join("")}</div>
|
| 313 |
+
<div class="line">${self}${rel}</div>
|
| 314 |
+
<div class="line dim">v3 preview · weight-0 rows are reported, not scored. PV is a system-wide proxy; regulation drift is a seeded draw.</div>`;
|
| 315 |
+
}
|
| 316 |
+
|
| 317 |
+
function spark(lanes, t, lo, hi) {
|
| 318 |
+
const W = 240, H = 70;
|
| 319 |
+
const y = (v) => H - 4 - ((v - lo) / (hi - lo || 1)) * (H - 8);
|
| 320 |
+
let s = `<line x1="0" x2="${W}" y1="${y(0)}" y2="${y(0)}" stroke="rgba(0,0,0,0.15)"/>`;
|
| 321 |
+
const n = Math.min(24, Math.ceil(t));
|
| 322 |
+
for (const l of lanes) {
|
| 323 |
+
const pts = [[0, 0], ...l.cum.slice(0, n).map((v, i) => [Math.min(t, i + 1), i + 1 > t ? laneAt(l.cum, t, l.final) : v])];
|
| 324 |
+
const col = l.k === "agent" ? "#2c3440" : l.k === "anchor" ? "rgba(28,35,41,0.45)" : l.k === "hind" ? "rgba(29,154,87,0.45)" : "rgba(28,35,41,0.2)";
|
| 325 |
+
s += `<polyline fill="none" stroke="${col}" stroke-width="${l.k === "agent" ? 2.2 : 1.5}" ${l.k === "anchor" || l.k === "hind" ? 'stroke-dasharray="4 3"' : ""} points="${pts.map(([i, v]) => `${(i / 24) * W},${y(v)}`).join(" ")}"/>`;
|
| 326 |
+
}
|
| 327 |
+
return s;
|
| 328 |
+
}
|
| 329 |
+
|
| 330 |
+
/** The reserve book per product and hour: ink density by MW, deployments, failures to provide and excuses marked. */
|
| 331 |
+
function bookStrip(d) {
|
| 332 |
+
const ks = d.offered, W = 336, lab = 52, cw = (W - lab) / 24, rh = 13, H = ks.length * rh + 14;
|
| 333 |
+
const root = el("div", "bookstrip");
|
| 334 |
+
const svg = svgEl("svg", { viewBox: `0 0 ${W} ${H}` });
|
| 335 |
+
const cells = {};
|
| 336 |
+
ks.forEach((k, r) => {
|
| 337 |
+
const t = svgEl("text", { x: 2, y: r * rh + 10, class: "gl2" });
|
| 338 |
+
t.textContent = PROD[k].glyph;
|
| 339 |
+
svg.appendChild(t);
|
| 340 |
+
const nm = svgEl("text", { x: 11, y: r * rh + 10, class: "nm" });
|
| 341 |
+
nm.textContent = PROD[k].name;
|
| 342 |
+
svg.appendChild(nm);
|
| 343 |
+
cells[k] = Array.from({ length: 24 }, (_, h) => {
|
| 344 |
+
const c = svgEl("rect", { x: lab + h * cw + 0.5, y: r * rh + 1, width: cw - 1, height: rh - 2, rx: 1.5, fill: "rgba(28,35,41,0.05)" });
|
| 345 |
+
svg.appendChild(c);
|
| 346 |
+
return c;
|
| 347 |
+
});
|
| 348 |
+
});
|
| 349 |
+
for (const x of d.hours) {
|
| 350 |
+
if (x.ftpMw > 0.05) svg.appendChild(svgEl("rect", { x: lab + x.h * cw + 0.5, y: 0.5, width: cw - 1, height: ks.length * rh, fill: "none", stroke: "#cf3e33", "stroke-width": 1.2, rx: 2, class: "ftp", opacity: 0 }));
|
| 351 |
+
else if (x.excusedMw > 0.05) svg.appendChild(svgEl("rect", { x: lab + x.h * cw + 0.5, y: 0.5, width: cw - 1, height: ks.length * rh, fill: "none", stroke: "#7a868e", "stroke-width": 1, "stroke-dasharray": "2 1.5", rx: 2, class: "exc", opacity: 0 }));
|
| 352 |
+
for (const e of x.events) {
|
| 353 |
+
const r = ks.indexOf(e.product);
|
| 354 |
+
if (r < 0) continue;
|
| 355 |
+
svg.appendChild(svgEl("path", { d: `M${lab + x.h * cw + cw / 2 - 3},${r * rh + 3} L${lab + x.h * cw + cw / 2 + 3},${r * rh + 3} L${lab + x.h * cw + cw / 2},${r * rh + 9} Z`, fill: DISCHARGE, class: "depm", opacity: 0, "data-h": x.h }));
|
| 356 |
+
}
|
| 357 |
+
}
|
| 358 |
+
const now = svgEl("rect", { y: 0, height: ks.length * rh, width: cw, fill: "none", stroke: "#1c2329", "stroke-width": 1.4, rx: 2 });
|
| 359 |
+
svg.appendChild(now);
|
| 360 |
+
[0, 6, 12, 18].forEach((h) => {
|
| 361 |
+
const t = svgEl("text", { x: lab + h * cw, y: H - 2, class: "hr" });
|
| 362 |
+
t.textContent = hourLabel(h);
|
| 363 |
+
svg.appendChild(t);
|
| 364 |
+
});
|
| 365 |
+
root.append(svg);
|
| 366 |
+
const foot = el("div", "bookfoot");
|
| 367 |
+
root.append(foot);
|
| 368 |
+
return {
|
| 369 |
+
root,
|
| 370 |
+
update(t, w, settled) {
|
| 371 |
+
const book = t < -1.2 ? null : t >= 24 || !d.snaps[w.index] ? null : d.snaps[w.index];
|
| 372 |
+
for (const k of ks)
|
| 373 |
+
for (let h = 0; h < 24; h++) {
|
| 374 |
+
const v = book ? +(book[k]?.[h] ?? 0) : t >= 24 || h < settled ? d.hours[h].awards[k] : 0;
|
| 375 |
+
const a = v > 0.01 ? 0.14 + 0.72 * Math.min(1, v / d.P) : 0.05;
|
| 376 |
+
cells[k][h].setAttribute("fill", `rgba(28,35,41,${a.toFixed(3)})`);
|
| 377 |
+
cells[k][h].setAttribute("opacity", h < settled || t >= 24 ? 1 : 0.8);
|
| 378 |
+
}
|
| 379 |
+
const h = Math.max(0, Math.min(23, Math.floor(t)));
|
| 380 |
+
now.setAttribute("x", lab + h * cw);
|
| 381 |
+
now.setAttribute("opacity", t >= 0 && t < 24 ? 1 : 0);
|
| 382 |
+
svg.querySelectorAll(".ftp, .exc").forEach((r) => r.setAttribute("opacity", +((+r.getAttribute("x") - lab) / cw) < settled || t >= 24 ? 1 : 0));
|
| 383 |
+
svg.querySelectorAll(".depm").forEach((p) => p.setAttribute("opacity", +p.dataset.h <= t || t >= 24 ? 1 : 0));
|
| 384 |
+
const x = d.hours[h];
|
| 385 |
+
const tot = d.offered.reduce((a, k) => a + x.awards[k] * (d.dur[k] ?? 0), 0);
|
| 386 |
+
foot.innerHTML = t < 0 ? (t < -1.2 ? "Sold at 2 pm with the day-ahead position." : "Day-ahead book sold.") : t >= 24 ? `${money(d.ep.cash.as_da + d.ep.cash.as_rt)} of reserve revenue` : `${hourSpan(h)}: ${d.offered.filter((k) => x.awards[k] > 0.05).map((k) => `<span class="gl">${PROD[k].glyph}</span>${mwTxt(x.awards[k])}`).join(" ") || "nothing sold"}${tot > 0.5 ? ` · ${mwh(tot)} of charge or room reserved` : ""}`;
|
| 387 |
+
},
|
| 388 |
+
};
|
| 389 |
+
}
|
| 390 |
+
|
| 391 |
+
function introHtml(d, name) {
|
| 392 |
+
const w0 = d.watches[0], ep = d.ep;
|
| 393 |
+
const board = d.notices.filter((n) => n.watch === 0 && !n.deploy);
|
| 394 |
+
const strip = (vals, col, H = 36) => {
|
| 395 |
+
const lo = Math.min(0, ...vals), hi = Math.max(1e-6, ...vals);
|
| 396 |
+
const y = (v) => H - 3 - ((v - lo) / (hi - lo || 1)) * (H - 6);
|
| 397 |
+
const pts = vals.map((v, h) => `${(h / 23) * 560},${y(v)}`).join(" ");
|
| 398 |
+
return `<svg viewBox="0 0 560 ${H + 4}" preserveAspectRatio="none">${lo < 0 ? `<line x1="0" x2="560" y1="${y(0)}" y2="${y(0)}" stroke="rgba(0,0,0,0.2)"/>` : ""}<polygon fill="${col}" opacity="0.16" points="0,${H + 4} ${pts} 560,${H + 4}"/><polyline fill="none" stroke="${col}" stroke-width="2" points="${pts}"/></svg>`;
|
| 399 |
+
};
|
| 400 |
+
const da = d.snaps[0];
|
| 401 |
+
const P = d.P;
|
| 402 |
+
const chips = (da?.energy || Array(24).fill(0)).map((a, h) => `<rect x="${(h / 24) * 560 + 1}" y="${a > 0 ? 9 - (a / P) * 8 : 9}" width="${560 / 24 - 2}" height="${Math.max(1, (Math.abs(a) / P) * 8)}" rx="1.5" fill="${a > 0 ? DISCHARGE : a < 0 ? CHARGE : "#cfd5d8"}"/>`).join("");
|
| 403 |
+
const asTot = Array.from({ length: 24 }, (_, h) => d.offered.reduce((s, k) => s + +(da?.[k]?.[h] ?? 0), 0));
|
| 404 |
+
const asChips = asTot.map((v, h) => `<rect x="${(h / 24) * 560 + 1}" y="${18 - Math.min(16, (v / P) * 16)}" width="${560 / 24 - 2}" height="${Math.max(1, Math.min(16, (v / P) * 16))}" rx="1.5" fill="url(#hp-fwd)" stroke="rgba(28,35,41,0.5)" stroke-width="0.6"/>`).join("");
|
| 405 |
+
const durs = d.offered.map((k) => `${PROD[k].name} ${d.dur[k]} h`).join(", ");
|
| 406 |
+
const mcpc = Array.from({ length: 24 }, (_, h) => Math.max(0, ...d.offered.map((k) => ep.task.mcpc_da?.[k]?.[h] ?? 0)));
|
| 407 |
+
return `<h5>The day before · ${plain(w0.min)} · ${esc(d.task.settlement_point)} <span class="era e${d.era}">${esc(ERA[d.era][0])}</span></h5>
|
| 408 |
+
<p><b>${esc(name)}</b> runs a ${d.site.pv_mwac} MWac solar farm and a ${d.P} MW / ${d.E} MWh battery behind one ${Math.round(d.L)} MW meter tomorrow, ${d.dateLabel}. At 2 pm today it sells a <b>day-ahead book</b>: the battery's MW for each hour${d.offered.length ? ` and its <b>reserve awards</b>, each backed by charge for its duration (${durs})` : " (energy tier: no reserves)"}. Tomorrow it re-plans at ${d.watches.length - 1} watches, never inside the <b>1 h lock</b>${ep.tier === "reserves" ? "; the reserves stay as sold" : ""}, while real-time prices settle and ERCOT may deploy what it bought.</p>
|
| 409 |
+
<div class="strip"><span>DA prices</span>${strip(d.prices, "#3a4651")}<em>peak ${price(Math.max(...d.prices))}</em></div>
|
| 410 |
+
<div class="strip"><span>PV available</span>${strip(d.hours.map((x) => x.pvAvail), SOLAR_EDGE)}<em>peak ${Math.round(d.pvPeak)} MW</em></div>
|
| 411 |
+
${d.offered.length ? `<div class="strip"><span>AS prices</span>${strip(mcpc, "#7a868e")}<em>top ${price(Math.max(...mcpc))}/MW</em></div>` : ""}
|
| 412 |
+
<div class="strip pos"><span>DA battery</span><svg viewBox="0 0 560 18" preserveAspectRatio="none"><line x1="0" x2="560" y1="9" y2="9" stroke="rgba(0,0,0,0.12)"/>${chips}</svg><em>${da?.energy?.some((a) => a) ? "sold" : "none"}</em></div>
|
| 413 |
+
${d.offered.length ? `<div class="strip pos"><span>DA reserves</span><svg viewBox="0 0 560 18" preserveAspectRatio="none">${asChips}</svg><em>${asTot.some((v) => v > 0.05) ? "sold" : "none"}</em></div>` : ""}
|
| 414 |
+
<p class="dim">${board.length ? `${board.length} bulletin${board.length > 1 ? "s" : ""} on the board: ${board.map((n) => esc(n.badge[0])).join(", ")}.` : "No bulletins on the board."} ${d.notices.some((n) => n.watch > 0) ? "More arrive during the day." : ""}</p>`;
|
| 415 |
+
}
|
| 416 |
+
|
| 417 |
+
/** The headlines: bulletins, deployments at their real time, negative-price stows, a full meter, failures to provide
|
| 418 |
+
* and excuses, governor clips, refused commits naming the rule, re-plans, the real-time spike and the end. */
|
| 419 |
+
function newsEvents(d) {
|
| 420 |
+
const ev = [];
|
| 421 |
+
const rank = { eea3: 7, eea2: 6, eea1: 5, cons: 4, watch: 3, warn: 3, adv: 2, ocn: 1, nws: 1, ok: 2, off: 0 };
|
| 422 |
+
for (const w of d.watches) {
|
| 423 |
+
const ns = d.notices.filter((n) => n.watch === w.index && w.index > 0 && !n.deploy);
|
| 424 |
+
if (!ns.length) continue;
|
| 425 |
+
const top = ns.reduce((a, n) => ((rank[n.badge[1]] ?? 0) > (rank[a.badge[1]] ?? 0) ? n : a));
|
| 426 |
+
ev.push({ t: w.t, until: w.t + 1.2, kind: "bulletin", badge: top.badge, text: top.text + (ns.length > 1 ? ` (+${ns.length - 1} more)` : "") });
|
| 427 |
+
}
|
| 428 |
+
for (const z of d.wins) {
|
| 429 |
+
const h = Math.min(23, Math.floor(z.a / 60)), aw = d.hours[h].awards[z.product] || 0, k = PROD[z.product];
|
| 430 |
+
const hrs = (z.b - z.a) / 60;
|
| 431 |
+
ev.push({ t: z.a / 60, until: z.a / 60 + 1.3, kind: "deploy", badge: [`${k.name} deployed`, "dep"], text: aw > 0.05 ? `${k.name} deployed ${plain(z.a)} · ${mwTxt(aw * z.frac)} MW for ${hrs >= 0.95 ? `${+hrs.toFixed(1)} h` : `${Math.round(hrs * 60)} min`}` : `ERCOT deploys ${k.name} at ${plain(z.a)}; this plant holds none then` });
|
| 432 |
+
}
|
| 433 |
+
const st = d.hours.find((x) => x.neg && x.pvAvail > 5 && x.curtailed > 0.9 * x.pvAvail);
|
| 434 |
+
if (st) ev.push({ t: st.h + 0.05, until: st.h + 1.4, kind: "neg", text: `Negative real-time prices ${hourSpan(st.h)}: the controller stows the panels${st.mode === "charge" ? " and the battery charges, paid to take it" : ""}` });
|
| 435 |
+
const full = d.hours.find((x) => !x.neg && x.curtailed > 1 && x.pvAvail > 5);
|
| 436 |
+
if (full) {
|
| 437 |
+
const up = UP.reduce((a, k) => a + full.awards[k], 0);
|
| 438 |
+
ev.push({ t: full.h + 0.05, until: full.h + 1.2, kind: "meter", text: `The meter is full at ${Math.round(d.L)} MW ${hourSpan(full.h)}: ${mwTxt(full.curtailed)} MW of PV curtailed${up > 0.5 ? ` to keep headroom for ${mwTxt(up)} MW of up-reserves` : full.b > 0.5 ? ` while the battery discharges ${mwTxt(full.b)} MW` : ""}` });
|
| 439 |
+
}
|
| 440 |
+
for (const x of d.hours) {
|
| 441 |
+
if (x.ftpMw > 0.05) ev.push({ t: x.h + 1, until: x.h + 1.8, kind: "ftp", text: `Short ${mwTxt(x.ftpMw)} MW of reserves ${hourSpan(x.h)}: ${money(x.ftpUsd)} failure to provide` });
|
| 442 |
+
else if (x.excusedMw > 0.05) ev.push({ t: x.h + 1, until: x.h + 1.7, kind: "excused", badge: ["Excused", "off"], text: `${mwTxt(x.excusedMw)} MW short ${hourSpan(x.h)}, excused: the drift or deployment came after the hour froze` });
|
| 443 |
+
if (x.governor) ev.push({ t: x.h + 0.08, until: x.h + 0.9, kind: "governor", text: `Governor ${hourSpan(x.h)}: the battery moves from ${mvTxt(x.e)} to ${mvTxt(x.b)} to keep its awards backed` });
|
| 444 |
+
}
|
| 445 |
+
for (const w of d.watches) {
|
| 446 |
+
const bad = w.refused;
|
| 447 |
+
if (bad.length) {
|
| 448 |
+
const hrs = [...new Set(bad.map((r) => r.hour).filter((h) => h != null))];
|
| 449 |
+
const r0 = bad[0];
|
| 450 |
+
ev.push({ t: Math.max(-1.6, w.t) + 0.04, until: Math.max(-1.6, w.t) + 1.1, kind: "refused", text: `${w.index === 0 ? "2 pm" : plain(w.min)} commit: ${hrs.length ? `hour${hrs.length > 1 ? "s" : ""} ${hrs.slice(0, 4).join(", ")}${hrs.length > 4 ? "…" : ""} refused` : "refused"} · ${r0.rule}: ${r0.detail}` });
|
| 451 |
+
} else if (w.index > 0) {
|
| 452 |
+
const c = w.calls.filter((s) => s.tool === "commit_schedule" && (s.output?.committed || []).length).at(-1);
|
| 453 |
+
if (c) ev.push({ t: w.t + 0.04, until: w.t + 0.9, kind: "replan", text: `At ${plain(w.min)} it re-plans from ${hourLabel(c.output.committed[0])}, past the 1 h lock` });
|
| 454 |
+
}
|
| 455 |
+
}
|
| 456 |
+
const s = d.peakH;
|
| 457 |
+
if (d.rt[s] > Math.max(200, 2.5 * d.prices[s])) ev.push({ t: s + 1, until: s + 2, kind: "peak", text: `Real-time ${price(d.rt[s])}/MWh ${hourSpan(s)}; day-ahead was ${price(d.prices[s])}` });
|
| 458 |
+
if ((d.ep.cash?.end_penalty || 0) > 0.5) ev.push({ t: 23.6, until: 25, kind: "penalty", text: `The day ends below the required charge: a ${money(d.ep.cash.end_penalty)} shortfall` });
|
| 459 |
+
return ev.sort((a, b) => a.t - b.t);
|
| 460 |
+
}
|
| 461 |
+
|
| 462 |
+
/** The 24-hour timeline: watches, bulletins and deployments on top; DA price bars and RT dots as hours settle; the
|
| 463 |
+
* battery's MW (book, then executed) over the PV available; the reserve awards stacked by product hatch; failures to
|
| 464 |
+
* provide and excuses below; the frozen hours and the 1 h lock line. */
|
| 465 |
+
function buildTimeline(d) {
|
| 466 |
+
const root = el("div", "tl live hyb");
|
| 467 |
+
const W = 1200, H = 132, cw = W / 24;
|
| 468 |
+
const Y = { mk: 0, pTop: 16, pBot: 48, eMid: 66, eH: 12, aBase: 104, aUp: 18, aDn: 7, marks: 118, bot: 124 };
|
| 469 |
+
const all = [...d.rt, ...d.prices];
|
| 470 |
+
const mx = Math.max(1, ...all.map((p) => Math.abs(p)));
|
| 471 |
+
const k = 40, f = (p) => (Math.sign(p) * Math.log1p(Math.abs(p) / k)) / Math.log1p(mx / k);
|
| 472 |
+
const lo = Math.min(0, ...all.map(f));
|
| 473 |
+
const zero = Y.pTop + (Y.pBot - Y.pTop) * (1 / (1 - lo));
|
| 474 |
+
const py = (p) => zero - f(p) * (zero - Y.pTop);
|
| 475 |
+
const svg = svgEl("svg", { viewBox: `0 0 ${W} ${H}`, preserveAspectRatio: "none" });
|
| 476 |
+
const g = (cls) => svg.appendChild(svgEl("g", { class: cls }));
|
| 477 |
+
const bg = g("bg");
|
| 478 |
+
for (let h = 0; h <= 24; h += 3) bg.appendChild(svgEl("line", { x1: h * cw, x2: h * cw, y1: Y.pTop, y2: Y.bot, stroke: "rgba(28,35,41,0.06)" }));
|
| 479 |
+
bg.appendChild(svgEl("line", { x1: 0, x2: W, y1: zero, y2: zero, stroke: "rgba(0,0,0,0.22)" }));
|
| 480 |
+
bg.appendChild(svgEl("line", { x1: 0, x2: W, y1: Y.eMid, y2: Y.eMid, stroke: "rgba(0,0,0,0.14)" }));
|
| 481 |
+
bg.appendChild(svgEl("line", { x1: 0, x2: W, y1: Y.aBase, y2: Y.aBase, stroke: "rgba(0,0,0,0.14)" }));
|
| 482 |
+
const freeze = svgEl("rect", { y: Y.pTop - 2, height: Y.bot - Y.pTop + 4, fill: "rgba(28,35,41,0.06)", x: 0, width: 0 });
|
| 483 |
+
svg.appendChild(freeze);
|
| 484 |
+
const pvMax = Math.max(1, d.pvMwac);
|
| 485 |
+
const pvPts = d.hours.map((x, h) => `${h * cw},${Y.eMid - (x.pvAvail / pvMax) * (Y.eH + 4)} ${(h + 1) * cw},${Y.eMid - (x.pvAvail / pvMax) * (Y.eH + 4)}`).join(" ");
|
| 486 |
+
svg.appendChild(svgEl("polygon", { points: `0,${Y.eMid} ${pvPts} ${W},${Y.eMid}`, fill: SOLAR, opacity: 0.55 }));
|
| 487 |
+
const pg = g("p");
|
| 488 |
+
d.prices.forEach((p, h) => pg.appendChild(svgEl("rect", { x: h * cw + 3, width: cw - 6, y: Math.min(py(p), zero), height: Math.max(1, Math.abs(py(p) - zero)), rx: 1.5, fill: "none", stroke: "rgba(28,35,41,0.4)", "stroke-width": 1, "vector-effect": "non-scaling-stroke" })));
|
| 489 |
+
const rtG = g("rt");
|
| 490 |
+
rtG.setAttribute("shape-rendering", "geometricPrecision");
|
| 491 |
+
const dots = d.rt.map((p, h) => {
|
| 492 |
+
const c = svgEl("ellipse", { cx: (h + 0.5) * cw, cy: py(p), rx: 5.5, ry: 3.6, fill: p < 0 ? "#7c58b3" : p > Math.max(150, 2 * d.prices[h]) ? "#cf3e33" : "#2c3440", opacity: 0 });
|
| 493 |
+
rtG.appendChild(c);
|
| 494 |
+
return c;
|
| 495 |
+
});
|
| 496 |
+
const eG = g("e");
|
| 497 |
+
const eR = Array.from({ length: 24 }, (_, h) => eG.appendChild(svgEl("rect", { x: h * cw + 4, width: cw - 8, y: Y.eMid, height: 0, rx: 2 })));
|
| 498 |
+
const aG = g("as");
|
| 499 |
+
const aR = {};
|
| 500 |
+
for (const kk of d.offered) aR[kk] = Array.from({ length: 24 }, (_, h) => aG.appendChild(svgEl("rect", { x: h * cw + 6, width: cw - 12, y: Y.aBase, height: 0, fill: `url(#hp-${PROD[kk].hatch})`, stroke: "rgba(28,35,41,0.45)", "stroke-width": 0.8, "vector-effect": "non-scaling-stroke" })));
|
| 501 |
+
const hatch = svgEl("rect", { y: Y.eMid - Y.eH - 6, height: Y.aBase + Y.aDn - (Y.eMid - Y.eH - 6) + 2, fill: "url(#hp-fz)", x: 0, width: 0 });
|
| 502 |
+
svg.appendChild(hatch);
|
| 503 |
+
const fline = svgEl("line", { y1: Y.mk + 4, y2: Y.bot, stroke: "#1c2329", "stroke-width": 1.4, "stroke-dasharray": "3 2", "vector-effect": "non-scaling-stroke" });
|
| 504 |
+
svg.appendChild(fline);
|
| 505 |
+
const mkG = g("mk");
|
| 506 |
+
mkG.setAttribute("shape-rendering", "geometricPrecision");
|
| 507 |
+
const marks = d.hours.flatMap((x) => {
|
| 508 |
+
const out = [];
|
| 509 |
+
if (x.ftpMw > 0.05) {
|
| 510 |
+
const t = svgEl("text", { x: (x.h + 0.5) * cw, y: Y.marks + 5, class: "ftpm", "text-anchor": "middle" });
|
| 511 |
+
t.textContent = "×";
|
| 512 |
+
out.push({ h: x.h, e: t });
|
| 513 |
+
} else if (x.excusedMw > 0.05) {
|
| 514 |
+
const t = svgEl("text", { x: (x.h + 0.5) * cw, y: Y.marks + 5, class: "excm", "text-anchor": "middle" });
|
| 515 |
+
t.textContent = "×";
|
| 516 |
+
t.appendChild(svgEl("title", {})).textContent = `${mwTxt(x.excusedMw)} MW short, excused`;
|
| 517 |
+
out.push({ h: x.h, e: t });
|
| 518 |
+
}
|
| 519 |
+
if (x.governor) {
|
| 520 |
+
const t = svgEl("text", { x: (x.h + 0.5) * cw, y: Y.pBot + 6.5, class: "govm", "text-anchor": "middle" });
|
| 521 |
+
t.textContent = "gov";
|
| 522 |
+
out.push({ h: x.h, e: t });
|
| 523 |
+
}
|
| 524 |
+
for (const o of out) (o.e.style.opacity = 0), mkG.appendChild(o.e);
|
| 525 |
+
return out;
|
| 526 |
+
});
|
| 527 |
+
const wm = d.watches.slice(1).map((w) => {
|
| 528 |
+
const x = (w.min / 60) * cw;
|
| 529 |
+
const m = svgEl("path", { d: `M${x - 4},${Y.mk + 2} L${x + 4},${Y.mk + 2} L${x},${Y.mk + 8} Z`, fill: "#1c2329" });
|
| 530 |
+
m.appendChild(svgEl("title", {})).textContent = `Watch at ${plain(w.min)} · 1 h lock to ${plain(w.freezeMin)}`;
|
| 531 |
+
mkG.appendChild(m);
|
| 532 |
+
return { w, m };
|
| 533 |
+
});
|
| 534 |
+
const COL = { eea3: "#8e1b14", eea2: "#cf3e33", eea1: "#e0632c", cons: "#d9820b", watch: "#d9a30b", warn: "#b5487a", adv: "#c9b23a", ocn: "#5b7c99", nws: "#7d8ea0", ok: "#1d9a57", off: "#b0b7bb" };
|
| 535 |
+
const icons = d.notices.filter((n) => !n.deploy && n.revealMin >= 0 && n.revealMin < 1440).map((n) => {
|
| 536 |
+
const x = (n.revealMin / 60) * cw;
|
| 537 |
+
const c = svgEl("rect", { x: x - 3.5, y: Y.mk + 4, width: 7, height: 7, transform: `rotate(45 ${x} ${Y.mk + 7.5})`, fill: COL[n.badge[1]] || "#7d8ea0", stroke: "#fff", "stroke-width": 1 });
|
| 538 |
+
c.appendChild(svgEl("title", {})).textContent = `${n.badge[0]} · ${n.name || n.source} · public at ${plain(n.revealMin)}\n${n.text}`;
|
| 539 |
+
mkG.appendChild(c);
|
| 540 |
+
return { at: n.revealT, c };
|
| 541 |
+
}).concat(d.wins.map((z) => {
|
| 542 |
+
const x = (z.a / 60) * cw;
|
| 543 |
+
const c = svgEl("path", { d: `M${x + 1},${Y.mk + 2} L${x - 3},${Y.mk + 8} L${x},${Y.mk + 8} L${x - 1.5},${Y.mk + 13} L${x + 3.5},${Y.mk + 6} L${x + 0.5},${Y.mk + 6} Z`, fill: DISCHARGE, stroke: "#8a5200", "stroke-width": 0.6 });
|
| 544 |
+
c.appendChild(svgEl("title", {})).textContent = `${PROD[z.product].name} deployed ${plain(z.a)}–${plain(z.b)}`;
|
| 545 |
+
mkG.appendChild(c);
|
| 546 |
+
return { at: z.a / 60, c };
|
| 547 |
+
}));
|
| 548 |
+
root.innerHTML = `<div class="rows"><span style="top:${((Y.pTop + Y.pBot) / 2 / H) * 100}%">price</span><span style="top:${(Y.eMid / H) * 100}%">battery</span>${d.offered.length ? `<span style="top:${((Y.aBase - 6) / H) * 100}%">reserves</span>` : ""}</div>
|
| 549 |
+
<div class="hours">${[0, 3, 6, 9, 12, 15, 18, 21].map((h) => `<span style="left:${(h / 24) * 100}%">${hourLabel(h)}</span>`).join("")}</div>
|
| 550 |
+
<div class="legend"><span><i class="ol"></i>day-ahead</span><span><i class="dot"></i>real-time</span><span><i style="background:${SOLAR}"></i>PV</span><span><i style="background:${CHARGE}"></i>charge</span><span><i style="background:${DISCHARGE}"></i>discharge</span>${d.offered.length ? `<span>${d.offered.map((kk) => `<i class="hp ${PROD[kk].hatch}"></i>${PROD[kk].glyph}`).join(" ")}</span>` : ""}<span><i class="hz"></i>1 h lock</span><span><b class="xm">×</b>short<b class="xm ex">×</b>excused</span><span class="dim">log price scale</span></div>`;
|
| 551 |
+
const plot = el("div", "plot");
|
| 552 |
+
plot.append(svg);
|
| 553 |
+
const ph = el("div", "ph");
|
| 554 |
+
plot.append(ph);
|
| 555 |
+
root.append(plot);
|
| 556 |
+
const P = d.P;
|
| 557 |
+
let lastS = -1, lastW = -1;
|
| 558 |
+
return {
|
| 559 |
+
root, svg,
|
| 560 |
+
update(t, settled, w) {
|
| 561 |
+
const tt = Math.max(0, Math.min(24, t));
|
| 562 |
+
ph.style.left = `${(tt / 24) * 100}%`;
|
| 563 |
+
if (settled === lastS && w.index === lastW) return;
|
| 564 |
+
lastS = settled;
|
| 565 |
+
lastW = w.index;
|
| 566 |
+
dots.forEach((c, h) => c.setAttribute("opacity", h < settled ? 1 : 0));
|
| 567 |
+
const book = t < -1.2 ? null : d.snaps[w.index];
|
| 568 |
+
for (let h = 0; h < 24; h++) {
|
| 569 |
+
const x = d.hours[h];
|
| 570 |
+
const e = h < settled ? x.batt : book ? +book.energy[h] : 0;
|
| 571 |
+
const hh = Math.min(Y.eH, (Math.abs(e) / P) * Y.eH);
|
| 572 |
+
eR[h].setAttribute("y", e > 0 ? Y.eMid - hh : Y.eMid);
|
| 573 |
+
eR[h].setAttribute("height", Math.abs(e) > 0.05 ? Math.max(1.2, hh) : 0);
|
| 574 |
+
eR[h].setAttribute("fill", e > 0 ? DISCHARGE : CHARGE);
|
| 575 |
+
eR[h].setAttribute("opacity", h < settled ? 1 : 0.55);
|
| 576 |
+
let up = Y.aBase;
|
| 577 |
+
for (const kk of d.offered) {
|
| 578 |
+
const v = h < settled ? x.awards[kk] : book ? +(book[kk]?.[h] ?? 0) : 0;
|
| 579 |
+
const r = aR[kk][h];
|
| 580 |
+
if (kk === "regdn") {
|
| 581 |
+
const hd = (v / P) * Y.aDn;
|
| 582 |
+
r.setAttribute("y", Y.aBase);
|
| 583 |
+
r.setAttribute("height", v > 0.05 ? Math.max(1, hd) : 0);
|
| 584 |
+
} else {
|
| 585 |
+
const hu = (v / P) * Y.aUp;
|
| 586 |
+
up -= hu;
|
| 587 |
+
r.setAttribute("y", up);
|
| 588 |
+
r.setAttribute("height", v > 0.05 ? Math.max(1, hu) : 0);
|
| 589 |
+
}
|
| 590 |
+
r.setAttribute("opacity", h < settled ? 1 : 0.6);
|
| 591 |
+
}
|
| 592 |
+
}
|
| 593 |
+
for (const m of marks) m.e.style.opacity = m.h < settled || t >= 24 ? 1 : 0;
|
| 594 |
+
const fz = t < 0 ? 0 : Math.max(settled, Math.min(24, w.freezeH));
|
| 595 |
+
freeze.setAttribute("x", settled * cw);
|
| 596 |
+
freeze.setAttribute("width", Math.max(0, (fz - settled) * cw));
|
| 597 |
+
hatch.setAttribute("x", settled * cw);
|
| 598 |
+
hatch.setAttribute("width", Math.max(0, (fz - settled) * cw));
|
| 599 |
+
const showF = t >= 0 && t < 24 && w.freezeH > settled && w.freezeH <= 24;
|
| 600 |
+
fline.setAttribute("x1", w.freezeH * cw);
|
| 601 |
+
fline.setAttribute("x2", w.freezeH * cw);
|
| 602 |
+
fline.setAttribute("opacity", showF ? 1 : 0);
|
| 603 |
+
for (const { w: x, m } of wm) m.setAttribute("fill", x.t <= t + 1e-9 ? "#1c2329" : "rgba(28,35,41,0.28)");
|
| 604 |
+
for (const { at, c } of icons) c.setAttribute("opacity", at <= t + 1e-9 ? 1 : 0.3);
|
| 605 |
+
},
|
| 606 |
+
};
|
| 607 |
+
}
|
ui/picker.js
CHANGED
|
@@ -26,7 +26,7 @@ export async function picker(app, q) {
|
|
| 26 |
const labels = Object.fromEntries(runs.map((r) => [r.model, r.model_label]));
|
| 27 |
app.innerHTML = `<div class="list">
|
| 28 |
<header><div><h1>GridSimEnv <span>· The Battery Desk</span></h1>
|
| 29 |
-
<p>A model runs one grid battery in Texas for one day: it reads the day's 24 hourly ERCOT day-ahead prices, commits 24 charge and discharge actions, and is graded against the exact optimum. Every replay below is a recorded episode, shown in the place's real light and weather.${runs.some((r) => r.version === "v2") ? ` <b>v2 preview, The Live Grid:</b> a day-ahead position the day before, then a 15-minute schedule re-planned at watches as real-time prices settle and ERCOT bulletins arrive.` : ""}</p></div></header>
|
| 30 |
${hero ? featured(hero) : ""}
|
| 31 |
${also.length ? `<section class="also">${also.map(featured).join("")}</section>` : ""}
|
| 32 |
${index.training ? `<section class="also">${trainingCards(index.training, base)}</section>` : ""}
|
|
@@ -58,7 +58,7 @@ export async function picker(app, q) {
|
|
| 58 |
count.textContent = `${rows.length} of ${runs.length} episodes`;
|
| 59 |
more.hidden = rows.length <= shown;
|
| 60 |
more.textContent = `Show more (${Math.min(shown, rows.length)} of ${rows.length} shown)`;
|
| 61 |
-
tbody.innerHTML = rows.slice(0, shown).map((r) => `<tr onclick="location.href='${r.href}'"><td><a href="${r.href}">${esc(r.date)}</a></td><td><b>${esc(r.point)}</b> <span class="dim">${esc(POINTS[r.point]?.name || "")}</span></td><td class="dim">${esc(r.battery)}</td><td>${esc(modelName(r.model, r.model_label))}${r.path === "B" && r.trained ? ` <span class="dim">${esc(r.trained.toUpperCase() === "GRPO" ? "GRPO" : r.trained)}${r.checkpoint_step != null ? ` step ${r.checkpoint_step}` : ""}</span>` : ""}</td><td>${r.version === "v2" ? `<span class="tier live">v2 · ${esc(r.tier)}</span>` : `<span class="tier ${esc(r.tier)}">${esc(r.tier)}</span>`}</td><td class="dim">${esc(r.bundle)}</td><td class="r num">${r.profit == null ? "—" : money(r.profit)}</td><td class="r num">${r.version === "v2" ? `${r.r_opt == null ? "—" : Math.round(r.r_opt * 100) + "%"} <span class="dim">hindsight</span><br><span class="dim small">R ${r.reward == null ? "—" : r.reward.toFixed(3)}</span>` : `<span class="g ${r.reward == null ? "" : grade(r.reward)}">${r.reward == null ? "" : grade(r.reward)}</span> ${r.reward == null ? "—" : r.reward.toFixed(3)}`}</td></tr>`).join("");
|
| 62 |
const p = new URLSearchParams();
|
| 63 |
for (const [k, v] of Object.entries(state)) if (v && !(k === "sort" && v === "reward")) p.set(k === "text" ? "q" : k, v);
|
| 64 |
history.replaceState(null, "", `${location.pathname}${p.toString() ? "?" + p : ""}`);
|
|
@@ -75,8 +75,8 @@ export async function picker(app, q) {
|
|
| 75 |
}
|
| 76 |
}
|
| 77 |
|
| 78 |
-
const KIND = { beats: "Blind: beats the forecasters", trails: "Blind: trails the forecasters", live: "v2 preview · The Live Grid (provisional anchor)" };
|
| 79 |
-
const VERSION = { v1: "v1 · day-ahead", v2: "v2 preview (provisional anchor)" };
|
| 80 |
|
| 81 |
function trainingCards(t, base) {
|
| 82 |
const card = (k, kind, title, text) => t[k] ? `<a class="hero card small" href="index.html?${k}=${encodeURIComponent(base + t[k].url.replace(/^runs\//, ""))}">${t[k].thumb ? `<img src="${esc(t[k].thumb)}" alt="${esc(title)}" loading="lazy">` : ""}<div class="txt"><h5>${kind}</h5><h2>${esc(title)}</h2><p>${text}</p><span class="go">Watch →</span></div></a>` : "";
|
|
@@ -88,5 +88,5 @@ function trainingCards(t, base) {
|
|
| 88 |
function featured(r) {
|
| 89 |
const thumb = r.thumb ? `<img src="${esc(r.thumb)}" alt="${esc(r.point)} on ${esc(r.date)}: the battery yard at ${esc(r.hero_moment || "the day's key hour")}" loading="lazy">` : "";
|
| 90 |
return `<a class="hero card${r.hero ? "" : " small"}" href="${r.href}">${thumb}<div class="txt"><h5>${KIND[r.featured] || "Featured day"}</h5><h2>${esc(r.date)} · ${esc(r.point)} <span>${esc(POINTS[r.point]?.name || "")}</span></h2>
|
| 91 |
-
<p>${esc(r.blurb || "")}</p><p class="dim">${esc(modelName(r.model, r.model_label))} · ${esc(r.tier)} · ${r.version === "v2" ? `hindsight capture ${r.r_opt == null ? "—" : Math.round(r.r_opt * 100) + "%"} · R ${r.reward == null ? "—" : r.reward.toFixed(3)} (provisional anchor)` : `reward ${r.reward == null ? "—" : r.reward.toFixed(3)}`}</p><span class="go">Watch the replay →</span></div></a>`;
|
| 92 |
}
|
|
|
|
| 26 |
const labels = Object.fromEntries(runs.map((r) => [r.model, r.model_label]));
|
| 27 |
app.innerHTML = `<div class="list">
|
| 28 |
<header><div><h1>GridSimEnv <span>· The Battery Desk</span></h1>
|
| 29 |
+
<p>A model runs one grid battery in Texas for one day: it reads the day's 24 hourly ERCOT day-ahead prices, commits 24 charge and discharge actions, and is graded against the exact optimum. Every replay below is a recorded episode, shown in the place's real light and weather.${runs.some((r) => r.version === "v2") ? ` <b>v2 preview, The Live Grid:</b> a day-ahead position the day before, then a 15-minute schedule re-planned at watches as real-time prices settle and ERCOT bulletins arrive.` : ""}${runs.some((r) => r.version === "v3") ? ` <b>v3 preview, Sun, Storage and Reserves:</b> a solar farm and a battery behind one meter, energy and five reserve products sold the day before, played live as ERCOT deploys them.` : ""}</p></div></header>
|
| 30 |
${hero ? featured(hero) : ""}
|
| 31 |
${also.length ? `<section class="also">${also.map(featured).join("")}</section>` : ""}
|
| 32 |
${index.training ? `<section class="also">${trainingCards(index.training, base)}</section>` : ""}
|
|
|
|
| 58 |
count.textContent = `${rows.length} of ${runs.length} episodes`;
|
| 59 |
more.hidden = rows.length <= shown;
|
| 60 |
more.textContent = `Show more (${Math.min(shown, rows.length)} of ${rows.length} shown)`;
|
| 61 |
+
tbody.innerHTML = rows.slice(0, shown).map((r) => `<tr onclick="location.href='${r.href}'"><td><a href="${r.href}">${esc(r.date)}</a></td><td><b>${esc(r.point)}</b> <span class="dim">${esc(POINTS[r.point]?.name || "")}</span></td><td class="dim">${esc(r.battery)}</td><td>${esc(modelName(r.model, r.model_label))}${r.path === "B" && r.trained ? ` <span class="dim">${esc(r.trained.toUpperCase() === "GRPO" ? "GRPO" : r.trained)}${r.checkpoint_step != null ? ` step ${r.checkpoint_step}` : ""}</span>` : ""}</td><td>${r.version === "v3" ? `<span class="tier hyb">v3 · ${esc(r.tier)}</span>` : r.version === "v2" ? `<span class="tier live">v2 · ${esc(r.tier)}</span>` : `<span class="tier ${esc(r.tier)}">${esc(r.tier)}</span>`}</td><td class="dim">${esc(r.bundle)}</td><td class="r num">${r.profit == null ? "—" : money(r.profit)}</td><td class="r num">${r.version === "v3" ? `R ${r.reward == null ? "—" : r.reward.toFixed(3)}<br><span class="dim small">${r.r_opt == null ? "—" : Math.round(r.r_opt * 100) + "%"} hindsight${r.as_share != null ? ` · AS ${Math.round(r.as_share * 100)}%` : ""}</span>` : r.version === "v2" ? `${r.r_opt == null ? "—" : Math.round(r.r_opt * 100) + "%"} <span class="dim">hindsight</span><br><span class="dim small">R ${r.reward == null ? "—" : r.reward.toFixed(3)}</span>` : `<span class="g ${r.reward == null ? "" : grade(r.reward)}">${r.reward == null ? "" : grade(r.reward)}</span> ${r.reward == null ? "—" : r.reward.toFixed(3)}`}</td></tr>`).join("");
|
| 62 |
const p = new URLSearchParams();
|
| 63 |
for (const [k, v] of Object.entries(state)) if (v && !(k === "sort" && v === "reward")) p.set(k === "text" ? "q" : k, v);
|
| 64 |
history.replaceState(null, "", `${location.pathname}${p.toString() ? "?" + p : ""}`);
|
|
|
|
| 75 |
}
|
| 76 |
}
|
| 77 |
|
| 78 |
+
const KIND = { beats: "Blind: beats the forecasters", trails: "Blind: trails the forecasters", live: "v2 preview · The Live Grid (provisional anchor)", hybrid: "v3 preview · Sun, Storage and Reserves" };
|
| 79 |
+
const VERSION = { v1: "v1 · day-ahead", v2: "v2 preview (provisional anchor)", v3: "v3 preview · solar + storage + reserves" };
|
| 80 |
|
| 81 |
function trainingCards(t, base) {
|
| 82 |
const card = (k, kind, title, text) => t[k] ? `<a class="hero card small" href="index.html?${k}=${encodeURIComponent(base + t[k].url.replace(/^runs\//, ""))}">${t[k].thumb ? `<img src="${esc(t[k].thumb)}" alt="${esc(title)}" loading="lazy">` : ""}<div class="txt"><h5>${kind}</h5><h2>${esc(title)}</h2><p>${text}</p><span class="go">Watch →</span></div></a>` : "";
|
|
|
|
| 88 |
function featured(r) {
|
| 89 |
const thumb = r.thumb ? `<img src="${esc(r.thumb)}" alt="${esc(r.point)} on ${esc(r.date)}: the battery yard at ${esc(r.hero_moment || "the day's key hour")}" loading="lazy">` : "";
|
| 90 |
return `<a class="hero card${r.hero ? "" : " small"}" href="${r.href}">${thumb}<div class="txt"><h5>${KIND[r.featured] || "Featured day"}</h5><h2>${esc(r.date)} · ${esc(r.point)} <span>${esc(POINTS[r.point]?.name || "")}</span></h2>
|
| 91 |
+
<p>${esc(r.blurb || "")}</p><p class="dim">${esc(modelName(r.model, r.model_label))} · ${esc(r.tier)} · ${r.version === "v3" ? `R ${r.reward == null ? "—" : r.reward.toFixed(3)} on the anchor scale · hindsight capture ${r.r_opt == null ? "—" : Math.round(r.r_opt * 100) + "%"}` : r.version === "v2" ? `hindsight capture ${r.r_opt == null ? "—" : Math.round(r.r_opt * 100) + "%"} · R ${r.reward == null ? "—" : r.reward.toFixed(3)} (provisional anchor)` : `reward ${r.reward == null ? "—" : r.reward.toFixed(3)}`}</p><span class="go">Watch the replay →</span></div></a>`;
|
| 92 |
}
|
weather/2023-08-10_HB_NORTH.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"schema":"gridsim.weather/v1","point":"HB_NORTH","date":"2023-08-10","tz":"America/Chicago","station":"DFW","airport":"Dallas/Fort Worth International","lat":32.8998,"lon":-97.0403,"source":"Iowa Environmental Mesonet (IEM), Iowa State University: ASOS/AWOS archive (https://mesonet.agron.iastate.edu/request/download.phtml). Public domain observations.","obs":[{"t":-2.85,"temp_c":34.4,"dew_c":19.4,"cover":0.78,"clouds":[["FEW",8000],["BKN",12000],["BKN",25000]],"cloud_base_ft":8000,"ceiling_ft":12000,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":10,"gust_kt":null,"vis_sm":10,"metar":"KDFW 100209Z 01013KT 10SM FEW080 BKN120 BKN250 34/19 A2969 RMK AO2 LTG DSNT SW-N WSHFT 0203 OCNL LTGICCG DSNT W-N-NE CB DSNT W-N-NE MOV E T03440194"},{"t":-2.117,"temp_c":30.6,"dew_c":20.6,"cover":0.78,"clouds":[["FEW",8000],["BKN",12000],["BKN",25000]],"cloud_base_ft":8000,"ceiling_ft":12000,"wx":[],"precip_in":0.0,"wind_kt":16,"wind_dir":20,"gust_kt":28,"vis_sm":10,"metar":"KDFW 100253Z 02016G28KT 10SM FEW080 BKN120 BKN250 31/21 A2972 RMK AO2 PK WND 03028/0246 LTG DSNT N SLP052 WSHFT 0203 FRQ LTGICCG DSNT W-N-NE CB DSNT W-N-NE MOV E T03060206 53030"},{"t":-1.117,"temp_c":31.1,"dew_c":20.6,"cover":0.78,"clouds":[["FEW",8000],["BKN",12000],["BKN",25000]],"cloud_base_ft":8000,"ceiling_ft":12000,"wx":[],"precip_in":0.0,"wind_kt":6,"wind_dir":10,"gust_kt":15,"vis_sm":10,"metar":"KDFW 100353Z 01006G15KT 10SM FEW080 BKN120 BKN250 31/21 A2975 RMK AO2 LTG DSNT W AND NW SLP062 OCNL LTGICCG DSNT W-N-NE CB DSNT W-N-NE MOV E T03110206"},{"t":-0.117,"temp_c":30.6,"dew_c":20.6,"cover":0.45,"clouds":[["FEW",6500],["FEW",12000],["SCT",17000],["SCT",25000]],"cloud_base_ft":6500,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":3,"wind_dir":60,"gust_kt":null,"vis_sm":10,"metar":"KDFW 100453Z 06003KT 10SM FEW065 FEW120 SCT170 SCT250 31/21 A2974 RMK AO2 SLP061 T03060206"},{"t":0.883,"temp_c":29.4,"dew_c":20.6,"cover":0.45,"clouds":[["FEW",12000],["FEW",20000],["SCT",25000]],"cloud_base_ft":12000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":140,"gust_kt":null,"vis_sm":10,"metar":"KDFW 100553Z 14004KT 10SM FEW120 FEW200 SCT250 29/21 A2973 RMK AO2 SLP056 T02940206 10406 20289 404170283 50003"},{"t":1.883,"temp_c":32.8,"dew_c":21.7,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":14,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KDFW 100653Z 18014KT 10SM FEW250 33/22 A2973 RMK AO2 SLP054 T03280217"},{"t":2.883,"temp_c":32.2,"dew_c":22.8,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":20,"wind_dir":200,"gust_kt":28,"vis_sm":10,"metar":"KDFW 100753Z 20020G28KT 10SM FEW250 32/23 A2972 RMK AO2 PK WND 19028/0751 SLP053 T03220228"},{"t":3.883,"temp_c":31.1,"dew_c":23.3,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":15,"wind_dir":200,"gust_kt":27,"vis_sm":10,"metar":"KDFW 100853Z 20015G27KT 10SM FEW250 31/23 A2973 RMK AO2 PK WND 20027/0816 SLP057 T03110233 53002"},{"t":4.883,"temp_c":30.6,"dew_c":23.3,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":210,"gust_kt":null,"vis_sm":10,"metar":"KDFW 100953Z 21013KT 10SM FEW250 31/23 A2975 RMK AO2 SLP063 T03060233"},{"t":5.883,"temp_c":30.0,"dew_c":23.3,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":220,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101053Z 22011KT 10SM FEW250 30/23 A2977 RMK AO2 SLP069 T03000233"},{"t":6.883,"temp_c":29.4,"dew_c":22.8,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":8,"wind_dir":220,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101153Z 22008KT 10SM FEW250 29/23 A2979 RMK AO2 SLP077 T02940228 10328 20289 53019"},{"t":7.883,"temp_c":30.0,"dew_c":22.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":210,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101253Z 21009KT 10SM CLR 30/23 A2981 RMK AO2 SLP081 T03000228"},{"t":8.883,"temp_c":31.1,"dew_c":22.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":210,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101353Z 21009KT 10SM CLR 31/23 A2982 RMK AO2 SLP087 T03110228"},{"t":9.883,"temp_c":32.2,"dew_c":22.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":220,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101453Z 22009KT 10SM CLR 32/23 A2983 RMK AO2 SLP089 T03220228 51011"},{"t":10.883,"temp_c":33.9,"dew_c":22.8,"cover":0.2,"clouds":[["FEW",4000]],"cloud_base_ft":4000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":230,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101553Z 23005KT 10SM FEW040 34/23 A2983 RMK AO2 SLP091 T03390228"},{"t":11.883,"temp_c":35.6,"dew_c":22.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":8,"wind_dir":220,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101653Z 22008KT 10SM CLR 36/23 A2982 RMK AO2 SLP088 T03560228"},{"t":12.883,"temp_c":36.7,"dew_c":22.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":0,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101753Z 00000KT 10SM CLR 37/22 A2981 RMK AO2 SLP082 T03670222 10372 20294 58007"},{"t":13.883,"temp_c":37.8,"dew_c":22.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":3,"wind_dir":null,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101853Z VRB03KT 10SM CLR 38/22 A2979 RMK AO2 SLP074 T03780222"},{"t":14.883,"temp_c":39.4,"dew_c":21.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":240,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101953Z 24005KT 10SM CLR 39/21 A2977 RMK AO2 SLP068 T03940211"},{"t":15.883,"temp_c":40.6,"dew_c":21.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":0,"gust_kt":null,"vis_sm":10,"metar":"KDFW 102053Z 00000KT 10SM CLR 41/21 A2974 RMK AO2 SLP060 T04060211 58021"},{"t":16.883,"temp_c":41.1,"dew_c":20.6,"cover":0.2,"clouds":[["FEW",11000]],"cloud_base_ft":11000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":6,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KDFW 102153Z 18006KT 10SM FEW110 41/21 A2973 RMK AO2 SLP055 T04110206"},{"t":17.883,"temp_c":41.1,"dew_c":19.4,"cover":0.2,"clouds":[["FEW",11000],["FEW",25000]],"cloud_base_ft":11000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":6,"wind_dir":null,"gust_kt":null,"vis_sm":10,"metar":"KDFW 102253Z VRB06KT 10SM FEW110 FEW250 41/19 A2972 RMK AO2 SLP051 T04110194"},{"t":18.883,"temp_c":40.6,"dew_c":19.4,"cover":0.2,"clouds":[["FEW",11000],["FEW",25000]],"cloud_base_ft":11000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":160,"gust_kt":18,"vis_sm":10,"metar":"KDFW 102353Z 16011G18KT 10SM FEW110 FEW250 41/19 A2970 RMK AO2 SLP047 CB DSNT W MOV E T04060194 10417 20367 56013"},{"t":19.883,"temp_c":38.9,"dew_c":20.0,"cover":0.2,"clouds":[["FEW",11000],["FEW",25000]],"cloud_base_ft":11000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":14,"wind_dir":160,"gust_kt":null,"vis_sm":10,"metar":"KDFW 110053Z 16014KT 10SM FEW110 FEW250 39/20 A2971 RMK AO2 SLP049 CB DSNT W-NW MOV E T03890200"},{"t":20.883,"temp_c":38.3,"dew_c":18.9,"cover":0.45,"clouds":[["FEW",11000],["SCT",25000]],"cloud_base_ft":11000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":160,"gust_kt":null,"vis_sm":10,"metar":"KDFW 110153Z 16011KT 10SM FEW110 SCT250 38/19 A2972 RMK AO2 SLP053 OCNL LTGIC DSNT NW CB DSNT NW MOV NE T03830189"},{"t":21.883,"temp_c":37.2,"dew_c":18.9,"cover":0.78,"clouds":[["FEW",11000],["BKN",25000]],"cloud_base_ft":11000,"ceiling_ft":25000,"wx":[],"precip_in":0.0,"wind_kt":10,"wind_dir":170,"gust_kt":null,"vis_sm":10,"metar":"KDFW 110253Z 17010KT 10SM FEW110 BKN250 37/19 A2975 RMK AO2 SLP063 T03720189 53016"},{"t":22.883,"temp_c":36.7,"dew_c":18.3,"cover":0.78,"clouds":[["FEW",11000],["BKN",20000],["BKN",25000]],"cloud_base_ft":11000,"ceiling_ft":20000,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":170,"gust_kt":null,"vis_sm":10,"metar":"KDFW 110353Z 17011KT 10SM FEW110 BKN200 BKN250 37/18 A2974 RMK AO2 SLP060 T03670183"},{"t":23.883,"temp_c":36.1,"dew_c":18.9,"cover":0.78,"clouds":[["FEW",11000],["BKN",20000],["BKN",23000]],"cloud_base_ft":11000,"ceiling_ft":20000,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KDFW 110453Z 18013KT 10SM FEW110 BKN200 BKN230 36/19 A2976 RMK AO2 SLP066 T03610189"},{"t":24.883,"temp_c":35.6,"dew_c":18.9,"cover":0.78,"clouds":[["SCT",20000],["BKN",25000]],"cloud_base_ft":20000,"ceiling_ft":25000,"wx":[],"precip_in":0.0,"wind_kt":14,"wind_dir":190,"gust_kt":null,"vis_sm":10,"metar":"KDFW 110553Z 19014KT 10SM SCT200 BKN250 36/19 A2976 RMK AO2 SLP065 T03560189 10406 20356 404170294 53003"},{"t":25.883,"temp_c":33.9,"dew_c":19.4,"cover":1.0,"clouds":[["SCT",20000],["OVC",25000]],"cloud_base_ft":20000,"ceiling_ft":25000,"wx":[],"precip_in":0.0,"wind_kt":14,"wind_dir":190,"gust_kt":23,"vis_sm":10,"metar":"KDFW 110653Z 19014G23KT 10SM SCT200 OVC250 34/19 A2974 RMK AO2 SLP060 T03390194"},{"t":26.883,"temp_c":33.3,"dew_c":20.6,"cover":1.0,"clouds":[["FEW",20000],["OVC",25000]],"cloud_base_ft":20000,"ceiling_ft":25000,"wx":[],"precip_in":0.0,"wind_kt":17,"wind_dir":200,"gust_kt":25,"vis_sm":10,"metar":"KDFW 110753Z 20017G25KT 10SM FEW200 OVC250 33/21 A2975 RMK AO2 PK WND 19026/0743 SLP062 T03330206"}],"hourly":[{"t":0.883,"temp_c":29.4,"dew_c":20.6,"cover":0.45,"clouds":[["FEW",12000],["FEW",20000],["SCT",25000]],"cloud_base_ft":12000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":140,"gust_kt":null,"vis_sm":10,"metar":"KDFW 100553Z 14004KT 10SM FEW120 FEW200 SCT250 29/21 A2973 RMK AO2 SLP056 T02940206 10406 20289 404170283 50003"},{"t":1.883,"temp_c":32.8,"dew_c":21.7,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":14,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KDFW 100653Z 18014KT 10SM FEW250 33/22 A2973 RMK AO2 SLP054 T03280217"},{"t":2.883,"temp_c":32.2,"dew_c":22.8,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":20,"wind_dir":200,"gust_kt":28,"vis_sm":10,"metar":"KDFW 100753Z 20020G28KT 10SM FEW250 32/23 A2972 RMK AO2 PK WND 19028/0751 SLP053 T03220228"},{"t":3.883,"temp_c":31.1,"dew_c":23.3,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":15,"wind_dir":200,"gust_kt":27,"vis_sm":10,"metar":"KDFW 100853Z 20015G27KT 10SM FEW250 31/23 A2973 RMK AO2 PK WND 20027/0816 SLP057 T03110233 53002"},{"t":4.883,"temp_c":30.6,"dew_c":23.3,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":210,"gust_kt":null,"vis_sm":10,"metar":"KDFW 100953Z 21013KT 10SM FEW250 31/23 A2975 RMK AO2 SLP063 T03060233"},{"t":5.883,"temp_c":30.0,"dew_c":23.3,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":220,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101053Z 22011KT 10SM FEW250 30/23 A2977 RMK AO2 SLP069 T03000233"},{"t":6.883,"temp_c":29.4,"dew_c":22.8,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":8,"wind_dir":220,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101153Z 22008KT 10SM FEW250 29/23 A2979 RMK AO2 SLP077 T02940228 10328 20289 53019"},{"t":7.883,"temp_c":30.0,"dew_c":22.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":210,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101253Z 21009KT 10SM CLR 30/23 A2981 RMK AO2 SLP081 T03000228"},{"t":8.883,"temp_c":31.1,"dew_c":22.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":210,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101353Z 21009KT 10SM CLR 31/23 A2982 RMK AO2 SLP087 T03110228"},{"t":9.883,"temp_c":32.2,"dew_c":22.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":220,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101453Z 22009KT 10SM CLR 32/23 A2983 RMK AO2 SLP089 T03220228 51011"},{"t":10.883,"temp_c":33.9,"dew_c":22.8,"cover":0.2,"clouds":[["FEW",4000]],"cloud_base_ft":4000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":230,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101553Z 23005KT 10SM FEW040 34/23 A2983 RMK AO2 SLP091 T03390228"},{"t":11.883,"temp_c":35.6,"dew_c":22.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":8,"wind_dir":220,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101653Z 22008KT 10SM CLR 36/23 A2982 RMK AO2 SLP088 T03560228"},{"t":12.883,"temp_c":36.7,"dew_c":22.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":0,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101753Z 00000KT 10SM CLR 37/22 A2981 RMK AO2 SLP082 T03670222 10372 20294 58007"},{"t":13.883,"temp_c":37.8,"dew_c":22.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":3,"wind_dir":null,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101853Z VRB03KT 10SM CLR 38/22 A2979 RMK AO2 SLP074 T03780222"},{"t":14.883,"temp_c":39.4,"dew_c":21.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":240,"gust_kt":null,"vis_sm":10,"metar":"KDFW 101953Z 24005KT 10SM CLR 39/21 A2977 RMK AO2 SLP068 T03940211"},{"t":15.883,"temp_c":40.6,"dew_c":21.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":0,"gust_kt":null,"vis_sm":10,"metar":"KDFW 102053Z 00000KT 10SM CLR 41/21 A2974 RMK AO2 SLP060 T04060211 58021"},{"t":16.883,"temp_c":41.1,"dew_c":20.6,"cover":0.2,"clouds":[["FEW",11000]],"cloud_base_ft":11000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":6,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KDFW 102153Z 18006KT 10SM FEW110 41/21 A2973 RMK AO2 SLP055 T04110206"},{"t":17.883,"temp_c":41.1,"dew_c":19.4,"cover":0.2,"clouds":[["FEW",11000],["FEW",25000]],"cloud_base_ft":11000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":6,"wind_dir":null,"gust_kt":null,"vis_sm":10,"metar":"KDFW 102253Z VRB06KT 10SM FEW110 FEW250 41/19 A2972 RMK AO2 SLP051 T04110194"},{"t":18.883,"temp_c":40.6,"dew_c":19.4,"cover":0.2,"clouds":[["FEW",11000],["FEW",25000]],"cloud_base_ft":11000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":160,"gust_kt":18,"vis_sm":10,"metar":"KDFW 102353Z 16011G18KT 10SM FEW110 FEW250 41/19 A2970 RMK AO2 SLP047 CB DSNT W MOV E T04060194 10417 20367 56013"},{"t":19.883,"temp_c":38.9,"dew_c":20.0,"cover":0.2,"clouds":[["FEW",11000],["FEW",25000]],"cloud_base_ft":11000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":14,"wind_dir":160,"gust_kt":null,"vis_sm":10,"metar":"KDFW 110053Z 16014KT 10SM FEW110 FEW250 39/20 A2971 RMK AO2 SLP049 CB DSNT W-NW MOV E T03890200"},{"t":20.883,"temp_c":38.3,"dew_c":18.9,"cover":0.45,"clouds":[["FEW",11000],["SCT",25000]],"cloud_base_ft":11000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":160,"gust_kt":null,"vis_sm":10,"metar":"KDFW 110153Z 16011KT 10SM FEW110 SCT250 38/19 A2972 RMK AO2 SLP053 OCNL LTGIC DSNT NW CB DSNT NW MOV NE T03830189"},{"t":21.883,"temp_c":37.2,"dew_c":18.9,"cover":0.78,"clouds":[["FEW",11000],["BKN",25000]],"cloud_base_ft":11000,"ceiling_ft":25000,"wx":[],"precip_in":0.0,"wind_kt":10,"wind_dir":170,"gust_kt":null,"vis_sm":10,"metar":"KDFW 110253Z 17010KT 10SM FEW110 BKN250 37/19 A2975 RMK AO2 SLP063 T03720189 53016"},{"t":22.883,"temp_c":36.7,"dew_c":18.3,"cover":0.78,"clouds":[["FEW",11000],["BKN",20000],["BKN",25000]],"cloud_base_ft":11000,"ceiling_ft":20000,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":170,"gust_kt":null,"vis_sm":10,"metar":"KDFW 110353Z 17011KT 10SM FEW110 BKN200 BKN250 37/18 A2974 RMK AO2 SLP060 T03670183"},{"t":23.883,"temp_c":36.1,"dew_c":18.9,"cover":0.78,"clouds":[["FEW",11000],["BKN",20000],["BKN",23000]],"cloud_base_ft":11000,"ceiling_ft":20000,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KDFW 110453Z 18013KT 10SM FEW110 BKN200 BKN230 36/19 A2976 RMK AO2 SLP066 T03610189"}]}
|
weather/2023-09-06_HB_WEST.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"schema":"gridsim.weather/v1","point":"HB_WEST","date":"2023-09-06","tz":"America/Chicago","station":"MAF","airport":"Midland International","lat":31.9425,"lon":-102.2019,"source":"Iowa Environmental Mesonet (IEM), Iowa State University: ASOS/AWOS archive (https://mesonet.agron.iastate.edu/request/download.phtml). Public domain observations.","obs":[{"t":-2.117,"temp_c":31.7,"dew_c":12.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":110,"gust_kt":null,"vis_sm":10,"metar":"KMAF 060253Z 11005KT 10SM CLR 32/13 A2996 RMK AO2 SLP089 T03170128 $"},{"t":-1.117,"temp_c":31.7,"dew_c":12.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":3,"wind_dir":160,"gust_kt":null,"vis_sm":10,"metar":"KMAF 060353Z 16003KT 10SM CLR 32/13 A2997 RMK AO2 SLP093 T03170128 $"},{"t":-0.117,"temp_c":30.6,"dew_c":13.3,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":3,"wind_dir":150,"gust_kt":null,"vis_sm":10,"metar":"KMAF 060453Z AUTO 15003KT 10SM CLR 31/13 A2999 RMK AO2 SLP098 T03060133 $"},{"t":0.883,"temp_c":28.9,"dew_c":13.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":null,"gust_kt":null,"vis_sm":null,"metar":"KMAF 060553Z AUTO CLR 29/14 A3001 RMK AO2 SLP104 T02890139 10394 20289 404110250 53016 $"},{"t":1.883,"temp_c":28.3,"dew_c":15.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":null,"gust_kt":null,"vis_sm":null,"metar":"KMAF 060653Z AUTO CLR 28/16 A3001 RMK AO2 SLP105 T02830156 $"},{"t":2.883,"temp_c":27.2,"dew_c":15.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":null,"gust_kt":null,"vis_sm":null,"metar":"KMAF 060753Z AUTO CLR 27/16 A3000 RMK AO2 SLP101 T02720156 $"},{"t":3.883,"temp_c":27.8,"dew_c":17.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":null,"gust_kt":null,"vis_sm":null,"metar":"KMAF 060853Z AUTO CLR 28/18 A3000 RMK AO2 SLP099 T02780178 58003 $"},{"t":4.883,"temp_c":27.2,"dew_c":17.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":null,"gust_kt":null,"vis_sm":null,"metar":"KMAF 060953Z AUTO CLR 27/18 A3001 RMK AO2 SLP102 T02720178 $"},{"t":5.883,"temp_c":24.4,"dew_c":17.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":6,"wind_dir":100,"gust_kt":null,"vis_sm":10,"metar":"KMAF 061053Z COR 10006KT 10SM CLR 24/17 A3002 RMK AO2 SLP109 T02440172 $"},{"t":6.883,"temp_c":24.4,"dew_c":17.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":null,"gust_kt":null,"vis_sm":null,"metar":"KMAF 061153Z CLR 24/17 A3003 RMK AO2 SLP113 T02440172 10289 20239 53011 $"},{"t":7.883,"temp_c":25.0,"dew_c":17.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":140,"gust_kt":null,"vis_sm":10,"metar":"KMAF 061253Z 14011KT 10SM CLR 25/18 A3005 RMK AO2 SLP124 T02500178 $"},{"t":8.883,"temp_c":26.7,"dew_c":18.3,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":130,"gust_kt":null,"vis_sm":10,"metar":"KMAF 061353Z 13004KT 10SM CLR 27/18 A3008 RMK AO2 SLP131 T02670183 $"},{"t":9.883,"temp_c":27.8,"dew_c":18.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":130,"gust_kt":null,"vis_sm":10,"metar":"KMAF 061453Z 13009KT 10SM CLR 28/19 A3009 RMK AO2 SLP137 T02780189 51019 $"},{"t":10.883,"temp_c":29.4,"dew_c":18.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":null,"gust_kt":null,"vis_sm":null,"metar":"KMAF 061553Z COR CLR 29/19 A3011 RMK AO2 SLP141 T02940189 $"},{"t":11.883,"temp_c":32.2,"dew_c":19.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":160,"gust_kt":null,"vis_sm":10,"metar":"KMAF 061653Z COR 16005KT 10SM CLR 32/19 A3010 RMK AO2 SLP136 T03220194 $"},{"t":12.883,"temp_c":33.9,"dew_c":18.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":120,"gust_kt":null,"vis_sm":10,"metar":"KMAF 061753Z 12004KT 10SM CLR 34/19 A3008 RMK AO2 SLP130 T03390189 10339 20228 58004 $"},{"t":13.883,"temp_c":36.1,"dew_c":16.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 061853Z 18009KT 10SM CLR 36/17 A3006 RMK AO2 SLP123 T03610167 $"},{"t":14.883,"temp_c":37.2,"dew_c":14.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":8,"wind_dir":160,"gust_kt":null,"vis_sm":10,"metar":"KMAF 061953Z 16008KT 120V190 10SM CLR 37/14 A3004 RMK AO2 SLP117 T03720144 $"},{"t":15.883,"temp_c":37.2,"dew_c":11.7,"cover":0.2,"clouds":[["FEW",8500]],"cloud_base_ft":8500,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":0,"gust_kt":null,"vis_sm":10,"metar":"KMAF 062053Z 00000KT 10SM FEW085 37/12 A3002 RMK AO2 SLP107 T03720117 58020 $"},{"t":16.883,"temp_c":36.7,"dew_c":9.4,"cover":0.2,"clouds":[["FEW",8500]],"cloud_base_ft":8500,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":12,"wind_dir":130,"gust_kt":null,"vis_sm":10,"metar":"KMAF 062153Z COR 13012KT 10SM FEW085 37/09 A3001 RMK AO2 SLP104 T03670094 $"},{"t":17.883,"temp_c":36.7,"dew_c":9.4,"cover":0.0,"clouds":[],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":120,"gust_kt":null,"vis_sm":10,"metar":"KMAF 062253Z 12005KT 10SM 37/09 A3000 RMK AO2 SLP105 T03670094 $"},{"t":18.883,"temp_c":36.7,"dew_c":7.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":7,"wind_dir":70,"gust_kt":15,"vis_sm":10,"metar":"KMAF 062353Z 07007G15KT 10SM CLR 37/08 A2999 RMK AO2 SLP102 T03670078 10383 20339 $"},{"t":19.883,"temp_c":35.6,"dew_c":9.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":8,"wind_dir":90,"gust_kt":null,"vis_sm":10,"metar":"KMAF 070053Z 09008KT 10SM CLR 36/09 A3000 RMK AO2 SLP103 T03560094 $"},{"t":20.883,"temp_c":33.3,"dew_c":11.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":8,"wind_dir":110,"gust_kt":null,"vis_sm":10,"metar":"KMAF 070153Z 11008KT 10SM CLR 33/12 A3001 RMK AO2 SLP109 T03330117 $"},{"t":21.883,"temp_c":32.2,"dew_c":13.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":10,"wind_dir":130,"gust_kt":null,"vis_sm":10,"metar":"KMAF 070253Z 13010KT 10SM CLR 32/14 A3003 RMK AO2 SLP117 T03220139 53012 $"},{"t":22.883,"temp_c":30.6,"dew_c":13.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":6,"wind_dir":140,"gust_kt":null,"vis_sm":10,"metar":"KMAF 070353Z 14006KT 10SM CLR 31/14 A3004 RMK AO2 SLP120 T03060139 $"},{"t":23.883,"temp_c":29.4,"dew_c":14.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":7,"wind_dir":160,"gust_kt":null,"vis_sm":10,"metar":"KMAF 070453Z 16007KT 10SM CLR 29/14 A3004 RMK AO2 SLP116 T02940144 $"},{"t":24.883,"temp_c":29.4,"dew_c":15.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":7,"wind_dir":200,"gust_kt":null,"vis_sm":10,"metar":"KMAF 070553Z AUTO 20007KT 10SM CLR 29/16 A3003 RMK AO2 SLP114 T02940156 10372 20289 403830228 58000 $"},{"t":25.883,"temp_c":27.8,"dew_c":16.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 070653Z AUTO 18009KT 10SM CLR 28/16 A3002 RMK AO2 SLP108 T02780161 $"},{"t":26.883,"temp_c":27.2,"dew_c":16.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":190,"gust_kt":null,"vis_sm":10,"metar":"KMAF 070753Z AUTO 19009KT 10SM CLR 27/16 A3002 RMK AO2 SLP107 T02720161 $"}],"hourly":[{"t":0.883,"temp_c":28.9,"dew_c":13.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":null,"gust_kt":null,"vis_sm":null,"metar":"KMAF 060553Z AUTO CLR 29/14 A3001 RMK AO2 SLP104 T02890139 10394 20289 404110250 53016 $"},{"t":1.883,"temp_c":28.3,"dew_c":15.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":null,"gust_kt":null,"vis_sm":null,"metar":"KMAF 060653Z AUTO CLR 28/16 A3001 RMK AO2 SLP105 T02830156 $"},{"t":2.883,"temp_c":27.2,"dew_c":15.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":null,"gust_kt":null,"vis_sm":null,"metar":"KMAF 060753Z AUTO CLR 27/16 A3000 RMK AO2 SLP101 T02720156 $"},{"t":3.883,"temp_c":27.8,"dew_c":17.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":null,"gust_kt":null,"vis_sm":null,"metar":"KMAF 060853Z AUTO CLR 28/18 A3000 RMK AO2 SLP099 T02780178 58003 $"},{"t":4.883,"temp_c":27.2,"dew_c":17.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":null,"gust_kt":null,"vis_sm":null,"metar":"KMAF 060953Z AUTO CLR 27/18 A3001 RMK AO2 SLP102 T02720178 $"},{"t":5.883,"temp_c":24.4,"dew_c":17.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":6,"wind_dir":100,"gust_kt":null,"vis_sm":10,"metar":"KMAF 061053Z COR 10006KT 10SM CLR 24/17 A3002 RMK AO2 SLP109 T02440172 $"},{"t":6.883,"temp_c":24.4,"dew_c":17.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":null,"gust_kt":null,"vis_sm":null,"metar":"KMAF 061153Z CLR 24/17 A3003 RMK AO2 SLP113 T02440172 10289 20239 53011 $"},{"t":7.883,"temp_c":25.0,"dew_c":17.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":140,"gust_kt":null,"vis_sm":10,"metar":"KMAF 061253Z 14011KT 10SM CLR 25/18 A3005 RMK AO2 SLP124 T02500178 $"},{"t":8.883,"temp_c":26.7,"dew_c":18.3,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":130,"gust_kt":null,"vis_sm":10,"metar":"KMAF 061353Z 13004KT 10SM CLR 27/18 A3008 RMK AO2 SLP131 T02670183 $"},{"t":9.883,"temp_c":27.8,"dew_c":18.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":130,"gust_kt":null,"vis_sm":10,"metar":"KMAF 061453Z 13009KT 10SM CLR 28/19 A3009 RMK AO2 SLP137 T02780189 51019 $"},{"t":10.883,"temp_c":29.4,"dew_c":18.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":null,"gust_kt":null,"vis_sm":null,"metar":"KMAF 061553Z COR CLR 29/19 A3011 RMK AO2 SLP141 T02940189 $"},{"t":11.883,"temp_c":32.2,"dew_c":19.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":160,"gust_kt":null,"vis_sm":10,"metar":"KMAF 061653Z COR 16005KT 10SM CLR 32/19 A3010 RMK AO2 SLP136 T03220194 $"},{"t":12.883,"temp_c":33.9,"dew_c":18.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":120,"gust_kt":null,"vis_sm":10,"metar":"KMAF 061753Z 12004KT 10SM CLR 34/19 A3008 RMK AO2 SLP130 T03390189 10339 20228 58004 $"},{"t":13.883,"temp_c":36.1,"dew_c":16.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 061853Z 18009KT 10SM CLR 36/17 A3006 RMK AO2 SLP123 T03610167 $"},{"t":14.883,"temp_c":37.2,"dew_c":14.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":8,"wind_dir":160,"gust_kt":null,"vis_sm":10,"metar":"KMAF 061953Z 16008KT 120V190 10SM CLR 37/14 A3004 RMK AO2 SLP117 T03720144 $"},{"t":15.883,"temp_c":37.2,"dew_c":11.7,"cover":0.2,"clouds":[["FEW",8500]],"cloud_base_ft":8500,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":0,"gust_kt":null,"vis_sm":10,"metar":"KMAF 062053Z 00000KT 10SM FEW085 37/12 A3002 RMK AO2 SLP107 T03720117 58020 $"},{"t":16.883,"temp_c":36.7,"dew_c":9.4,"cover":0.2,"clouds":[["FEW",8500]],"cloud_base_ft":8500,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":12,"wind_dir":130,"gust_kt":null,"vis_sm":10,"metar":"KMAF 062153Z COR 13012KT 10SM FEW085 37/09 A3001 RMK AO2 SLP104 T03670094 $"},{"t":17.883,"temp_c":36.7,"dew_c":9.4,"cover":0.0,"clouds":[],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":120,"gust_kt":null,"vis_sm":10,"metar":"KMAF 062253Z 12005KT 10SM 37/09 A3000 RMK AO2 SLP105 T03670094 $"},{"t":18.883,"temp_c":36.7,"dew_c":7.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":7,"wind_dir":70,"gust_kt":15,"vis_sm":10,"metar":"KMAF 062353Z 07007G15KT 10SM CLR 37/08 A2999 RMK AO2 SLP102 T03670078 10383 20339 $"},{"t":19.883,"temp_c":35.6,"dew_c":9.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":8,"wind_dir":90,"gust_kt":null,"vis_sm":10,"metar":"KMAF 070053Z 09008KT 10SM CLR 36/09 A3000 RMK AO2 SLP103 T03560094 $"},{"t":20.883,"temp_c":33.3,"dew_c":11.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":8,"wind_dir":110,"gust_kt":null,"vis_sm":10,"metar":"KMAF 070153Z 11008KT 10SM CLR 33/12 A3001 RMK AO2 SLP109 T03330117 $"},{"t":21.883,"temp_c":32.2,"dew_c":13.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":10,"wind_dir":130,"gust_kt":null,"vis_sm":10,"metar":"KMAF 070253Z 13010KT 10SM CLR 32/14 A3003 RMK AO2 SLP117 T03220139 53012 $"},{"t":22.883,"temp_c":30.6,"dew_c":13.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":6,"wind_dir":140,"gust_kt":null,"vis_sm":10,"metar":"KMAF 070353Z 14006KT 10SM CLR 31/14 A3004 RMK AO2 SLP120 T03060139 $"},{"t":23.883,"temp_c":29.4,"dew_c":14.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":7,"wind_dir":160,"gust_kt":null,"vis_sm":10,"metar":"KMAF 070453Z 16007KT 10SM CLR 29/14 A3004 RMK AO2 SLP116 T02940144 $"}]}
|
weather/2024-03-29_HB_WEST.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"schema":"gridsim.weather/v1","point":"HB_WEST","date":"2024-03-29","tz":"America/Chicago","station":"MAF","airport":"Midland International","lat":31.9425,"lon":-102.2019,"source":"Iowa Environmental Mesonet (IEM), Iowa State University: ASOS/AWOS archive (https://mesonet.agron.iastate.edu/request/download.phtml). Public domain observations.","obs":[{"t":-2.117,"temp_c":17.8,"dew_c":-1.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":12,"wind_dir":160,"gust_kt":null,"vis_sm":10,"metar":"KMAF 290253Z 16012KT 10SM CLR 18/M02 A2998 RMK AO2 SLP128 T01781017 53001"},{"t":-1.117,"temp_c":16.7,"dew_c":0.0,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":150,"gust_kt":null,"vis_sm":10,"metar":"KMAF 290353Z 15011KT 10SM CLR 17/00 A2998 RMK AO2 SLP126 T01670000"},{"t":-0.117,"temp_c":17.2,"dew_c":1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":12,"wind_dir":160,"gust_kt":null,"vis_sm":10,"metar":"KMAF 290453Z AUTO 16012KT 10SM CLR 17/01 A2997 RMK AO2 SLP117 T01720011"},{"t":0.883,"temp_c":17.2,"dew_c":2.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 290553Z AUTO 18013KT 10SM CLR 17/02 A2995 RMK AO2 SLP107 T01720022 10239 20161 402500017 58010"},{"t":1.883,"temp_c":17.2,"dew_c":4.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":16,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 290653Z AUTO 18016KT 10SM CLR 17/04 A2994 RMK AO2 SLP101 T01720044"},{"t":2.883,"temp_c":17.2,"dew_c":6.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":17,"wind_dir":180,"gust_kt":29,"vis_sm":10,"metar":"KMAF 290753Z AUTO 18017G29KT 10SM CLR 17/07 A2992 RMK AO2 PK WND 19029/0750 SLP093 T01720067"},{"t":3.883,"temp_c":16.7,"dew_c":7.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":14,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 290853Z AUTO 18014KT 10SM CLR 17/07 A2990 RMK AO2 PK WND 18027/0813 SLP088 T01670072 56015"},{"t":4.883,"temp_c":16.1,"dew_c":6.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":16,"wind_dir":180,"gust_kt":24,"vis_sm":10,"metar":"KMAF 290953Z AUTO 18016G24KT 10SM CLR 16/07 A2989 RMK AO2 SLP083 T01610067"},{"t":5.883,"temp_c":15.6,"dew_c":7.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":14,"wind_dir":190,"gust_kt":21,"vis_sm":10,"metar":"KMAF 291053Z 19014G21KT 10SM CLR 16/07 A2988 RMK AO2 SLP082 T01560072"},{"t":6.883,"temp_c":13.9,"dew_c":7.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":12,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 291153Z 18012KT 10SM CLR 14/07 A2988 RMK AO2 SLP084 T01390072 10172 20139 55006"},{"t":7.883,"temp_c":13.3,"dew_c":6.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 291253Z 18013KT 10SM CLR 13/07 A2988 RMK AO2 SLP085 T01330067"},{"t":8.883,"temp_c":13.9,"dew_c":6.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":180,"gust_kt":22,"vis_sm":10,"metar":"KMAF 291353Z 18013G22KT 10SM CLR 14/06 A2989 RMK AO2 SLP091 T01390061"},{"t":9.883,"temp_c":15.0,"dew_c":5.0,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":190,"gust_kt":null,"vis_sm":10,"metar":"KMAF 291453Z 19013KT 10SM CLR 15/05 A2989 RMK AO2 SLP092 T01500050 53004"},{"t":10.883,"temp_c":17.8,"dew_c":5.0,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":200,"gust_kt":null,"vis_sm":10,"metar":"KMAF 291553Z 20013KT 10SM CLR 18/05 A2991 RMK AO2 SLP096 T01780050"},{"t":11.883,"temp_c":19.4,"dew_c":5.0,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":12,"wind_dir":200,"gust_kt":21,"vis_sm":10,"metar":"KMAF 291653Z 20012G21KT 10SM CLR 19/05 A2991 RMK AO2 SLP096 T01940050"},{"t":12.883,"temp_c":21.7,"dew_c":4.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":15,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 291753Z 18015KT 10SM CLR 22/04 A2991 RMK AO2 SLP093 T02170044 10217 20133 50005"},{"t":13.883,"temp_c":23.3,"dew_c":3.3,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":200,"gust_kt":null,"vis_sm":10,"metar":"KMAF 291853Z 20009KT 10SM CLR 23/03 A2989 RMK AO2 SLP086 T02330033 $"},{"t":14.883,"temp_c":24.4,"dew_c":2.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":210,"gust_kt":null,"vis_sm":10,"metar":"KMAF 291953Z 21009KT 10SM CLR 24/02 A2987 RMK AO2 SLP074 T02440022 $"},{"t":15.883,"temp_c":26.1,"dew_c":0.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":8,"wind_dir":210,"gust_kt":null,"vis_sm":10,"metar":"KMAF 292053Z 21008KT 10SM CLR 26/01 A2984 RMK AO2 SLP063 T02610006 58023"},{"t":16.883,"temp_c":27.8,"dew_c":-3.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":12,"wind_dir":220,"gust_kt":null,"vis_sm":10,"metar":"KMAF 292153Z 22012KT 10SM CLR 28/M04 A2982 RMK AO2 SLP056 T02781039"},{"t":17.883,"temp_c":27.8,"dew_c":-3.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":10,"wind_dir":210,"gust_kt":null,"vis_sm":10,"metar":"KMAF 292253Z 21010KT 10SM CLR 28/M04 A2981 RMK AO2 SLP052 T02781039 $"},{"t":18.883,"temp_c":26.7,"dew_c":-3.3,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":190,"gust_kt":null,"vis_sm":10,"metar":"KMAF 292353Z 19011KT 10SM CLR 27/M03 A2983 RMK AO2 SLP062 T02671033 10283 20217 55003 $"},{"t":19.883,"temp_c":23.9,"dew_c":5.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":10,"wind_dir":190,"gust_kt":null,"vis_sm":10,"metar":"KMAF 300053Z 19010KT 10SM CLR 24/06 A2984 RMK AO2 SLP070 T02390056 $"},{"t":20.883,"temp_c":21.7,"dew_c":7.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":14,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 300153Z 18014KT 10SM CLR 22/07 A2985 RMK AO2 SLP075 T02170072 $"},{"t":21.883,"temp_c":20.0,"dew_c":7.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 300253Z 18013KT 10SM CLR 20/08 A2987 RMK AO2 SLP081 T02000078 53013 $"},{"t":22.883,"temp_c":18.9,"dew_c":8.3,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":190,"gust_kt":null,"vis_sm":10,"metar":"KMAF 300353Z AUTO 19011KT 10SM CLR 19/08 A2989 RMK AO2 SLP088 T01890083 $"},{"t":23.883,"temp_c":17.8,"dew_c":8.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":190,"gust_kt":null,"vis_sm":10,"metar":"KMAF 300453Z AUTO 19009KT 10SM CLR 18/09 A2990 RMK AO2 SLP090 T01780089 $"},{"t":24.883,"temp_c":17.2,"dew_c":9.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":190,"gust_kt":null,"vis_sm":10,"metar":"KMAF 300553Z AUTO 19009KT 10SM CLR 17/09 A2990 RMK AO2 SLP090 T01720094 10267 20172 402830133 51010 $"},{"t":25.883,"temp_c":16.7,"dew_c":10.0,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":200,"gust_kt":null,"vis_sm":10,"metar":"KMAF 300653Z AUTO 20011KT 10SM CLR 17/10 A2990 RMK AO2 SLP088 T01670100 $"},{"t":26.883,"temp_c":16.1,"dew_c":10.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":200,"gust_kt":null,"vis_sm":10,"metar":"KMAF 300753Z AUTO 20009KT 10SM CLR 16/11 A2989 RMK AO2 SLP083 T01610106 $"}],"hourly":[{"t":0.883,"temp_c":17.2,"dew_c":2.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 290553Z AUTO 18013KT 10SM CLR 17/02 A2995 RMK AO2 SLP107 T01720022 10239 20161 402500017 58010"},{"t":1.883,"temp_c":17.2,"dew_c":4.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":16,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 290653Z AUTO 18016KT 10SM CLR 17/04 A2994 RMK AO2 SLP101 T01720044"},{"t":2.883,"temp_c":17.2,"dew_c":6.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":17,"wind_dir":180,"gust_kt":29,"vis_sm":10,"metar":"KMAF 290753Z AUTO 18017G29KT 10SM CLR 17/07 A2992 RMK AO2 PK WND 19029/0750 SLP093 T01720067"},{"t":3.883,"temp_c":16.7,"dew_c":7.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":14,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 290853Z AUTO 18014KT 10SM CLR 17/07 A2990 RMK AO2 PK WND 18027/0813 SLP088 T01670072 56015"},{"t":4.883,"temp_c":16.1,"dew_c":6.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":16,"wind_dir":180,"gust_kt":24,"vis_sm":10,"metar":"KMAF 290953Z AUTO 18016G24KT 10SM CLR 16/07 A2989 RMK AO2 SLP083 T01610067"},{"t":5.883,"temp_c":15.6,"dew_c":7.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":14,"wind_dir":190,"gust_kt":21,"vis_sm":10,"metar":"KMAF 291053Z 19014G21KT 10SM CLR 16/07 A2988 RMK AO2 SLP082 T01560072"},{"t":6.883,"temp_c":13.9,"dew_c":7.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":12,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 291153Z 18012KT 10SM CLR 14/07 A2988 RMK AO2 SLP084 T01390072 10172 20139 55006"},{"t":7.883,"temp_c":13.3,"dew_c":6.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 291253Z 18013KT 10SM CLR 13/07 A2988 RMK AO2 SLP085 T01330067"},{"t":8.883,"temp_c":13.9,"dew_c":6.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":180,"gust_kt":22,"vis_sm":10,"metar":"KMAF 291353Z 18013G22KT 10SM CLR 14/06 A2989 RMK AO2 SLP091 T01390061"},{"t":9.883,"temp_c":15.0,"dew_c":5.0,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":190,"gust_kt":null,"vis_sm":10,"metar":"KMAF 291453Z 19013KT 10SM CLR 15/05 A2989 RMK AO2 SLP092 T01500050 53004"},{"t":10.883,"temp_c":17.8,"dew_c":5.0,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":200,"gust_kt":null,"vis_sm":10,"metar":"KMAF 291553Z 20013KT 10SM CLR 18/05 A2991 RMK AO2 SLP096 T01780050"},{"t":11.883,"temp_c":19.4,"dew_c":5.0,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":12,"wind_dir":200,"gust_kt":21,"vis_sm":10,"metar":"KMAF 291653Z 20012G21KT 10SM CLR 19/05 A2991 RMK AO2 SLP096 T01940050"},{"t":12.883,"temp_c":21.7,"dew_c":4.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":15,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 291753Z 18015KT 10SM CLR 22/04 A2991 RMK AO2 SLP093 T02170044 10217 20133 50005"},{"t":13.883,"temp_c":23.3,"dew_c":3.3,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":200,"gust_kt":null,"vis_sm":10,"metar":"KMAF 291853Z 20009KT 10SM CLR 23/03 A2989 RMK AO2 SLP086 T02330033 $"},{"t":14.883,"temp_c":24.4,"dew_c":2.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":210,"gust_kt":null,"vis_sm":10,"metar":"KMAF 291953Z 21009KT 10SM CLR 24/02 A2987 RMK AO2 SLP074 T02440022 $"},{"t":15.883,"temp_c":26.1,"dew_c":0.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":8,"wind_dir":210,"gust_kt":null,"vis_sm":10,"metar":"KMAF 292053Z 21008KT 10SM CLR 26/01 A2984 RMK AO2 SLP063 T02610006 58023"},{"t":16.883,"temp_c":27.8,"dew_c":-3.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":12,"wind_dir":220,"gust_kt":null,"vis_sm":10,"metar":"KMAF 292153Z 22012KT 10SM CLR 28/M04 A2982 RMK AO2 SLP056 T02781039"},{"t":17.883,"temp_c":27.8,"dew_c":-3.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":10,"wind_dir":210,"gust_kt":null,"vis_sm":10,"metar":"KMAF 292253Z 21010KT 10SM CLR 28/M04 A2981 RMK AO2 SLP052 T02781039 $"},{"t":18.883,"temp_c":26.7,"dew_c":-3.3,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":190,"gust_kt":null,"vis_sm":10,"metar":"KMAF 292353Z 19011KT 10SM CLR 27/M03 A2983 RMK AO2 SLP062 T02671033 10283 20217 55003 $"},{"t":19.883,"temp_c":23.9,"dew_c":5.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":10,"wind_dir":190,"gust_kt":null,"vis_sm":10,"metar":"KMAF 300053Z 19010KT 10SM CLR 24/06 A2984 RMK AO2 SLP070 T02390056 $"},{"t":20.883,"temp_c":21.7,"dew_c":7.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":14,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 300153Z 18014KT 10SM CLR 22/07 A2985 RMK AO2 SLP075 T02170072 $"},{"t":21.883,"temp_c":20.0,"dew_c":7.8,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 300253Z 18013KT 10SM CLR 20/08 A2987 RMK AO2 SLP081 T02000078 53013 $"},{"t":22.883,"temp_c":18.9,"dew_c":8.3,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":190,"gust_kt":null,"vis_sm":10,"metar":"KMAF 300353Z AUTO 19011KT 10SM CLR 19/08 A2989 RMK AO2 SLP088 T01890083 $"},{"t":23.883,"temp_c":17.8,"dew_c":8.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":190,"gust_kt":null,"vis_sm":10,"metar":"KMAF 300453Z AUTO 19009KT 10SM CLR 18/09 A2990 RMK AO2 SLP090 T01780089 $"}]}
|
weather/2025-02-15_LZ_WEST.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"schema":"gridsim.weather/v1","point":"LZ_WEST","date":"2025-02-15","tz":"America/Chicago","station":"MAF","airport":"Midland International","lat":31.9425,"lon":-102.2019,"source":"Iowa Environmental Mesonet (IEM), Iowa State University: ASOS/AWOS archive (https://mesonet.agron.iastate.edu/request/download.phtml). Public domain observations.","obs":[{"t":-2.117,"temp_c":11.7,"dew_c":0.0,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KMAF 150353Z 18013KT 10SM CLR 12/00 A2987 RMK AO2 SLP094 T01170000"},{"t":-1.117,"temp_c":11.1,"dew_c":0.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":12,"wind_dir":190,"gust_kt":null,"vis_sm":10,"metar":"KMAF 150453Z 19012KT 10SM CLR 11/01 A2986 RMK AO2 SLP090 T01110006"},{"t":-0.117,"temp_c":10.0,"dew_c":1.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":8,"wind_dir":200,"gust_kt":null,"vis_sm":10,"metar":"KMAF 150553Z AUTO 20008KT 10SM CLR 10/02 A2985 RMK AO2 SLP085 T01000017 10183 20100 402111006 56009"},{"t":0.883,"temp_c":8.3,"dew_c":1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":190,"gust_kt":null,"vis_sm":10,"metar":"KMAF 150653Z AUTO 19005KT 10SM CLR 08/01 A2984 RMK AO2 SLP083 T00830011"},{"t":1.883,"temp_c":6.7,"dew_c":1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":200,"gust_kt":null,"vis_sm":10,"metar":"KMAF 150753Z AUTO 20005KT 10SM CLR 07/01 A2984 RMK AO2 SLP082 T00670011"},{"t":2.883,"temp_c":7.8,"dew_c":1.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":210,"gust_kt":null,"vis_sm":10,"metar":"KMAF 150853Z AUTO 21005KT 10SM CLR 08/02 A2982 RMK AO2 SLP074 T00780017 58008"},{"t":3.883,"temp_c":6.1,"dew_c":1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":3,"wind_dir":200,"gust_kt":null,"vis_sm":10,"metar":"KMAF 150953Z AUTO 20003KT 10SM CLR 06/01 A2981 RMK AO2 SLP069 T00610011"},{"t":4.883,"temp_c":5.6,"dew_c":1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":210,"gust_kt":null,"vis_sm":10,"metar":"KMAF 151053Z AUTO 21004KT 10SM CLR 06/01 A2980 RMK AO2 SLP066 T00560011"},{"t":5.883,"temp_c":5.6,"dew_c":1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":240,"gust_kt":null,"vis_sm":10,"metar":"KMAF 151153Z 24004KT 10SM CLR 06/01 A2981 RMK AO2 SLP071 T00560011 10100 20039 55005"},{"t":6.883,"temp_c":5.6,"dew_c":0.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":10,"wind_dir":330,"gust_kt":null,"vis_sm":10,"metar":"KMAF 151253Z 33010KT 10SM CLR 06/01 A2985 RMK AO2 SLP087 T00560006"},{"t":7.883,"temp_c":7.8,"dew_c":0.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":330,"gust_kt":null,"vis_sm":10,"metar":"KMAF 151353Z 33009KT 10SM CLR 08/01 A2990 RMK AO2 SLP103 T00780006"},{"t":8.883,"temp_c":10.0,"dew_c":0.0,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":320,"gust_kt":null,"vis_sm":10,"metar":"KMAF 151453Z 32013KT 10SM CLR 10/00 A2992 RMK AO2 SLP112 T01000000 51036"},{"t":9.883,"temp_c":13.9,"dew_c":-1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":12,"wind_dir":300,"gust_kt":null,"vis_sm":10,"metar":"KMAF 151553Z 30012KT 10SM CLR 14/M01 A2991 RMK AO2 SLP105 T01391011"},{"t":10.883,"temp_c":16.1,"dew_c":-1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":21,"wind_dir":310,"gust_kt":33,"vis_sm":10,"metar":"KMAF 151653Z 31021G33KT 10SM CLR 16/M01 A2992 RMK AO2 PK WND 32033/1653 SLP107 T01611011"},{"t":11.883,"temp_c":17.2,"dew_c":-2.8,"cover":0.2,"clouds":[["FEW",1400]],"cloud_base_ft":1400,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":21,"wind_dir":300,"gust_kt":31,"vis_sm":10,"metar":"KMAF 151753Z 30021G31KT 10SM FEW014 17/M03 A2991 RMK AO2 PK WND 32035/1742 SLP104 T01721028 10172 20044 56004"},{"t":12.883,"temp_c":18.3,"dew_c":-4.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":23,"wind_dir":280,"gust_kt":35,"vis_sm":9,"metar":"KMAF 151853Z 28023G35KT 9SM BLDU CLR 18/M04 A2989 RMK AO2 PK WND 30038/1828 SLP096 T01831044"},{"t":13.767,"temp_c":18.9,"dew_c":-4.4,"cover":0.2,"clouds":[["FEW",500]],"cloud_base_ft":500,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":25,"wind_dir":300,"gust_kt":42,"vis_sm":7,"metar":"KMAF 151946Z 30025G42KT 7SM BLDU FEW005 19/M04 A2987 RMK AO2 PK WND 31042/1939 T01891044"},{"t":13.883,"temp_c":18.9,"dew_c":-3.9,"cover":0.2,"clouds":[["FEW",1100]],"cloud_base_ft":1100,"ceiling_ft":null,"wx":["HZ","BLDU"],"precip_in":0.0,"wind_kt":30,"wind_dir":300,"gust_kt":41,"vis_sm":6,"metar":"KMAF 151953Z 30030G41KT 6SM HZ BLDU FEW011 19/M04 A2987 RMK AO2 PK WND 31042/1939 SLP090 T01891039"},{"t":14.183,"temp_c":18.3,"dew_c":-4.4,"cover":0.2,"clouds":[["FEW",900]],"cloud_base_ft":900,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":21,"wind_dir":310,"gust_kt":40,"vis_sm":8,"metar":"KMAF 152011Z 31021G40KT 8SM BLDU FEW009 18/M04 A2987 RMK AO2 PK WND 31043/1957 T01831044"},{"t":14.883,"temp_c":18.9,"dew_c":-5.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":21,"wind_dir":310,"gust_kt":35,"vis_sm":9,"metar":"KMAF 152053Z 31021G35KT 9SM BLDU CLR 19/M06 A2987 RMK AO2 PK WND 31043/1957 SLP090 T01891056 55013"},{"t":15.883,"temp_c":18.3,"dew_c":-4.4,"cover":0.45,"clouds":[["SCT",4100]],"cloud_base_ft":4100,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":21,"wind_dir":310,"gust_kt":30,"vis_sm":9,"metar":"KMAF 152153Z 31021G30KT 9SM BLDU SCT041 18/M04 A2989 RMK AO2 PK WND 33040/2109 SLP097 T01831044"},{"t":16.883,"temp_c":18.3,"dew_c":-4.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":15,"wind_dir":320,"gust_kt":28,"vis_sm":10,"metar":"KMAF 152253Z 32015G28KT 10SM BLDU CLR 18/M04 A2990 RMK AO2 PK WND 31031/2154 SLP102 T01831044"},{"t":17.883,"temp_c":16.7,"dew_c":-1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":11,"wind_dir":360,"gust_kt":21,"vis_sm":10,"metar":"KMAF 152353Z 36011G21KT 10SM BLDU CLR 17/M01 A2992 RMK AO2 PK WND 33028/2256 WSHFT 2336 SLP110 T01671011 10194 20167 52015"},{"t":18.883,"temp_c":13.3,"dew_c":-1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":10,"wind_dir":30,"gust_kt":null,"vis_sm":10,"metar":"KMAF 160053Z 03010KT 10SM BLDU CLR 13/M01 A2995 RMK AO2 SLP124 T01331011"},{"t":19.883,"temp_c":10.6,"dew_c":-2.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":8,"wind_dir":40,"gust_kt":null,"vis_sm":10,"metar":"KMAF 160153Z 04008KT 10SM BLDU CLR 11/M02 A2998 RMK AO2 SLP133 T01061022"},{"t":20.883,"temp_c":10.0,"dew_c":-0.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":9,"wind_dir":60,"gust_kt":null,"vis_sm":10,"metar":"KMAF 160253Z AUTO 06009KT 10SM BLDU CLR 10/M01 A3000 RMK AO2 SLP141 T01001006 51026"},{"t":21.883,"temp_c":10.0,"dew_c":0.6,"cover":0.45,"clouds":[["SCT",11000]],"cloud_base_ft":11000,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":8,"wind_dir":90,"gust_kt":null,"vis_sm":10,"metar":"KMAF 160353Z AUTO 09008KT 10SM BLDU SCT110 10/01 A3004 RMK AO2 SLP151 T01000006"},{"t":22.883,"temp_c":7.2,"dew_c":1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":9,"wind_dir":70,"gust_kt":null,"vis_sm":10,"metar":"KMAF 160453Z AUTO 07009KT 10SM BLDU CLR 07/01 A3006 RMK AO2 SLP158 T00720011"},{"t":23.883,"temp_c":5.6,"dew_c":0.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":5,"wind_dir":90,"gust_kt":null,"vis_sm":10,"metar":"KMAF 160553Z AUTO 09005KT 10SM BLDU CLR 06/01 A3011 RMK AO2 SLP177 T00560006 10161 20056 401940039 53035"},{"t":24.883,"temp_c":5.0,"dew_c":0.0,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":8,"wind_dir":90,"gust_kt":null,"vis_sm":10,"metar":"KMAF 160653Z AUTO 09008KT 10SM BLDU CLR 05/00 A3014 RMK AO2 SLP185 T00500000"},{"t":25.883,"temp_c":2.8,"dew_c":0.0,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":11,"wind_dir":70,"gust_kt":null,"vis_sm":10,"metar":"KMAF 160753Z AUTO 07011KT 10SM BLDU CLR 03/00 A3014 RMK AO2 SLP189 T00280000"},{"t":26.883,"temp_c":1.1,"dew_c":-0.6,"cover":0.78,"clouds":[["BKN",1400]],"cloud_base_ft":1400,"ceiling_ft":1400,"wx":["BLDU"],"precip_in":0.0,"wind_kt":15,"wind_dir":60,"gust_kt":null,"vis_sm":10,"metar":"KMAF 160853Z AUTO 06015KT 10SM BLDU BKN014 01/M01 A3017 RMK AO2 SLP200 T00111006 53018"}],"hourly":[{"t":0.883,"temp_c":8.3,"dew_c":1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":190,"gust_kt":null,"vis_sm":10,"metar":"KMAF 150653Z AUTO 19005KT 10SM CLR 08/01 A2984 RMK AO2 SLP083 T00830011"},{"t":1.883,"temp_c":6.7,"dew_c":1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":200,"gust_kt":null,"vis_sm":10,"metar":"KMAF 150753Z AUTO 20005KT 10SM CLR 07/01 A2984 RMK AO2 SLP082 T00670011"},{"t":2.883,"temp_c":7.8,"dew_c":1.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":210,"gust_kt":null,"vis_sm":10,"metar":"KMAF 150853Z AUTO 21005KT 10SM CLR 08/02 A2982 RMK AO2 SLP074 T00780017 58008"},{"t":3.883,"temp_c":6.1,"dew_c":1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":3,"wind_dir":200,"gust_kt":null,"vis_sm":10,"metar":"KMAF 150953Z AUTO 20003KT 10SM CLR 06/01 A2981 RMK AO2 SLP069 T00610011"},{"t":4.883,"temp_c":5.6,"dew_c":1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":210,"gust_kt":null,"vis_sm":10,"metar":"KMAF 151053Z AUTO 21004KT 10SM CLR 06/01 A2980 RMK AO2 SLP066 T00560011"},{"t":5.883,"temp_c":5.6,"dew_c":1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":240,"gust_kt":null,"vis_sm":10,"metar":"KMAF 151153Z 24004KT 10SM CLR 06/01 A2981 RMK AO2 SLP071 T00560011 10100 20039 55005"},{"t":6.883,"temp_c":5.6,"dew_c":0.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":10,"wind_dir":330,"gust_kt":null,"vis_sm":10,"metar":"KMAF 151253Z 33010KT 10SM CLR 06/01 A2985 RMK AO2 SLP087 T00560006"},{"t":7.883,"temp_c":7.8,"dew_c":0.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":330,"gust_kt":null,"vis_sm":10,"metar":"KMAF 151353Z 33009KT 10SM CLR 08/01 A2990 RMK AO2 SLP103 T00780006"},{"t":8.883,"temp_c":10.0,"dew_c":0.0,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":320,"gust_kt":null,"vis_sm":10,"metar":"KMAF 151453Z 32013KT 10SM CLR 10/00 A2992 RMK AO2 SLP112 T01000000 51036"},{"t":9.883,"temp_c":13.9,"dew_c":-1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":12,"wind_dir":300,"gust_kt":null,"vis_sm":10,"metar":"KMAF 151553Z 30012KT 10SM CLR 14/M01 A2991 RMK AO2 SLP105 T01391011"},{"t":10.883,"temp_c":16.1,"dew_c":-1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":21,"wind_dir":310,"gust_kt":33,"vis_sm":10,"metar":"KMAF 151653Z 31021G33KT 10SM CLR 16/M01 A2992 RMK AO2 PK WND 32033/1653 SLP107 T01611011"},{"t":11.883,"temp_c":17.2,"dew_c":-2.8,"cover":0.2,"clouds":[["FEW",1400]],"cloud_base_ft":1400,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":21,"wind_dir":300,"gust_kt":31,"vis_sm":10,"metar":"KMAF 151753Z 30021G31KT 10SM FEW014 17/M03 A2991 RMK AO2 PK WND 32035/1742 SLP104 T01721028 10172 20044 56004"},{"t":12.883,"temp_c":18.3,"dew_c":-4.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":23,"wind_dir":280,"gust_kt":35,"vis_sm":9,"metar":"KMAF 151853Z 28023G35KT 9SM BLDU CLR 18/M04 A2989 RMK AO2 PK WND 30038/1828 SLP096 T01831044"},{"t":13.767,"temp_c":18.9,"dew_c":-4.4,"cover":0.2,"clouds":[["FEW",500]],"cloud_base_ft":500,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":25,"wind_dir":300,"gust_kt":42,"vis_sm":7,"metar":"KMAF 151946Z 30025G42KT 7SM BLDU FEW005 19/M04 A2987 RMK AO2 PK WND 31042/1939 T01891044"},{"t":14.183,"temp_c":18.3,"dew_c":-4.4,"cover":0.2,"clouds":[["FEW",900]],"cloud_base_ft":900,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":21,"wind_dir":310,"gust_kt":40,"vis_sm":8,"metar":"KMAF 152011Z 31021G40KT 8SM BLDU FEW009 18/M04 A2987 RMK AO2 PK WND 31043/1957 T01831044"},{"t":15.883,"temp_c":18.3,"dew_c":-4.4,"cover":0.45,"clouds":[["SCT",4100]],"cloud_base_ft":4100,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":21,"wind_dir":310,"gust_kt":30,"vis_sm":9,"metar":"KMAF 152153Z 31021G30KT 9SM BLDU SCT041 18/M04 A2989 RMK AO2 PK WND 33040/2109 SLP097 T01831044"},{"t":16.883,"temp_c":18.3,"dew_c":-4.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":15,"wind_dir":320,"gust_kt":28,"vis_sm":10,"metar":"KMAF 152253Z 32015G28KT 10SM BLDU CLR 18/M04 A2990 RMK AO2 PK WND 31031/2154 SLP102 T01831044"},{"t":17.883,"temp_c":16.7,"dew_c":-1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":11,"wind_dir":360,"gust_kt":21,"vis_sm":10,"metar":"KMAF 152353Z 36011G21KT 10SM BLDU CLR 17/M01 A2992 RMK AO2 PK WND 33028/2256 WSHFT 2336 SLP110 T01671011 10194 20167 52015"},{"t":18.883,"temp_c":13.3,"dew_c":-1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":10,"wind_dir":30,"gust_kt":null,"vis_sm":10,"metar":"KMAF 160053Z 03010KT 10SM BLDU CLR 13/M01 A2995 RMK AO2 SLP124 T01331011"},{"t":19.883,"temp_c":10.6,"dew_c":-2.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":8,"wind_dir":40,"gust_kt":null,"vis_sm":10,"metar":"KMAF 160153Z 04008KT 10SM BLDU CLR 11/M02 A2998 RMK AO2 SLP133 T01061022"},{"t":20.883,"temp_c":10.0,"dew_c":-0.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":9,"wind_dir":60,"gust_kt":null,"vis_sm":10,"metar":"KMAF 160253Z AUTO 06009KT 10SM BLDU CLR 10/M01 A3000 RMK AO2 SLP141 T01001006 51026"},{"t":21.883,"temp_c":10.0,"dew_c":0.6,"cover":0.45,"clouds":[["SCT",11000]],"cloud_base_ft":11000,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":8,"wind_dir":90,"gust_kt":null,"vis_sm":10,"metar":"KMAF 160353Z AUTO 09008KT 10SM BLDU SCT110 10/01 A3004 RMK AO2 SLP151 T01000006"},{"t":22.883,"temp_c":7.2,"dew_c":1.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":9,"wind_dir":70,"gust_kt":null,"vis_sm":10,"metar":"KMAF 160453Z AUTO 07009KT 10SM BLDU CLR 07/01 A3006 RMK AO2 SLP158 T00720011"},{"t":23.883,"temp_c":5.6,"dew_c":0.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":["BLDU"],"precip_in":0.0,"wind_kt":5,"wind_dir":90,"gust_kt":null,"vis_sm":10,"metar":"KMAF 160553Z AUTO 09005KT 10SM BLDU CLR 06/01 A3011 RMK AO2 SLP177 T00560006 10161 20056 401940039 53035"}]}
|
weather/2025-03-02_LZ_CPS.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"schema":"gridsim.weather/v1","point":"LZ_CPS","date":"2025-03-02","tz":"America/Chicago","station":"SAT","airport":"San Antonio International","lat":29.5337,"lon":-98.4698,"source":"Iowa Environmental Mesonet (IEM), Iowa State University: ASOS/AWOS archive (https://mesonet.agron.iastate.edu/request/download.phtml). Public domain observations.","obs":[{"t":-2.15,"temp_c":20.0,"dew_c":8.9,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":120,"gust_kt":null,"vis_sm":10,"metar":"KSAT 020351Z 12004KT 10SM FEW250 20/09 A3000 RMK AO2 SLP143 T02000089"},{"t":-1.15,"temp_c":21.1,"dew_c":10.0,"cover":0.45,"clouds":[["SCT",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":140,"gust_kt":null,"vis_sm":10,"metar":"KSAT 020451Z 14009KT 10SM SCT250 21/10 A3001 RMK AO2 SLP146 T02110100"},{"t":-0.15,"temp_c":20.0,"dew_c":10.6,"cover":0.78,"clouds":[["BKN",25000]],"cloud_base_ft":25000,"ceiling_ft":25000,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":160,"gust_kt":null,"vis_sm":10,"metar":"KSAT 020551Z COR 16009KT 10SM BKN250 20/11 A3001 RMK AO2 SLP145 T02000106 10267 20200 402890100 53002"},{"t":0.85,"temp_c":18.3,"dew_c":10.6,"cover":0.78,"clouds":[["BKN",25000]],"cloud_base_ft":25000,"ceiling_ft":25000,"wx":[],"precip_in":0.0,"wind_kt":6,"wind_dir":140,"gust_kt":null,"vis_sm":10,"metar":"KSAT 020651Z 14006KT 10SM BKN250 18/11 A3002 RMK AO2 SLP149 T01830106"},{"t":1.85,"temp_c":17.8,"dew_c":10.0,"cover":0.78,"clouds":[["BKN",25000]],"cloud_base_ft":25000,"ceiling_ft":25000,"wx":[],"precip_in":0.0,"wind_kt":6,"wind_dir":140,"gust_kt":null,"vis_sm":10,"metar":"KSAT 020751Z 14006KT 10SM BKN250 18/10 A3002 RMK AO2 SLP149 T01780100"},{"t":2.85,"temp_c":16.7,"dew_c":10.0,"cover":0.78,"clouds":[["BKN",25000]],"cloud_base_ft":25000,"ceiling_ft":25000,"wx":[],"precip_in":0.0,"wind_kt":6,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KSAT 020851Z 18006KT 10SM BKN250 17/10 A3002 RMK AO2 SLP150 T01670100 50003"},{"t":3.85,"temp_c":17.2,"dew_c":11.1,"cover":0.78,"clouds":[["BKN",25000]],"cloud_base_ft":25000,"ceiling_ft":25000,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":150,"gust_kt":null,"vis_sm":10,"metar":"KSAT 020951Z 15004KT 10SM BKN250 17/11 A3000 RMK AO2 SLP142 T01720111"},{"t":4.85,"temp_c":16.7,"dew_c":12.2,"cover":1.0,"clouds":[["OVC",24000]],"cloud_base_ft":24000,"ceiling_ft":24000,"wx":[],"precip_in":0.0,"wind_kt":6,"wind_dir":150,"gust_kt":null,"vis_sm":10,"metar":"KSAT 021051Z 15006KT 10SM OVC240 17/12 A2999 RMK AO2 SLP141 T01670122"},{"t":5.85,"temp_c":15.6,"dew_c":12.2,"cover":1.0,"clouds":[["OVC",24000]],"cloud_base_ft":24000,"ceiling_ft":24000,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":90,"gust_kt":null,"vis_sm":10,"metar":"KSAT 021151Z 09004KT 10SM OVC240 16/12 A3000 RMK AO2 SLP142 T01560122 10200 20156 55007"},{"t":6.85,"temp_c":15.6,"dew_c":13.3,"cover":1.0,"clouds":[["FEW",1000],["BKN",21000],["OVC",25000]],"cloud_base_ft":1000,"ceiling_ft":21000,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":0,"gust_kt":null,"vis_sm":10,"metar":"KSAT 021251Z 00000KT 10SM FEW010 BKN210 OVC250 16/13 A3001 RMK AO2 SLP147 T01560133"},{"t":7.0,"temp_c":15.6,"dew_c":13.3,"cover":1.0,"clouds":[["BKN",800],["OVC",22000]],"cloud_base_ft":800,"ceiling_ft":800,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":90,"gust_kt":null,"vis_sm":10,"metar":"KSAT 021300Z 09004KT 10SM BKN008 OVC220 16/13 A3001 RMK AO2 T01560133"},{"t":7.85,"temp_c":16.7,"dew_c":15.0,"cover":1.0,"clouds":[["BKN",800],["OVC",22000]],"cloud_base_ft":800,"ceiling_ft":800,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":150,"gust_kt":null,"vis_sm":10,"metar":"KSAT 021351Z 15005KT 10SM BKN008 OVC220 17/15 A3004 RMK AO2 SLP156 T01670150"},{"t":8.85,"temp_c":17.8,"dew_c":15.6,"cover":1.0,"clouds":[["OVC",800]],"cloud_base_ft":800,"ceiling_ft":800,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":150,"gust_kt":null,"vis_sm":10,"metar":"KSAT 021451Z 15009KT 10SM OVC008 18/16 A3004 RMK AO2 SLP157 T01780156 51013"},{"t":9.467,"temp_c":18.3,"dew_c":15.6,"cover":0.78,"clouds":[["BKN",1000],["BKN",22000]],"cloud_base_ft":1000,"ceiling_ft":1000,"wx":[],"precip_in":0.0,"wind_kt":10,"wind_dir":150,"gust_kt":null,"vis_sm":10,"metar":"KSAT 021528Z 15010KT 10SM BKN010 BKN220 18/16 A3005 RMK AO2 T01830156"},{"t":9.85,"temp_c":19.4,"dew_c":15.0,"cover":0.45,"clouds":[["SCT",1300],["SCT",22000]],"cloud_base_ft":1300,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":150,"gust_kt":null,"vis_sm":10,"metar":"KSAT 021551Z 15009KT 10SM SCT013 SCT220 19/15 A3004 RMK AO2 SLP157 T01940150"},{"t":10.85,"temp_c":21.7,"dew_c":15.0,"cover":0.2,"clouds":[["FEW",2800],["FEW",25000]],"cloud_base_ft":2800,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":14,"wind_dir":140,"gust_kt":19,"vis_sm":10,"metar":"KSAT 021651Z 14014G19KT 10SM FEW028 FEW250 22/15 A3002 RMK AO2 SLP151 T02170150"},{"t":11.85,"temp_c":24.4,"dew_c":13.3,"cover":0.2,"clouds":[["FEW",3800],["FEW",25000]],"cloud_base_ft":3800,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":18,"wind_dir":140,"gust_kt":26,"vis_sm":10,"metar":"KSAT 021751Z 14018G26KT 10SM FEW038 FEW250 24/13 A3000 RMK AO2 PK WND 13026/1751 SLP144 T02440133 10244 20156 58012"},{"t":12.85,"temp_c":26.7,"dew_c":12.2,"cover":0.2,"clouds":[["FEW",4300],["FEW",25000]],"cloud_base_ft":4300,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":20,"wind_dir":130,"gust_kt":26,"vis_sm":10,"metar":"KSAT 021851Z 13020G26KT 10SM FEW043 FEW250 27/12 A2996 RMK AO2 PK WND 15029/1830 SLP128 T02670122"},{"t":13.85,"temp_c":27.2,"dew_c":12.8,"cover":0.2,"clouds":[["FEW",5500],["FEW",25000]],"cloud_base_ft":5500,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":17,"wind_dir":140,"gust_kt":27,"vis_sm":10,"metar":"KSAT 021951Z 14017G27KT 10SM FEW055 FEW250 27/13 A2991 RMK AO2 PK WND 13031/1923 SLP111 T02720128"},{"t":14.85,"temp_c":27.8,"dew_c":12.2,"cover":0.2,"clouds":[["FEW",6000]],"cloud_base_ft":6000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":16,"wind_dir":150,"gust_kt":28,"vis_sm":10,"metar":"KSAT 022051Z 15016G28KT 10SM FEW060 28/12 A2988 RMK AO2 PK WND 15028/2005 SLP102 T02780122 56041"},{"t":15.85,"temp_c":27.8,"dew_c":12.8,"cover":0.45,"clouds":[["SCT",6000]],"cloud_base_ft":6000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":18,"wind_dir":150,"gust_kt":28,"vis_sm":10,"metar":"KSAT 022151Z 15018G28KT 10SM SCT060 28/13 A2987 RMK AO2 PK WND 16029/2131 SLP097 T02780128"},{"t":16.85,"temp_c":26.7,"dew_c":13.9,"cover":0.45,"clouds":[["SCT",6500]],"cloud_base_ft":6500,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":16,"wind_dir":160,"gust_kt":25,"vis_sm":10,"metar":"KSAT 022251Z 16016G25KT 10SM SCT065 27/14 A2986 RMK AO2 PK WND 15026/2215 SLP097 T02670139"},{"t":17.85,"temp_c":25.6,"dew_c":14.4,"cover":0.2,"clouds":[["FEW",6000]],"cloud_base_ft":6000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":14,"wind_dir":140,"gust_kt":24,"vis_sm":10,"metar":"KSAT 022351Z 14014G24KT 10SM FEW060 26/14 A2986 RMK AO2 PK WND 16027/2327 SLP097 T02560144 10283 20244 56005"},{"t":18.85,"temp_c":23.9,"dew_c":14.4,"cover":0.2,"clouds":[["FEW",6500]],"cloud_base_ft":6500,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":15,"wind_dir":150,"gust_kt":22,"vis_sm":10,"metar":"KSAT 030051Z 15015G22KT 10SM FEW065 24/14 A2989 RMK AO2 PK WND 15028/0032 SLP106 T02390144"},{"t":19.85,"temp_c":22.2,"dew_c":15.0,"cover":0.2,"clouds":[["FEW",6000]],"cloud_base_ft":6000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":17,"wind_dir":130,"gust_kt":23,"vis_sm":10,"metar":"KSAT 030151Z 13017G23KT 10SM FEW060 22/15 A2991 RMK AO2 SLP112 T02220150"},{"t":20.85,"temp_c":21.1,"dew_c":16.1,"cover":0.45,"clouds":[["SCT",3000],["SCT",6000]],"cloud_base_ft":3000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":12,"wind_dir":130,"gust_kt":null,"vis_sm":10,"metar":"KSAT 030251Z 13012KT 10SM SCT030 SCT060 21/16 A2993 RMK AO2 SLP121 T02110161 53022"},{"t":21.85,"temp_c":20.6,"dew_c":16.7,"cover":1.0,"clouds":[["SCT",3000],["OVC",3800]],"cloud_base_ft":3000,"ceiling_ft":3800,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":130,"gust_kt":null,"vis_sm":10,"metar":"KSAT 030351Z 13013KT 10SM SCT030 OVC038 21/17 A2995 RMK AO2 SLP126 T02060167"},{"t":22.467,"temp_c":20.6,"dew_c":16.7,"cover":0.78,"clouds":[["BKN",2200],["BKN",6000]],"cloud_base_ft":2200,"ceiling_ft":2200,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":150,"gust_kt":null,"vis_sm":10,"metar":"KSAT 030428Z 15009KT 10SM BKN022 BKN060 21/17 A2995 RMK AO2 T02060167"},{"t":22.85,"temp_c":20.6,"dew_c":17.2,"cover":1.0,"clouds":[["OVC",2000]],"cloud_base_ft":2000,"ceiling_ft":2000,"wx":[],"precip_in":0.0,"wind_kt":12,"wind_dir":150,"gust_kt":null,"vis_sm":10,"metar":"KSAT 030451Z 15012KT 10SM OVC020 21/17 A2994 RMK AO2 SLP124 T02060172"},{"t":23.85,"temp_c":20.0,"dew_c":17.2,"cover":1.0,"clouds":[["OVC",1700]],"cloud_base_ft":1700,"ceiling_ft":1700,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":150,"gust_kt":null,"vis_sm":10,"metar":"KSAT 030551Z 15011KT 10SM OVC017 20/17 A2994 RMK AO2 SLP123 T02000172 10256 20200 402830156 50003"},{"t":24.85,"temp_c":20.0,"dew_c":17.2,"cover":1.0,"clouds":[["OVC",1400]],"cloud_base_ft":1400,"ceiling_ft":1400,"wx":[],"precip_in":0.0,"wind_kt":10,"wind_dir":160,"gust_kt":null,"vis_sm":10,"metar":"KSAT 030651Z 16010KT 10SM OVC014 20/17 A2993 RMK AO2 SLP119 T02000172"},{"t":25.85,"temp_c":19.4,"dew_c":17.2,"cover":0.78,"clouds":[["BKN",1400],["BKN",2600]],"cloud_base_ft":1400,"ceiling_ft":1400,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":160,"gust_kt":null,"vis_sm":10,"metar":"KSAT 030751Z 16005KT 10SM BKN014 BKN026 19/17 A2992 RMK AO2 SLP115 T01940172"},{"t":26.85,"temp_c":20.0,"dew_c":17.2,"cover":1.0,"clouds":[["BKN",1400],["OVC",2400]],"cloud_base_ft":1400,"ceiling_ft":1400,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":130,"gust_kt":null,"vis_sm":10,"metar":"KSAT 030851Z 13004KT 10SM BKN014 OVC024 20/17 A2990 RMK AO2 SLP107 T02000172 58014"}],"hourly":[{"t":0.85,"temp_c":18.3,"dew_c":10.6,"cover":0.78,"clouds":[["BKN",25000]],"cloud_base_ft":25000,"ceiling_ft":25000,"wx":[],"precip_in":0.0,"wind_kt":6,"wind_dir":140,"gust_kt":null,"vis_sm":10,"metar":"KSAT 020651Z 14006KT 10SM BKN250 18/11 A3002 RMK AO2 SLP149 T01830106"},{"t":1.85,"temp_c":17.8,"dew_c":10.0,"cover":0.78,"clouds":[["BKN",25000]],"cloud_base_ft":25000,"ceiling_ft":25000,"wx":[],"precip_in":0.0,"wind_kt":6,"wind_dir":140,"gust_kt":null,"vis_sm":10,"metar":"KSAT 020751Z 14006KT 10SM BKN250 18/10 A3002 RMK AO2 SLP149 T01780100"},{"t":2.85,"temp_c":16.7,"dew_c":10.0,"cover":0.78,"clouds":[["BKN",25000]],"cloud_base_ft":25000,"ceiling_ft":25000,"wx":[],"precip_in":0.0,"wind_kt":6,"wind_dir":180,"gust_kt":null,"vis_sm":10,"metar":"KSAT 020851Z 18006KT 10SM BKN250 17/10 A3002 RMK AO2 SLP150 T01670100 50003"},{"t":3.85,"temp_c":17.2,"dew_c":11.1,"cover":0.78,"clouds":[["BKN",25000]],"cloud_base_ft":25000,"ceiling_ft":25000,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":150,"gust_kt":null,"vis_sm":10,"metar":"KSAT 020951Z 15004KT 10SM BKN250 17/11 A3000 RMK AO2 SLP142 T01720111"},{"t":4.85,"temp_c":16.7,"dew_c":12.2,"cover":1.0,"clouds":[["OVC",24000]],"cloud_base_ft":24000,"ceiling_ft":24000,"wx":[],"precip_in":0.0,"wind_kt":6,"wind_dir":150,"gust_kt":null,"vis_sm":10,"metar":"KSAT 021051Z 15006KT 10SM OVC240 17/12 A2999 RMK AO2 SLP141 T01670122"},{"t":5.85,"temp_c":15.6,"dew_c":12.2,"cover":1.0,"clouds":[["OVC",24000]],"cloud_base_ft":24000,"ceiling_ft":24000,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":90,"gust_kt":null,"vis_sm":10,"metar":"KSAT 021151Z 09004KT 10SM OVC240 16/12 A3000 RMK AO2 SLP142 T01560122 10200 20156 55007"},{"t":6.85,"temp_c":15.6,"dew_c":13.3,"cover":1.0,"clouds":[["FEW",1000],["BKN",21000],["OVC",25000]],"cloud_base_ft":1000,"ceiling_ft":21000,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":0,"gust_kt":null,"vis_sm":10,"metar":"KSAT 021251Z 00000KT 10SM FEW010 BKN210 OVC250 16/13 A3001 RMK AO2 SLP147 T01560133"},{"t":7.85,"temp_c":16.7,"dew_c":15.0,"cover":1.0,"clouds":[["BKN",800],["OVC",22000]],"cloud_base_ft":800,"ceiling_ft":800,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":150,"gust_kt":null,"vis_sm":10,"metar":"KSAT 021351Z 15005KT 10SM BKN008 OVC220 17/15 A3004 RMK AO2 SLP156 T01670150"},{"t":8.85,"temp_c":17.8,"dew_c":15.6,"cover":1.0,"clouds":[["OVC",800]],"cloud_base_ft":800,"ceiling_ft":800,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":150,"gust_kt":null,"vis_sm":10,"metar":"KSAT 021451Z 15009KT 10SM OVC008 18/16 A3004 RMK AO2 SLP157 T01780156 51013"},{"t":9.467,"temp_c":18.3,"dew_c":15.6,"cover":0.78,"clouds":[["BKN",1000],["BKN",22000]],"cloud_base_ft":1000,"ceiling_ft":1000,"wx":[],"precip_in":0.0,"wind_kt":10,"wind_dir":150,"gust_kt":null,"vis_sm":10,"metar":"KSAT 021528Z 15010KT 10SM BKN010 BKN220 18/16 A3005 RMK AO2 T01830156"},{"t":10.85,"temp_c":21.7,"dew_c":15.0,"cover":0.2,"clouds":[["FEW",2800],["FEW",25000]],"cloud_base_ft":2800,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":14,"wind_dir":140,"gust_kt":19,"vis_sm":10,"metar":"KSAT 021651Z 14014G19KT 10SM FEW028 FEW250 22/15 A3002 RMK AO2 SLP151 T02170150"},{"t":11.85,"temp_c":24.4,"dew_c":13.3,"cover":0.2,"clouds":[["FEW",3800],["FEW",25000]],"cloud_base_ft":3800,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":18,"wind_dir":140,"gust_kt":26,"vis_sm":10,"metar":"KSAT 021751Z 14018G26KT 10SM FEW038 FEW250 24/13 A3000 RMK AO2 PK WND 13026/1751 SLP144 T02440133 10244 20156 58012"},{"t":12.85,"temp_c":26.7,"dew_c":12.2,"cover":0.2,"clouds":[["FEW",4300],["FEW",25000]],"cloud_base_ft":4300,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":20,"wind_dir":130,"gust_kt":26,"vis_sm":10,"metar":"KSAT 021851Z 13020G26KT 10SM FEW043 FEW250 27/12 A2996 RMK AO2 PK WND 15029/1830 SLP128 T02670122"},{"t":13.85,"temp_c":27.2,"dew_c":12.8,"cover":0.2,"clouds":[["FEW",5500],["FEW",25000]],"cloud_base_ft":5500,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":17,"wind_dir":140,"gust_kt":27,"vis_sm":10,"metar":"KSAT 021951Z 14017G27KT 10SM FEW055 FEW250 27/13 A2991 RMK AO2 PK WND 13031/1923 SLP111 T02720128"},{"t":14.85,"temp_c":27.8,"dew_c":12.2,"cover":0.2,"clouds":[["FEW",6000]],"cloud_base_ft":6000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":16,"wind_dir":150,"gust_kt":28,"vis_sm":10,"metar":"KSAT 022051Z 15016G28KT 10SM FEW060 28/12 A2988 RMK AO2 PK WND 15028/2005 SLP102 T02780122 56041"},{"t":15.85,"temp_c":27.8,"dew_c":12.8,"cover":0.45,"clouds":[["SCT",6000]],"cloud_base_ft":6000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":18,"wind_dir":150,"gust_kt":28,"vis_sm":10,"metar":"KSAT 022151Z 15018G28KT 10SM SCT060 28/13 A2987 RMK AO2 PK WND 16029/2131 SLP097 T02780128"},{"t":16.85,"temp_c":26.7,"dew_c":13.9,"cover":0.45,"clouds":[["SCT",6500]],"cloud_base_ft":6500,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":16,"wind_dir":160,"gust_kt":25,"vis_sm":10,"metar":"KSAT 022251Z 16016G25KT 10SM SCT065 27/14 A2986 RMK AO2 PK WND 15026/2215 SLP097 T02670139"},{"t":17.85,"temp_c":25.6,"dew_c":14.4,"cover":0.2,"clouds":[["FEW",6000]],"cloud_base_ft":6000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":14,"wind_dir":140,"gust_kt":24,"vis_sm":10,"metar":"KSAT 022351Z 14014G24KT 10SM FEW060 26/14 A2986 RMK AO2 PK WND 16027/2327 SLP097 T02560144 10283 20244 56005"},{"t":18.85,"temp_c":23.9,"dew_c":14.4,"cover":0.2,"clouds":[["FEW",6500]],"cloud_base_ft":6500,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":15,"wind_dir":150,"gust_kt":22,"vis_sm":10,"metar":"KSAT 030051Z 15015G22KT 10SM FEW065 24/14 A2989 RMK AO2 PK WND 15028/0032 SLP106 T02390144"},{"t":19.85,"temp_c":22.2,"dew_c":15.0,"cover":0.2,"clouds":[["FEW",6000]],"cloud_base_ft":6000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":17,"wind_dir":130,"gust_kt":23,"vis_sm":10,"metar":"KSAT 030151Z 13017G23KT 10SM FEW060 22/15 A2991 RMK AO2 SLP112 T02220150"},{"t":20.85,"temp_c":21.1,"dew_c":16.1,"cover":0.45,"clouds":[["SCT",3000],["SCT",6000]],"cloud_base_ft":3000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":12,"wind_dir":130,"gust_kt":null,"vis_sm":10,"metar":"KSAT 030251Z 13012KT 10SM SCT030 SCT060 21/16 A2993 RMK AO2 SLP121 T02110161 53022"},{"t":21.85,"temp_c":20.6,"dew_c":16.7,"cover":1.0,"clouds":[["SCT",3000],["OVC",3800]],"cloud_base_ft":3000,"ceiling_ft":3800,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":130,"gust_kt":null,"vis_sm":10,"metar":"KSAT 030351Z 13013KT 10SM SCT030 OVC038 21/17 A2995 RMK AO2 SLP126 T02060167"},{"t":22.467,"temp_c":20.6,"dew_c":16.7,"cover":0.78,"clouds":[["BKN",2200],["BKN",6000]],"cloud_base_ft":2200,"ceiling_ft":2200,"wx":[],"precip_in":0.0,"wind_kt":9,"wind_dir":150,"gust_kt":null,"vis_sm":10,"metar":"KSAT 030428Z 15009KT 10SM BKN022 BKN060 21/17 A2995 RMK AO2 T02060167"},{"t":23.85,"temp_c":20.0,"dew_c":17.2,"cover":1.0,"clouds":[["OVC",1700]],"cloud_base_ft":1700,"ceiling_ft":1700,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":150,"gust_kt":null,"vis_sm":10,"metar":"KSAT 030551Z 15011KT 10SM OVC017 20/17 A2994 RMK AO2 SLP123 T02000172 10256 20200 402830156 50003"}]}
|
weather/2025-03-05_LZ_NORTH.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"schema":"gridsim.weather/v1","point":"LZ_NORTH","date":"2025-03-05","tz":"America/Chicago","station":"DFW","airport":"Dallas/Fort Worth International","lat":32.8998,"lon":-97.0403,"source":"Iowa Environmental Mesonet (IEM), Iowa State University: ASOS/AWOS archive (https://mesonet.agron.iastate.edu/request/download.phtml). Public domain observations.","obs":[{"t":-2.117,"temp_c":11.7,"dew_c":1.1,"cover":0.2,"clouds":[["FEW",5500]],"cloud_base_ft":5500,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":29,"wind_dir":310,"gust_kt":42,"vis_sm":10,"metar":"KDFW 050353Z 31029G42KT 10SM FEW055 12/01 A2973 RMK AO2 PK WND 32043/0255 PRESRR SLP064 T01170011"},{"t":-1.117,"temp_c":10.0,"dew_c":-0.6,"cover":0.2,"clouds":[["FEW",5500]],"cloud_base_ft":5500,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":25,"wind_dir":310,"gust_kt":35,"vis_sm":10,"metar":"KDFW 050453Z 31025G35KT 10SM FEW055 10/M01 A2978 RMK A02 PK WND 33048/0408 SLP079 T01001006"},{"t":-0.117,"temp_c":9.4,"dew_c":0.0,"cover":0.2,"clouds":[["FEW",4500]],"cloud_base_ft":4500,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":18,"wind_dir":320,"gust_kt":36,"vis_sm":10,"metar":"KDFW 050553Z 32018G36KT 10SM FEW045 09/00 A2982 RMK A02 PK WND 31050/0520 SLP094 T00940000 10156 20094 402170094 51046"},{"t":0.883,"temp_c":9.4,"dew_c":0.0,"cover":0.2,"clouds":[["FEW",4500]],"cloud_base_ft":4500,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":15,"wind_dir":310,"gust_kt":25,"vis_sm":10,"metar":"KDFW 050653Z 31015G25KT 10SM FEW045 09/00 A2986 RMK A02 PK WND 33030/0600 SLP106 T00940000"},{"t":1.883,"temp_c":8.9,"dew_c":0.0,"cover":0.2,"clouds":[["FEW",4500]],"cloud_base_ft":4500,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":16,"wind_dir":320,"gust_kt":24,"vis_sm":10,"metar":"KDFW 050753Z 32016G24KT 10SM FEW045 09/00 A2988 RMK A02 PK WND 31026/0712 SLP113 T00890000"},{"t":2.883,"temp_c":8.3,"dew_c":0.0,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":17,"wind_dir":330,"gust_kt":28,"vis_sm":10,"metar":"KDFW 050853Z 33017G28KT 10SM CLR 08/00 A2989 RMK A02 PK WND 35031/0836 SLP113 T00830000 51023"},{"t":3.883,"temp_c":7.8,"dew_c":-0.6,"cover":0.2,"clouds":[["FEW",12000]],"cloud_base_ft":12000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":20,"wind_dir":320,"gust_kt":31,"vis_sm":10,"metar":"KDFW 050953Z 32020G31KT 10SM FEW120 08/M01 A2993 RMK A02 PK WND 33031/0950 SLP112 T00781006"},{"t":4.883,"temp_c":7.2,"dew_c":-1.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":17,"wind_dir":330,"gust_kt":25,"vis_sm":10,"metar":"KDFW 051053Z 33017G25KT 10SM CLR 07/M02 A2995 RMK A02 PK WND 33033/1006 SLP138 T00721017"},{"t":5.883,"temp_c":6.7,"dew_c":-1.7,"cover":0.2,"clouds":[["FEW",12000]],"cloud_base_ft":12000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":16,"wind_dir":310,"gust_kt":24,"vis_sm":10,"metar":"KDFW 051153Z COR 31016G24KT 10SM FEW120 07/M02 A2999 RMK A02 PK WND SLP152 70011 T00671017 10094 20067 53032"},{"t":6.883,"temp_c":6.1,"dew_c":-2.2,"cover":0.2,"clouds":[["FEW",12000]],"cloud_base_ft":12000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":14,"wind_dir":300,"gust_kt":null,"vis_sm":10,"metar":"KDFW 051253Z 30014KT 10SM FEW120 06/M02 A3002 RMK A02 SLP163 T00611022"},{"t":7.883,"temp_c":7.0,"dew_c":-3.0,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":21,"wind_dir":320,"gust_kt":26,"vis_sm":10,"metar":"KDFW 051353Z 32021G26KT 10SM CLR 07/M03 A3005 RMK AO2 PK WND 30028/1323 SLP173 T006710033"},{"t":8.883,"temp_c":7.8,"dew_c":-3.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":22,"wind_dir":320,"gust_kt":34,"vis_sm":10,"metar":"KDFW 051453Z 32022G34KT 10SM CLR 08/M04 A3007 RMK AO2 PK WND 33034/1448 SLP183 T00781039 51029"},{"t":9.883,"temp_c":9.4,"dew_c":-4.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":21,"wind_dir":320,"gust_kt":null,"vis_sm":10,"metar":"KDFW 051553Z 32021KT 10SM CLR 09/M04 A3009 RMK AO2 PK WND 33030/1457 SLP189 T00941044"},{"t":10.883,"temp_c":11.1,"dew_c":-4.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":18,"wind_dir":320,"gust_kt":null,"vis_sm":10,"metar":"KDFW 051653Z 32018KT 10SM CLR 11/M04 A3010 RMK AO2 PK WND 34029/1559 SLP191 T01111044"},{"t":11.883,"temp_c":12.2,"dew_c":-5.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":20,"wind_dir":330,"gust_kt":30,"vis_sm":10,"metar":"KDFW 051753Z 33020G30KT 10SM CLR 12/M06 A3010 RMK AO2 PK WND 33031/1701 SLP191 T01221056 10122 20061 51009"},{"t":12.883,"temp_c":13.3,"dew_c":-5.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":17,"wind_dir":310,"gust_kt":27,"vis_sm":10,"metar":"KDFW 051853Z 31017G27KT 10SM CLR 13/M06 A3008 RMK AO2 PK WND 32030/1836 SLP185 T01331056"},{"t":13.883,"temp_c":15.0,"dew_c":-6.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":17,"wind_dir":320,"gust_kt":27,"vis_sm":10,"metar":"KDFW 051953Z 32017G27KT 10SM CLR 15/M07 A3007 RMK AO2 PK WND 32028/1855 SLP181 T01501067"},{"t":14.883,"temp_c":16.1,"dew_c":-6.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":340,"gust_kt":null,"vis_sm":10,"metar":"KDFW 052053Z 34013KT 10SM CLR 16/M06 A3007 RMK AO2 PK WND 33026/2003 SLP179 T01611061 56012"},{"t":15.883,"temp_c":16.1,"dew_c":-7.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":15,"wind_dir":340,"gust_kt":23,"vis_sm":10,"metar":"KDFW 052153Z 34015G23KT 10SM CLR 16/M07 A3004 RMK AO2 SLP171 T01611072"},{"t":16.883,"temp_c":16.1,"dew_c":-7.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":330,"gust_kt":null,"vis_sm":10,"metar":"KDFW 052253Z 33013KT 10SM CLR 16/M07 A3004 RMK AO2 SLP170 T01611072"},{"t":17.883,"temp_c":15.0,"dew_c":-6.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":320,"gust_kt":null,"vis_sm":10,"metar":"KDFW 052353Z 32011KT 10SM CLR 15/M07 A3005 RMK AO2 SLP172 T01501067 10167 20122 55007"},{"t":18.883,"temp_c":12.2,"dew_c":-5.0,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":7,"wind_dir":350,"gust_kt":null,"vis_sm":10,"metar":"KDFW 060053Z 35007KT 10SM FEW250 12/M05 A3004 RMK AO2 SLP170 T01221050"},{"t":19.883,"temp_c":12.2,"dew_c":-6.1,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":7,"wind_dir":320,"gust_kt":null,"vis_sm":10,"metar":"KDFW 060153Z 32007KT 10SM FEW250 12/M06 A3006 RMK AO2 SLP179 T01221061"},{"t":20.883,"temp_c":12.2,"dew_c":-6.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":320,"gust_kt":null,"vis_sm":10,"metar":"KDFW 060253Z 32005KT 10SM CLR 12/M06 A3008 RMK AO2 SLP185 T01221061 53012"},{"t":21.883,"temp_c":9.4,"dew_c":-4.4,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":330,"gust_kt":null,"vis_sm":10,"metar":"KDFW 060353Z 33004KT 10SM FEW250 09/M04 A3008 RMK AO2 SLP186 T00941044"},{"t":22.883,"temp_c":9.4,"dew_c":-3.9,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":0,"gust_kt":null,"vis_sm":10,"metar":"KDFW 060453Z 00000KT 10SM FEW250 09/M04 A3008 RMK AO2 SLP183 T00941039"},{"t":23.883,"temp_c":8.9,"dew_c":-2.8,"cover":0.78,"clouds":[["BKN",25000]],"cloud_base_ft":25000,"ceiling_ft":25000,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":230,"gust_kt":null,"vis_sm":10,"metar":"KDFW 060553Z 23004KT 10SM BKN250 09/M03 A3008 RMK AO2 SLP183 T00891028 10150 20078 401670061 58002"},{"t":24.883,"temp_c":6.7,"dew_c":-1.1,"cover":0.78,"clouds":[["BKN",25000]],"cloud_base_ft":25000,"ceiling_ft":25000,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":0,"gust_kt":null,"vis_sm":10,"metar":"KDFW 060653Z 00000KT 10SM BKN250 07/M01 A3006 RMK AO2 SLP179 T00671011"},{"t":25.883,"temp_c":6.7,"dew_c":-2.2,"cover":0.78,"clouds":[["BKN",25000]],"cloud_base_ft":25000,"ceiling_ft":25000,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":0,"gust_kt":null,"vis_sm":10,"metar":"KDFW 060753Z 00000KT 10SM BKN250 07/M02 A3007 RMK AO2 SLP179 T00671022"},{"t":26.883,"temp_c":6.1,"dew_c":-1.1,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":70,"gust_kt":null,"vis_sm":10,"metar":"KDFW 060853Z 07004KT 10SM FEW250 06/M01 A3005 RMK AO2 SLP174 T00611011 58008"}],"hourly":[{"t":0.883,"temp_c":9.4,"dew_c":0.0,"cover":0.2,"clouds":[["FEW",4500]],"cloud_base_ft":4500,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":15,"wind_dir":310,"gust_kt":25,"vis_sm":10,"metar":"KDFW 050653Z 31015G25KT 10SM FEW045 09/00 A2986 RMK A02 PK WND 33030/0600 SLP106 T00940000"},{"t":1.883,"temp_c":8.9,"dew_c":0.0,"cover":0.2,"clouds":[["FEW",4500]],"cloud_base_ft":4500,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":16,"wind_dir":320,"gust_kt":24,"vis_sm":10,"metar":"KDFW 050753Z 32016G24KT 10SM FEW045 09/00 A2988 RMK A02 PK WND 31026/0712 SLP113 T00890000"},{"t":2.883,"temp_c":8.3,"dew_c":0.0,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":17,"wind_dir":330,"gust_kt":28,"vis_sm":10,"metar":"KDFW 050853Z 33017G28KT 10SM CLR 08/00 A2989 RMK A02 PK WND 35031/0836 SLP113 T00830000 51023"},{"t":3.883,"temp_c":7.8,"dew_c":-0.6,"cover":0.2,"clouds":[["FEW",12000]],"cloud_base_ft":12000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":20,"wind_dir":320,"gust_kt":31,"vis_sm":10,"metar":"KDFW 050953Z 32020G31KT 10SM FEW120 08/M01 A2993 RMK A02 PK WND 33031/0950 SLP112 T00781006"},{"t":4.883,"temp_c":7.2,"dew_c":-1.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":17,"wind_dir":330,"gust_kt":25,"vis_sm":10,"metar":"KDFW 051053Z 33017G25KT 10SM CLR 07/M02 A2995 RMK A02 PK WND 33033/1006 SLP138 T00721017"},{"t":5.883,"temp_c":6.7,"dew_c":-1.7,"cover":0.2,"clouds":[["FEW",12000]],"cloud_base_ft":12000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":16,"wind_dir":310,"gust_kt":24,"vis_sm":10,"metar":"KDFW 051153Z COR 31016G24KT 10SM FEW120 07/M02 A2999 RMK A02 PK WND SLP152 70011 T00671017 10094 20067 53032"},{"t":6.883,"temp_c":6.1,"dew_c":-2.2,"cover":0.2,"clouds":[["FEW",12000]],"cloud_base_ft":12000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":14,"wind_dir":300,"gust_kt":null,"vis_sm":10,"metar":"KDFW 051253Z 30014KT 10SM FEW120 06/M02 A3002 RMK A02 SLP163 T00611022"},{"t":7.883,"temp_c":7.0,"dew_c":-3.0,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":21,"wind_dir":320,"gust_kt":26,"vis_sm":10,"metar":"KDFW 051353Z 32021G26KT 10SM CLR 07/M03 A3005 RMK AO2 PK WND 30028/1323 SLP173 T006710033"},{"t":8.883,"temp_c":7.8,"dew_c":-3.9,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":22,"wind_dir":320,"gust_kt":34,"vis_sm":10,"metar":"KDFW 051453Z 32022G34KT 10SM CLR 08/M04 A3007 RMK AO2 PK WND 33034/1448 SLP183 T00781039 51029"},{"t":9.883,"temp_c":9.4,"dew_c":-4.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":21,"wind_dir":320,"gust_kt":null,"vis_sm":10,"metar":"KDFW 051553Z 32021KT 10SM CLR 09/M04 A3009 RMK AO2 PK WND 33030/1457 SLP189 T00941044"},{"t":10.883,"temp_c":11.1,"dew_c":-4.4,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":18,"wind_dir":320,"gust_kt":null,"vis_sm":10,"metar":"KDFW 051653Z 32018KT 10SM CLR 11/M04 A3010 RMK AO2 PK WND 34029/1559 SLP191 T01111044"},{"t":11.883,"temp_c":12.2,"dew_c":-5.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":20,"wind_dir":330,"gust_kt":30,"vis_sm":10,"metar":"KDFW 051753Z 33020G30KT 10SM CLR 12/M06 A3010 RMK AO2 PK WND 33031/1701 SLP191 T01221056 10122 20061 51009"},{"t":12.883,"temp_c":13.3,"dew_c":-5.6,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":17,"wind_dir":310,"gust_kt":27,"vis_sm":10,"metar":"KDFW 051853Z 31017G27KT 10SM CLR 13/M06 A3008 RMK AO2 PK WND 32030/1836 SLP185 T01331056"},{"t":13.883,"temp_c":15.0,"dew_c":-6.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":17,"wind_dir":320,"gust_kt":27,"vis_sm":10,"metar":"KDFW 051953Z 32017G27KT 10SM CLR 15/M07 A3007 RMK AO2 PK WND 32028/1855 SLP181 T01501067"},{"t":14.883,"temp_c":16.1,"dew_c":-6.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":340,"gust_kt":null,"vis_sm":10,"metar":"KDFW 052053Z 34013KT 10SM CLR 16/M06 A3007 RMK AO2 PK WND 33026/2003 SLP179 T01611061 56012"},{"t":15.883,"temp_c":16.1,"dew_c":-7.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":15,"wind_dir":340,"gust_kt":23,"vis_sm":10,"metar":"KDFW 052153Z 34015G23KT 10SM CLR 16/M07 A3004 RMK AO2 SLP171 T01611072"},{"t":16.883,"temp_c":16.1,"dew_c":-7.2,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":13,"wind_dir":330,"gust_kt":null,"vis_sm":10,"metar":"KDFW 052253Z 33013KT 10SM CLR 16/M07 A3004 RMK AO2 SLP170 T01611072"},{"t":17.883,"temp_c":15.0,"dew_c":-6.7,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":11,"wind_dir":320,"gust_kt":null,"vis_sm":10,"metar":"KDFW 052353Z 32011KT 10SM CLR 15/M07 A3005 RMK AO2 SLP172 T01501067 10167 20122 55007"},{"t":18.883,"temp_c":12.2,"dew_c":-5.0,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":7,"wind_dir":350,"gust_kt":null,"vis_sm":10,"metar":"KDFW 060053Z 35007KT 10SM FEW250 12/M05 A3004 RMK AO2 SLP170 T01221050"},{"t":19.883,"temp_c":12.2,"dew_c":-6.1,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":7,"wind_dir":320,"gust_kt":null,"vis_sm":10,"metar":"KDFW 060153Z 32007KT 10SM FEW250 12/M06 A3006 RMK AO2 SLP179 T01221061"},{"t":20.883,"temp_c":12.2,"dew_c":-6.1,"cover":0.0,"clouds":[["CLR",null]],"cloud_base_ft":null,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":5,"wind_dir":320,"gust_kt":null,"vis_sm":10,"metar":"KDFW 060253Z 32005KT 10SM CLR 12/M06 A3008 RMK AO2 SLP185 T01221061 53012"},{"t":21.883,"temp_c":9.4,"dew_c":-4.4,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":330,"gust_kt":null,"vis_sm":10,"metar":"KDFW 060353Z 33004KT 10SM FEW250 09/M04 A3008 RMK AO2 SLP186 T00941044"},{"t":22.883,"temp_c":9.4,"dew_c":-3.9,"cover":0.2,"clouds":[["FEW",25000]],"cloud_base_ft":25000,"ceiling_ft":null,"wx":[],"precip_in":0.0,"wind_kt":0,"wind_dir":0,"gust_kt":null,"vis_sm":10,"metar":"KDFW 060453Z 00000KT 10SM FEW250 09/M04 A3008 RMK AO2 SLP183 T00941039"},{"t":23.883,"temp_c":8.9,"dew_c":-2.8,"cover":0.78,"clouds":[["BKN",25000]],"cloud_base_ft":25000,"ceiling_ft":25000,"wx":[],"precip_in":0.0,"wind_kt":4,"wind_dir":230,"gust_kt":null,"vis_sm":10,"metar":"KDFW 060553Z 23004KT 10SM BKN250 09/M03 A3008 RMK AO2 SLP183 T00891028 10150 20078 401670061 58002"}]}
|