ARBOR.GUIDE / REFERENCE
Arbor Landscape Studio · calculation notes
Solar/wind method version 2 · reviewed 8 October 2026. All calculations run locally in the browser. Source-informed botanical dimensions, authored growth scenarios, surveyed measurements and numerical solar geometry are different kinds of information; the interface and project format preserve those distinctions.
Coordinates, dates and observations
Plan coordinates are metres: x increases rightwards and z downwards. The site north arrow points clockwise from plan-up by northAngle. Object rotation is clockwise in the same plan. A solar bearing is measured clockwise from geographic north, so its plan bearing is solar azimuth + northAngle. Local polygon points are transformed by their object's rotation and translation. Paths, hedges, fences and walls use a polyline buffered by their stated width. Measurements concern a horizontal, level site; an imported image is a visual tracing background, not a surveyed elevation model.
The solar date is a Gregorian calendar date, with decimal local civil time and an explicit UTC offset. Include daylight saving time in the offset when applicable. No location-dependent time-zone or DST database is inferred. The calendar date controls astronomy; the separate foliage-season selector controls the canopy scenario. A winter foliage scenario with a summer solar date is allowed for a deliberate comparison and should not be mistaken for local observed phenology.
Tree measurements are optional baseline observations at design year zero. Measured height means ground to crown tip; measured crown means crown diameter, not radius. Enter a positive age consistent with the observed tree. A future design scales those observations by the corresponding change in the atlas growth curve. It does not establish that the observed individual follows that curve. Unmeasured trees use atlas-authored sizes. Planting year is relative to project year zero: a scheduled tree remains absent before that date. Initial age is its age at planting.
Solar position and daylight
solar.js implements the compact Meeus/NOAA solar-coordinate chain using Julian centuries, orbital eccentricity, apparent solar longitude, corrected obliquity, declination and the equation of time. Geometric elevation and a quadrant-safe azimuth follow from the local hour angle. This is an original implementation of those equations, not an implementation of the full NREL SPA. The numerical result describes the solar centre above an unobstructed horizon. The conventional −0.833° solar-centre threshold is used for displayed sunrise and sunset; geometric shadow calculations instead require elevation greater than zero. At very low elevation, real refraction and horizon obstructions can noticeably alter observation. NOAA calculation details, NOAA equations.
Sunrise and sunset are found by bracketing threshold crossings across the full local civil day and bisection. Continuous daylight and continuous darkness are returned explicitly at high latitude. A rise or set event outside the selected civil day is absent rather than wrapped into a misleading clock time. The displayed sunrise/sunset interval therefore differs slightly from the geometric daylight available to the shadow integrator.
The published NREL reference example for 17 October 2003, 12:30:30 local standard time, latitude 39.742476°, longitude −105.1786°, UTC−7 is used as an independent comparison. Our test allows 0.06° against its refracted elevation because this tool returns geometric elevation and omits the SPA's topocentric/refraction corrections. Sunrise and sunset are compared within two minutes. Passing that example does not give this simpler implementation SPA's stated uncertainty. Reda and Andreas, revised report, Appendix A5.
Tree envelopes and the time machine
Every placed tree resolves to a canonical species in the atlas. getGrowth() is shared with the atlas renderer and reads the same versioned, architecture-derived projection. For reference age a, development is scheduled by:
D(a) = (1 − exp(−2.4 a / maturityAge)) ^ shape.
Height is the highest woody point in the architecture at D(a). Crown width and base come from its foliage envelope. These form a lightweight ellipsoid for repeated exposure calculations. Established branch positions remain fixed as new sections extend, and section radii follow an independent deposited-wood schedule. Tree geometry buffers are updated in place. Juvenile foliage has its own emergence and retirement cohorts. The low-detail rendering is sampled from the same architecture; exposure uses the documented ellipsoid rather than individual drawn leaves. Shrubs in Studio retain explicitly entered design dimensions; their atlas views have separate age playback.
Height scales, maturity parameters, root reach, canopy clearances and artistic crown forms are authored model assumptions, not fitted yield curves or excavated root maps. The simulation does not predict the effects of pruning, mortality, damage, crowding, climate, drought, soil volume or management on future growth. Two overlapping crowns do not automatically slow one another's growth. An overlap is a useful design flag, not evidence of ecological incompatibility.
Root radius and depth come from the reference root-axis projection. Studio clips the reference depth to its selected soil boundary; it does not infer an excavated network or calculate resource-driven root exploration. Neither circle nor depth is a root-protection area, a foundation-damage prediction, or a mapped absorbing-root distribution. Observed soil restrictions and arboricultural assessments should replace these assumptions when preparing a real site specification. The atlas's cited root information explains why root geometry depends strongly on site conditions. University of Florida: natural root flare, Colorado State: understanding tree roots.
Buildings, crowns and shadows
Solid objects are vertical prisms extending from the flat ground to their entered height. Concave footprints remain concave in the point-ray test; rendering triangulates their footprints and projects the pieces. Roof pitch, roof overhangs, windows, individual pergola slats and terrain are not ray-traced. A roof in a perspective illustration does not imply that its pitched geometry is used for exposure.
For a point at the selected receiver height, a ray goes towards the sun. Its horizontal displacement at height h is the horizontal solar direction multiplied by (h − receiverHeight) / sin(elevation). Segment–polygon intersections test whether it enters a prism before that height. Buildings, walls and fences are opaque envelopes. Generic pergolas (55% obstruction), hedges (85%) and greenhouses (25%) use fixed scenario assumptions, not material performance measurements. Decorative lights, bikes and probes are excluded from shade. A nighttime sample has zero direct transmission and no drawn solar shadow.
For a tree, a quadratic ray–ellipsoid intersection yields the path length inside the crown. User canopy density is an obstruction fraction through a central vertical chord. Transmission through another chord is calculated as exp(log(1 − density) × chordLength / crownHeight). Overlapping trees multiply their transmissions. Clear stems below crown base use opaque cylinders, even when canopy density is zero. At or above crown base they no longer obstruct the receiver. The crown chord begins at the receiver height, so a point halfway through a central vertical chord receives the square root of the full-chord transmission. This is a simple homogeneous attenuation scenario, not a measured species coefficient. A drawn shadow perimeter is the analytic ellipsoid projection; its uniform display opacity is an overview of a continuously varying transmission field.
The default 0.75 density is editable. A manually selected deciduous spring/autumn/winter state multiplies it by 0.8/0.65/0.12 respectively. Winter retains an illustrative woody obstruction; evergreen density remains unchanged. No universal species-level leaf-out dates, southern-hemisphere season calendar, drought deciduousness or individual leaf gaps are inferred. Research shows meaningful variation within and between urban tree taxa and distinguishes crown-gap measurements from radiant-energy transmission. That distinction is why these visual and direct-beam assumptions are not presented as irradiance. US Forest Service: shade factors for 149 urban tree taxa.
Exposure maps and point inspection
The exposure grid contains cell centres inside the site polygon. Resolution is bounded to 8–96 cells along each bounding-box dimension; the default is 48. Each day is integrated in intervals no longer than the selected 1–60 minutes. Daylight crossings are refined by bisection, and extrema are refined to retain sub-quarter-hour polar-transition days and nights, and each interval is sampled at its midpoint. A dedicated worker yields between batches and accepts immediate termination; the calculation uses an immutable project snapshot.
- Direct sun hours: time with no model object obstructing the receiver-to-sun ray. Partial canopy obstruction counts as shade here.
- Transmitted hours: time weighted by model direct-beam transmission. Four hours at 50% transmission contribute two transmitted hours. These are direct-sun-equivalent hours, not additional clock hours.
- Geometric daylight: time with the solar centre above the horizon. It bounds both measures.
- Indoor cells: a receiver below the roof inside a house, garage, shed or greenhouse is marked occupied and excluded from outdoor means. This app does not simulate indoor daylight through glazing.
The map omits clouds, diffuse sky light, reflected light, atmospheric irradiance, nearby unmodelled obstructions, terrain horizons, air temperature, soil moisture and plant photosynthesis. It is not a lux, PAR, UV, solar-energy or thermal-comfort map. Smaller time steps and grid cells refine the numerical scenario; they cannot correct missing site measurements. Point inspection uses the same ray model as the grid so a designer can trace which objects create shade.
Conventional full-sun/part-shade vocabulary can help interpret a design, but plant response also depends on the timing and quality of light. Extension guidance describes six or more hours of direct sun as full sun, while partial-sun/partial-shade terms require context. The Studio does not infer a species survival probability from a cell's hours. University of Maryland Extension: landscape designs with native plants.
Areas and conflicts
The site polygon uses the shoelace formula for exact polygon area. Coverage is estimated on an 80 × 80 midpoint grid clipped to the boundary. Cell counts are normalized to that polygon area. Water, hard surface and remaining permeable ground form disjoint categories and sum to the site area. Water takes priority over overlapping hard surfaces; a lined pool is counted as water surface, without asserting infiltration. User permeability overrides control other ground categories. Tree crown cover is a separate overlaid percentage; it can overlap any ground type.
Small or thin objects can be undersampled by the coverage grid. Crown union is sampled instead of adding overlapping circles, so shared canopy is not double-counted. Cover is an envelope estimate and includes crown gaps. Building footprint area is another overlay, not an extra contribution to the disjoint ground total.
Conflict flags distinguish three-dimensional crown overlap from plan projections at different crown heights, crown/building intersections, model root/building proximity, boundary encroachment and overlapping buildings. They are deterministic geometric checks and have no inferred legal setback distance, root-protection standard, foundation hazard rating or competition coefficient.
Reproducible verification
Run python3 landscape/tests/science.py with the static atlas served on port 7023 (or set ATLAS_URL). It uses browser ES modules through Python Playwright and requires no Node runtime. The output is science-validation.json.
Checks include the independent solar reference; explicit UTC equivalence; polar day/night; finite coordinates at the poles and solstices; invalid dates; polygon and linear-buffer areas; clockwise north rotation; an analytical 10 m prism shadow at 45°; concave building cutouts; measured baseline scaling; all 462 atlas tree species at four ages; seasonal and overlapping-canopy transmission; site-area conservation; complete exposure of an empty site; indoor exclusion; bounded transmission; cancellation; and project immutability. These checks verify implementation contracts, not independent botanical calibration of the authored model.
Climate instruments and quality settings
Solar quality presets are Quick (24 × 24, 20 minutes), Balanced (48 × 48, 10 minutes), Detailed (72 × 72, 5 minutes). A receiver plane is 0–100 m above flat grade. At the exact roof height the receiver is outside the maximum-height prism. Point studies use five-minute intervals, so window edges are approximate. Shade contributors are listed independently and can overlap; their hours must not be added. Four-date comparisons retain the chosen geometry, foliage season and UTC offset. Calendar dates alone do not change leaf retention or DST.
Solar contours interpolate cells through piecewise-linear triangles without overshooting their samples. Exact building masks remove indoor areas from the display. Raw cells remain available. Histogram bins and means use equal-area outdoor cell centres; no visible interpolation enters the statistics. Empty/all-indoor/polar-night cases retain bounded, finite values. JSON contains hourly averages, per-cell hours, geometry settings, method version and scope. SVG/PDF legends retain the selected metric and receiver height.
Wind method 2
wind-model.js builds a horizontal, flow-aligned slice; wind-solver.js implements D2Q9 BGK collision and Guo force integration in wind-worker.js. The physical velocity includes half the force step. For quadratic drag, F / ρ = −β |u| u; raw momentum magnitude satisfies raw = |u| + β |u|² / 2. The cancellation-free correction factor is 2 / (1 + sqrt(1 + 2 β raw)). Guo's discrete forcing uses (1 − ω/2) wᵢ [(3(cᵢ − u) + 9(cᵢ·u)cᵢ)·F]. Primary paper, OpenLB equations 6.10–6.11.
The lattice inflow is 0.045. τ = 0.5 + 0.32 × (resolution − 2) / 126, and ν = (τ − 0.5) / 3. With metre cell width Δx, ν Δx / U remains constant when refining the same domain. This is a low-Reynolds-number analogue, not atmospheric CFD. Entered m/s rescales the solution; it does not reproduce atmospheric Reynolds-number changes.
Per-metre porous coefficients are 0.15 × density² for tree crowns, 0.18 × density² for shrubs, and 0.18 × (1 − porosity)² / (max(0.05, porosity)² × max(0.15, width)) for hedges/fences. Multiply by cell size and the occupied fraction from sixteen area samples. Overlaps add. All coefficients are authored scenarios, not measured plant drag or leaf-area density. Exact solid segments block lattice links as well as occupied centres. Halfway bounceback conserves mass, but obstacle position remains grid-approximate. Small porous footprints can still be unresolved and are reported.
Far-field boundaries retain equilibrium inlet/lateral populations and a zero-gradient outlet. Padding is max(8 m, 2H) upstream and laterally, and 2.5 times that downstream, where H is the largest included object height capped at 30 m and floored at 3 m. Blockage and unmodelled surroundings can affect the solution. The finite domain and boundary approximation should be examined in any interpretation.
Settling requires four successive 80-step observations, after at least 0.8 domain travel times for obstructed scenes (400 steps if empty): vector RMS change < 0.0007 relative to inflow, net boundary flux < 0.02, conservation error < 0.001, and maximum density departure < 0.12. Default budget is 2.5 domain travel times; Run longer doubles it up to 8×. These thresholds verify numerical settling, not agreement with observations. The flux check uses actual populations crossing all four faces of the interior control volume, counting corner links once. abs(net flux)/(U × interior height) is the boundary imbalance. Conservation error checks mass_after − mass_before + net_flux on that same streaming step; lateral exchange is included.
Optional neutral inflow conversion is U(z) / U(z_ref) = ln(z/z0) / ln(z_ref/z0), with both heights strictly greater than z0. Scenario roughness values are 0.03, 0.1 and 0.3 m. The default mode preserves speed at the study plane. There is no displacement-height or stability correction, and the profile adds no vertical simulation. NIST TN 1944, section 3.
Smooth fields are display interpolation with exact obstacle masks. Probes cannot interpolate through thin solid walls; streamlines stop when a segment intersects a solid barrier. JSON exports vectors, masks, blocked links, drag, inflow and numerical history. SVG/PNG/PDF report the selected speed metric, height and settling status. No turbulence closure, vertical roof bypass, gust prediction, comfort assessment or structural certification is provided.
Run python3 landscape/tests/climate.py --capture for numerical and real-browser checks, and node landscape/tests/wind-numerics.mjs for the additional conservation/refinement suite. Climate results, wind results, browser results. Independent uniform quadratic-force decay agrees within 0.01%; a reference obstacle's vector difference against the fine grid decreases from 3.4% (96 cells) to 0.6% (128 cells). These figures describe the tested numerical cases, not field accuracy.