How cambecc/earth works
Earth is a browser-based global weather visualization. A visitor opens the map, whose configuration selects a globe view and data layer; the application builds/interpolates a field and renders animated particles and optional colored overlays. The README documents hash-persisted settings and event-driven updates, plus weather, ocean-current, projection, and map-data capabilities. The sampled sources show rendering and overlay coordination, but not the complete initialization or networking code, so uncertain internal links are omitted.
Main entry points: earth.js Earth application · products.js Weather products · index.html Map page · il8n.json Localized content
Components 18
Browser experience
- Map page
public/index.html - Earth application
public/libs/earth/1.0.0/earth.js - Localized content
public/templates/il8n.json
View and configuration
- Map configuration
public/libs/earth/1.0.0/earth.js - URL hash state
public/libs/earth/1.0.0/earth.js - Globe projections
public/libs/earth/1.0.0/globes.js
Geospatial data
- TopoJSON maps
public/data/earth-topo.json - Mobile map data
public/data/earth-topo-mobile.json - Weather products
public/libs/earth/1.0.0/products.js - GFS wind grid
public/data/weather/current/current-wind-surface-level-gfs-1.0.json - OSCAR currents
public/data/oscar/20140131-surface-currents-oscar-0.33.json - Current catalog
public/data/oscar/catalog.json
Visualization
- Grid and interpolation
public/libs/earth/1.0.0/products.js - Wind field
public/libs/earth/1.0.0/earth.js - Particle animation
public/libs/earth/1.0.0/earth.js - Colored overlay
public/libs/earth/1.0.0/earth.js - Location details
public/libs/earth/1.0.0/earth.js
Other components
- Visitor
Connections 18
- Visitor → Map page: opens
- Map page → Earth application: loads
- Earth application → Localized content: reads
- Earth application → Map configuration: initializes
- Map configuration → URL hash state: syncs state
- Map configuration → Globe projections: sets view
- Earth application → TopoJSON maps: loads map
- Earth application → Mobile map data: loads map
- Earth application → Weather products: selects layer
- Weather products → GFS wind grid: reads grid
- Weather products → OSCAR currents: reads grid
- Weather products → Current catalog: looks up dates
- Weather products → Grid and interpolation: builds grid
- Grid and interpolation → Wind field: interpolates
- Wind field → Particle animation: updates animation
- Earth application → Colored overlay: dispatches updates
- Wind field → Colored overlay: supplies field
- Earth application → Location details: handles selection