diff --git a/docs/planetary-flow-implementation-plan.md b/docs/planetary-flow-implementation-plan.md index 58bb56f..cb214d0 100644 --- a/docs/planetary-flow-implementation-plan.md +++ b/docs/planetary-flow-implementation-plan.md @@ -41,7 +41,7 @@ Deliverables: curvature, coastline distance, source quality; - baked dynamic channel fixture from a small ERA5/OSCAR subset; - metric metadata per tile: area scale, local tangent frame, latitude/Coriolis, - projection id, and missing-data mask. + sun/moon local direction basis, projection id, and missing-data mask. Verification: @@ -99,6 +99,8 @@ Training plan: - start with ERA5 10m wind over a small temporal window; - add OSCAR surface currents as the first ocean target; - train on cube-sphere pages, not raw lat/lon; +- feed the evaluator's sun and moon direction inputs through the same + conditioning path used by training; - normalize per variable and preserve masks; - keep model identity, source versions, and normalization stats with every checkpoint. diff --git a/docs/planetary-flow-nn-architecture.md b/docs/planetary-flow-nn-architecture.md index 8053de2..17e8748 100644 --- a/docs/planetary-flow-nn-architecture.md +++ b/docs/planetary-flow-nn-architecture.md @@ -55,6 +55,11 @@ Conditioning tokens: - day-of-year Fourier features; - hour/diurnal Fourier features when using hourly atmosphere data; +- sun direction in planet-centered coordinates and local tangent coordinates; +- sun elevation/azimuth at the sample point; +- moon direction in planet-centered coordinates and local tangent coordinates; +- moon elevation/azimuth at the sample point; +- lunar phase or normalized sun-moon angle; - lead time; - layer id: ocean surface, atmosphere near-surface, or pressure level; - dataset/model/provenance id embedding; @@ -64,6 +69,15 @@ Do not make elevation the protagonist. It is one channel group. The dynamic state and time phase are not optional decoration; they are the difference between a flow model and a coastline horoscope. +Sun and moon conditioning are evaluator inputs, not derived afterthoughts. The +model should receive the same celestial forcing basis the runtime evaluator will +use: global direction vectors for coherent planetary phase, local elevation and +azimuth for terrain/atmosphere response, and lunar phase/sun-moon geometry for +tidal and coastal-current regimes. Early atmosphere training can mostly learn +from sun terms and calendar/hour features. Ocean training should keep moon terms +present from the start so the packet schema does not need surgery when tides +stop being optional. + ## FlowNet-S: Local Baseline Purpose: prove ingestion, tangent-frame targets, stochastic heads, calibration, @@ -84,7 +98,7 @@ encoder: stage 3: downsample + 3 residual blocks, width 192 conditioning: - FiLM or adaptive layer norm from time/layer/LOD embeddings + FiLM or adaptive layer norm from celestial/time/layer/LOD embeddings decoder: FPN/U-Net upsample to 64x64 diff --git a/docs/planetary-flow-organ.md b/docs/planetary-flow-organ.md index ed77bda..2ec2842 100644 --- a/docs/planetary-flow-organ.md +++ b/docs/planetary-flow-organ.md @@ -25,8 +25,9 @@ schema. Runtime inference may later move to a dedicated ML package, but the engine owns the field contract that clients consume. Inputs: cube-sphere tile address, projection metadata, static relief/bathymetry, -land/sea mask, latitude/Coriolis features, calendar/season phase, optional -recent atmosphere/ocean state, and dataset provenance/version. +land/sea mask, latitude/Coriolis features, calendar/season phase, sun and moon +directions in planet/global and local tangent bases, optional recent +atmosphere/ocean state, and dataset provenance/version. Outputs: bounded stochastic advection parameter tiles for atmosphere and ocean surface. The first output schema should support mean velocity, covariance or @@ -70,8 +71,8 @@ pages with stochastic advection parameters instead of authored brush evidence. - Cube-sphere tile identity is the runtime domain. Lat-long is only source data layout or debug view. - Static relief alone is not a sufficient predictor. Bathymetry/topography can - shape flow, but dynamic atmosphere/ocean state and time conditioning are real - inputs. + shape flow, but dynamic atmosphere/ocean state, time conditioning, and + sun/moon forcing are real inputs. - A stochastic output must expose uncertainty. A mean vector without dispersion is a visualization convenience, not the organ. - Conservative LOD summaries remain renderable. Missing high-resolution child @@ -89,6 +90,7 @@ transition-matrix targets: ```text FlowTilePacket Domain: CubeTileKey, projection id, cell spacing, time basis + Celestial: sun/moon direction, local elevation/azimuth, lunar phase Layer: oceanSurface | atmosphereNearSurface | atmospherePressureLevel MeanVelocity: tangent-space u/v per sample Diffusivity: symmetric 2x2 tangent covariance or log-Cholesky parameters @@ -210,8 +212,9 @@ the result beats calibrated covariance and ensemble heads. 4. Train a single-tile local model. Inputs are multi-channel multiscale crops around a target cell: relief, - slope, land/sea, Coriolis/latitude, season phase, and recent dynamic fields. - Output mean velocity plus diagonal covariance. + slope, land/sea, Coriolis/latitude, season phase, sun/moon direction, local + celestial elevation/azimuth, lunar phase, and recent dynamic fields. Output + mean velocity plus diagonal covariance. 5. Add cross-tile and parent/child context. Replace pure crops with cube-sphere graph adjacency and LOD-aware message diff --git a/state/map.yaml b/state/map.yaml index f05cc55..62e77ab 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -137,6 +137,10 @@ next_actions: transformer blocks, and FlowNet-T (150-300M params) as an offline teacher only if global coherence needs it. Do not let an oversized teacher become the runtime authority before the packet contract and LOD path are proven. + Sun and moon direction are first-class conditioning inputs to both training + and runtime evaluation, carried in planet/global and local tangent bases so + atmosphere, insolation, tides, and coastal-current regimes do not become + hidden side channels. - Extend the D3D12 field packet/resource resolver beyond its first structured/curve-buffer cut. Current contracts, DSL, and renderer registry can validate and plan resource-backed TubeField packets, import shared GPU