In this section
- GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v8 Page render · globalgrid2050 / repd_grid_atlasv8/index.html lines 1–267
- Fetch UK Railways storage · globalgrid2050 / repd_grid_atlasv8/scripts/fetch_uk_railways.py lines 1–81
- Fetch UK Roads storage · globalgrid2050 / repd_grid_atlasv8/scripts/fetch_uk_roads.py lines 1–85
- GlobalGrid2050 Sync Promoted GridAtlas V9 storage · globalgrid2050 / scripts/202608300232-sync-promoted-gridatlas-v9.py lines 1–265
GlobalGrid2050 — Renewable Energy Planning Database (REPD) Grid Atlas v8 Page
A web page that draws grid 400kV, grid 275kV, grid 220kV and grid 132kV. Published at https://globalgrid2050.com/repd_grid_atlasv8/.
Set aside from the main view: 98% of its lines are the same as atlas/releases/202608292311-atlas-v9/index.html (gridatlas), which stays. (near-copy-of, proposed by families.py). 98% of lines shared with Releases — Atlas V9 Page; read that one first. All set-aside files, with reasons. Nothing was deleted.
Evidence
- line-jaccard 0.9831 to gridatlas@98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5 atlas/releases/202608292311-atlas-v9/index.html:1-271 0b27ff625f14a5dcccaca4901f481d06cf58e56c
- sha256 241d73b19e88febf5df34bfc07e16170ead5cb9ea92476e3479d5a04d9ec35f1
- target sha256 87a3aaf463843ce33ed5c151096395715cbc80f2575bcb7208f271e94d2ec467
- group of 4 (identity.json near-copy edges >= 0.9)
- canonical rule: reachable, newest stamp, core repo, most lines
renderglobalgrid2050 / repd_grid_atlasv8/index.html · lines 1–267 of 267 · Entry point
- What it does
- It draws grid 400kV, grid 275kV, grid 220kV and grid 132kV. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV.
- Inputs & outputs
- In: GeoJSON file grid_400kv.geojson; GeoJSON file grid_275kv.geojson; GeoJSON file grid_220kv.geojson; GeoJSON file grid_132kv.geojson; GeoJSON file grid_66kv.geojson; GeoJSON file grid_11kv_ukpn.geojson; GeoJSON file grid_substations.geojson; GeoJSON file power_plants.geojson. Out: web page. Voltage levels named: 400kV, 275kV, 220kV, 132kV, 66kV, 11kV.
- Downstream impact
- Used directly by 73 files: GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V6 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v6/); GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V7 Page (globalgrid2050, https://globalgrid2050.com/solar-bess-topology-v7/); Links (globalgrid2050); Build Atlas V9 Company Renewable Energy Planning Database (REPD) Links (code-generator); and 69 more. Reached from 457 other entry points, including Code Generator — Index Page (code-generator, https://ventusltd.github.io/code-generator/); Generate (code-generator, https://ventusltd.github.io/code-generator/); Pilot (cosmic, https://ventusltd.github.io/cosmic/tools/explore/theme/pilot.html). It is itself an entry point, published at https://globalgrid2050.com/repd_grid_atlasv8/.
- What it achieves
- UK Region v8 (Experimental). Its code works with 100 kW, 11 kV and 132 kV.
- Why it matters
- Loaded by the Solar Battery Energy Storage System (BESS) Topology V6 page at https://globalgrid2050.com/solar-bess-topology-v6/ and 33 other pages. Also imported by 37 files, including Links, Build Atlas V9 Company Renewable Energy Planning Database (REPD) Links and GlobalGrid2050 Catalogue GridAtlas V9, from Code Generator, Cosmic, Galaxies Wafers and others. Checked by 2 tests, including Test Bounded Companies House.
- Application
- globalgrid2050 · repd_grid_atlasv8 · page
- Uses
- Ventus v6 (stylesheet), Ventus Corev8engine (script src), https://cdn.jsdelivr.net/npm/maplibre-gl@3.6.2/dist/maplibre-gl.css, https://cdn.jsdelivr.net/npm/maplibre-gl@3.6.2/dist/maplibre-gl.js
- Used by
- linked from GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V6 Page (link), linked from GlobalGrid2050 — Solar Battery Energy Storage System (BESS) Topology V7 Page (link), named by URL in Links (estate URL), named by URL in Build Atlas V9 Company Renewable Energy Planning Database (REPD) Links (estate URL), named by URL in Live Sandbox — Blank Canvas Page (estate URL), named by URL in Live Sandbox — Football One Card Page (estate URL), named by URL in GlobalGrid2050 Catalogue GridAtlas V9 (estate URL), named by URL in Atlas Receiver V9 7 (estate URL), and 65 more, mentioned in Link Targets (comment link)
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 repd_grid_atlasv8/index.html:1-267 · blob 278c3f55d3b61af9d13417c99bfb558374131143 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>GlobalGrid2050 | UK Region v8 (Experimental)</title>
<link href="https://cdn.jsdelivr.net/npm/maplibre-gl@3.6.2/dist/maplibre-gl.css" rel="stylesheet" />
<link href="ventusv8.css" rel="stylesheet" />
</head>
<body>
<div id="fatal-banner">CRITICAL ERROR: SYSTEM DEPENDENCIES FAILED TO LOAD</div>
<button id="btn-fullscreen-exit" onclick="exitFullscreen()">✕ Exit</button>
<div id="fs-curtain-tab">⬇ Layers</div>
<div id="fs-curtain"><div id="fs-curtain-keys"></div></div>
<div id="fs-letterhead">
<div class="ventus-main">Ventus</div>
<div class="ventus-sub">Cables & Connectivity®</div>
</div>
<div class="dashboard">
<div class="hud-header">
<div>
<small style="color:#888">SYSTEM TIME</small><br>
<span class="hud-val" id="clock">--:--:--</span><br>
<span id="date" style="font-size: 11px; color: #888;">--/--/----</span>
</div>
<div class="ventus-brand">
<div class="ventus-main">Ventus</div>
<div class="ventus-sub">Cables & Connectivity®</div>
</div>
<div style="text-align:right"><small style="color:#888">2050 TARGET</small><br><span class="hud-val" id="days" style="color:#ff9d00">-- DAYS</span></div>
</div>
<div class="map-container" id="map-container">
<div id="map"></div>
<div class="custom-map-attrib">
Data © <a href="https://www.openstreetmap.org/copyright" target="_blank" rel="noopener noreferrer">OpenStreetMap contributors</a> | © CARTO | EV data © <a href="https://openchargemap.org" target="_blank" rel="noopener noreferrer">Open Charge Map</a>
</div>
<button id="btn-fullscreen" onclick="enterFullscreen()" title="Fullscreen">⛶</button>
<div class="search-bar-wrapper">
<div style="position:relative">
<input class="search-input" id="search-input" type="text" placeholder="Search project name..." autocomplete="off" />
<div class="search-results" id="search-results"></div>
</div>
<button class="search-btn" id="search-btn">GO</button>
</div>
<div class="map-controls">
<button class="map-ctrl-btn" id="btn-export">⬇ Export CSV</button>
<button class="map-ctrl-btn" id="btn-radius">◎ Radius Search</button>
<button class="map-ctrl-btn" id="btn-radius-area">◵ Radius Area</button>
<button class="map-ctrl-btn" id="btn-zonedraw">⬡ Poly Zone</button>
<button class="map-ctrl-btn" id="btn-status">◑ Status Colours</button>
<button class="map-ctrl-btn" id="btn-measure">📏 Measure</button>
</div>
<div class="radius-popup" id="radius-popup">
<label>Radius from click</label>
<div class="radius-input-row">
<input type="number" id="radius-input" value="10" min="1" max="160" step="1" />
<span class="radius-unit">km</span>
</div>
<div class="radius-hint">1 – 160 km (100 mi) · press Enter to apply</div>
</div>
<div class="radius-popup" id="radius-area-popup">
<label>Measure Area from click</label>
<div class="radius-input-row">
<input type="number" id="radius-area-input" value="1" min="0.001" max="160" step="0.001" />
<span class="radius-unit">km</span>
</div>
<div class="radius-hint">Input radius: 0.001 (1m) to 160 km</div>
</div>
<div class="radius-popup" id="zonedraw-display">
<label class="polyzone-label">🔶 Poly Zone Tool</label>
<div class="radius-input-row">
<input type="number" id="zonedraw-radius-input" value="2" min="0.1" max="160" step="0.1" />
<span class="radius-unit">km</span>
</div>
<div class="radius-hint">Set starting radius, then click map to create zone</div>
<button id="btn-zonedraw-undo" title="Undo last vertex" style="margin-top:8px;background:#ff6600;color:#000;border:none;padding:6px 12px;border-radius:4px;cursor:pointer;font-weight:bold;font-size:12px;">↩ Undo Point</button>
</div>
<div id="measure-display">
<div class="m-row" id="m-line" style="display:none">━━ <span id="m-km"></span> km | <span id="m-m"></span> m | <span id="m-mi"></span> mi</div>
<div class="m-row" id="m-perim" style="display:none">Perimeter: <span id="m-pkm"></span> km | <span id="m-pm"></span> m</div>
<div class="m-row" id="m-area" style="display:none">Area: <span id="m-km2"></span> km² | <span id="m-ha"></span> ha | <span id="m-ac"></span> ac</div>
<div class="m-hint" id="m-hint">Click to add points · Double-click to close polygon</div>
<button id="btn-measure-undo" title="Undo last point">↩ Undo Point</button>
</div>
<div id="polyzone-display">
<div class="m-row" id="pz-area" style="display:none">
<span id="pz-km2"></span> km² · <span id="pz-ha"></span> ha<br>
<span id="pz-ac"></span> ac · <span id="pz-mi2"></span> mi²<br>
<span id="pz-m2"></span> m²<br>
<span style="color:#ffae00">⚽ <span id="pz-pitch"></span> pitches</span>
</div>
<div class="m-row" id="pz-perim" style="display:none">
<span style="color:#555;font-size:9px">perimeter <span id="pz-pkm"></span> km</span>
</div>
<div class="m-hint" id="pz-hint">Click map to drop circle</div>
<button id="btn-polyzone-undo" title="Undo last vertex">↩ Undo Vertex</button>
</div>
<div class="podcast-shoutout">In support of The Future of Solar Photovoltaics podcast<br>& all participants to date</div>
</div>
<div class="scada-wrapper">
<div class="scada-brand">
<div>
<div class="scada-brand-main">Ventus</div>
<div class="scada-brand-sub">Cables & Connectivity®</div>
</div>
<div class="scada-brand-tag">globalgrid2050.com | open infrastructure intelligence</div>
</div>
<div class="status-legend">
<div class="status-dot"><span style="background:#00ff88"></span>Operational</div>
<div class="status-dot"><span style="background:#ffcc00"></span>Under Construction</div>
<div class="status-dot"><span style="background:#ff8800"></span>Consented</div>
<div class="status-dot"><span style="background:#8888ff"></span>Applied</div>
</div>
<div class="scada-keys" id="scada-ui-container"></div>
<div class="disclaimer-box">
This interface is based on publicly available and open source infrastructure data, including public energy datasets such as REPD where applicable. It is presented for analytical and visualisation purposes only and does not include live operational or other non public operational data.
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/maplibre-gl@3.6.2/dist/maplibre-gl.js"></script>
<script src="ventus-corev8engine.js"></script>
<script>
const ukConfig = [
{
group: "Topology (GeoJSON)",
layers: [
{ id: "400", label: "400kV", color: "#0054ff", type: "line", width: 2.5, url: "data/grid_400kv.geojson", snap: true, preload: true },
{ id: "275", label: "275kV", color: "#ff0000", type: "line", width: 2.0, url: "data/grid_275kv.geojson", snap: true, preload: true },
{ id: "220", label: "220kV", color: "#ff9900", type: "line", width: 1.8, url: "data/grid_220kv.geojson", snap: true, preload: true },
{ id: "132", label: "132kV", color: "#00cc00", type: "line", width: 1.5, url: "data/grid_132kv.geojson", snap: true, preload: true },
{ id: "66", label: "66kV", color: "#b200ff", type: "line", width: 1.2, url: "data/grid_66kv.geojson", snap: true, preload: true },
{ id: "11kv", label: "11kV (UKPN)", color: "#ff00ff", type: "point", radius: ['interpolate', ['linear'], ['zoom'], 13.5, 4, 15, 8, 18, 18], url: "data/grid_11kv_ukpn.geojson", minzoom: 13.5, preload: false },
{ id: "subs", label: "Subs", color: "#ffffff", type: "point", radius: ['interpolate', ['linear'], ['zoom'], 5, 3, 10, 5, 14, 10, 18, 22], url: "data/grid_substations.geojson", isSubs: true, preload: true }
]
},
{
group: "Assets (GeoJSON)",
layers: [
{ id: "nuc", label: "Nuclear", color: "#39ff14", type: "point", radius: 4.5, url: "data/power_plants.geojson", filter: ['==', ['get', 'source'], 'nuclear'], preload: true },
{ id: "gas", label: "Gas", color: "#ff4500", type: "point", radius: 4.5, url: "data/power_plants.geojson", filter: ['!=', ['get', 'source'], 'nuclear'], preload: true },
{ id: "ind", label: "Industry", color: "#ff6600", type: "point", radius: 4.5, url: "data/industrial_offtakers.geojson", preload: true },
{ id: "dc", label: "Data Ctrs", color: "#00ffff", type: "point", radius: 4.5, url: "data/datacentres.geojson", preload: true },
{ id: "air", label: "Airports", color: "#ff00ff", type: "point", radius: 4.5, url: "data/airports.geojson", preload: true },
{ id: "rail", label: "Railways", color: "#ffd700", type: "point", radius: 4.5, url: "data/railways.geojson", preload: true }
]
},
{
group: "Supermarkets (GeoJSON)",
layers: [
{ id: "tesco", label: "Tesco", color: "#ee1c2e", type: "point", radius: 4.5, url: "data/supermarkets_tesco.geojson", preload: false },
{ id: "sainsburys", label: "Sainsbury's", color: "#ff8200", type: "point", radius: 4.5, url: "data/supermarkets_sainsburys.geojson", preload: false },
{ id: "asda", label: "Asda", color: "#78be20", type: "point", radius: 4.5, url: "data/supermarkets_asda.geojson", preload: false },
{ id: "morrisons", label: "Morrisons", color: "#ffd700", type: "point", radius: 4.5, url: "data/supermarkets_morrisons.geojson", preload: false },
{ id: "aldi", label: "Aldi", color: "#003087", type: "point", radius: 4.5, url: "data/supermarkets_aldi.geojson", preload: false },
{ id: "lidl", label: "Lidl", color: "#0050aa", type: "point", radius: 4.5, url: "data/supermarkets_lidl.geojson", preload: false },
{ id: "waitrose", label: "Waitrose", color: "#7ab800", type: "point", radius: 4.5, url: "data/supermarkets_waitrose.geojson", preload: false },
{ id: "ms", label: "M&S Food", color: "#009b77", type: "point", radius: 4.5, url: "data/supermarkets_ms.geojson", preload: false },
{ id: "coop", label: "Co-op", color: "#00b1a9", type: "point", radius: 4.5, url: "data/supermarkets_coop.geojson", preload: false },
{ id: "costco", label: "Costco", color: "#005daa", type: "point", radius: 4.5, url: "data/supermarkets_costco.geojson", preload: false },
{ id: "booths", label: "Booths", color: "#6d2077", type: "point", radius: 4.5, url: "data/supermarkets_booths.geojson", preload: false }
]
},
{
group: "Transit (GeoJSON)",
layers: [
{ id: "elizabeth", label: "Elizabeth Line", color: "#60399E", type: "point", radius: 5, url: "data/elizabeth_line.geojson", preload: false },
{ id: "lu", label: "London Underground", color: "#e32017", type: "point", radius: 5, url: "data/london_underground.geojson", preload: false },
{ id: "dlr", label: "DLR", color: "#00afad", type: "point", radius: 5, url: "/uk_metros_trams.geojson", preload: false,
filter: ['all', ['in', 'Docklands', ['get', 'operator']], ['!', ['in', 'London Underground', ['get', 'operator']]]] },
{ id: "metro", label: "UK Metro", color: "#f3a712", type: "point", radius: 5, url: "/uk_metros_trams.geojson", preload: false,
filter: ['any', ['in', 'Tyne', ['get', 'operator']], ['in', 'Metrolink', ['get', 'operator']], ['in', 'Supertram', ['get', 'operator']], ['in', 'Nottingham', ['get', 'operator']], ['in', 'Edinburgh', ['get', 'operator']], ['in', 'Midland Metro', ['get', 'operator']]] },
{ id: "tram", label: "Trams & Light Rail", color: "#84329b", type: "point", radius: 5, url: "/uk_metros_trams.geojson", preload: false,
filter: ['all', ['==', ['get', 'type'], 'Tram / Light Rail'], ['!', ['in', 'London Underground', ['get', 'operator']]]] },
{ id: "mainline_rail", label: "UK Mainline Railways", color: "#ff8800", type: "line", width: 1.5, url: "/uk_mainline_railways.geojson", preload: false },
{ id: "hs2", label: "HS2", color: "#2c6fad", type: "point", radius: 4, url: "data/hs2.geojson", preload: false },
{ id: "eurostar_route", label: "Eurostar (HS1) UK & Europe", color: "#001489", type: "line", width: 2.5, url: "data/eurostar.geojson", filter: ['==', ['get', 'type'], 'route'], preload: false },
{ id: "eurostar_station", label: "Eurostar Stations UK & Europe", color: "#ffd700", type: "point", radius: 5.5, url: "data/eurostar.geojson", filter: ['==', ['get', 'type'], 'eurostar_station'], preload: false }
]
},
{
group: "Leisure & Sports (GeoJSON)",
layers: [
{ id: "stadiums", label: "Major Stadiums", color: "#e5ff00", type: "point", radius: 5.5, url: "data/stadiums.geojson", preload: false }
]
},
{
group: "Global Data Backbone",
layers: [
{ id: "subsea_data_cables", label: "Subsea Data Cables (Fibre) (not all connections available yet)", color: "#00e5ff", type: "line", width: 1.5, url: "data/subsea_data_cables.geojson", preload: false }
]
},
{
group: "Global Supply Chain & Chokepoints",
layers: [
{ id: "global_ports_major", label: "Major Ports (Deep Water/Ferry)", color: "#00bfff", type: "point", radius: ['interpolate', ['linear'], ['get', 'area_ha'], 0, 8, 80, 10, 500, 16], url: "data/global_ports.geojson", filter: ['==', ['get', 'type'], 'Major Cargo/Container Port'], preload: false },
{ id: "global_ports_minor", label: "Inland / Minor Harbours", color: "#0055aa", type: "point", radius: ['interpolate', ['linear'], ['get', 'area_ha'], 0, 2.5, 50, 4.5, 200, 6], url: "data/global_ports.geojson", filter: ['==', ['get', 'type'], 'Minor/Local Harbour'], preload: false },
{ id: "global_hydrocarbons", label: "Global Hydrocarbons (Oil, Gas, LNG)", color: "#ff3300", type: "point", radius: ['interpolate', ['linear'], ['get', 'area_ha'], 0, 4, 100, 8, 1000, 15], url: "data/global_hydrocarbons.geojson", preload: false }
]
},
{
group: "Highway Infrastructure",
layers: [
{ id: "motorways", label: "Motorways", color: "#0054ff", type: "line", width: 2.5, url: "/uk_motorways.geojson", preload: false },
{ id: "trunk_roads", label: "Major A-Roads (Trunk)", color: "#00cc00", type: "line", width: 1.8, url: "/uk_trunk_roads.geojson", preload: false },
{ id: "primary_roads", label: "A-Roads (Primary)", color: "#ff4400", type: "line", width: 1.2, url: "/uk_primary_roads.geojson", preload: false },
{ id: "motorway_services", label: "Motorway Services", color: "#ff00ff", type: "point", radius: 5.5, url: "data/motorway_services.geojson", preload: false }
]
},
{
group: "EV (GeoJSON)",
layers: [
{ id: "ev", label: "EV Rapid (100kW+)", color: "#00ff88", type: "point", radius: 5, url: "data/ev_chargers.geojson", preload: false }
]
},
{
group: "Heavy Industry",
layers: [
{ id: "naei_co2", label: "Major Industrial Sites", color: "#ff4400", type: "point", url: "/heavy_emitters_uk.json", preload: false }
]
},
{
group: "REPD (GeoJSON)",
layers: [
{ id: "solar", label: "Solar PV", color: "#ffff00", type: "point", radius: 8, url: "/dist/repd_master.json", filter: ['==', ['get', 'tech'], 'solar'], preload: false },
{ id: "solar_operational", label: "Solar PV (Operational Only)", color: "#00ff88", type: "point", radius: ['interpolate', ['linear'], ['coalesce', ['get', 'capacity'], 0], 0, 10, 10, 14, 50, 18, 100, 22, 200, 28, 350, 35, 500, 42], url: "/dist/repd_master.json", filter: ['all', ['==', ['get', 'tech'], 'solar'], ['==', ['get', 'status'], 'operational']], preload: false },
{ id: "solar_roof", label: "Solar Roof", color: "#ffcc00", type: "point", radius: 8, url: "/dist/repd_master.json", filter: ['==', ['get', 'tech'], 'solar_roof'], preload: false },
{ id: "wind", label: "Wind", color: "#00ffff", type: "point", radius: 8, url: "/dist/repd_master.json", filter: ['==', ['get', 'tech'], 'wind'], preload: false },
{ id: "wind_onshore_operational", label: "Onshore Wind (Operational Only)", color: "#00ffcc", type: "point", radius: ['interpolate', ['linear'], ['coalesce', ['get', 'capacity'], 0], 0, 8, 10, 12, 50, 16, 100, 20, 200, 26, 350, 32, 500, 38], url: "/dist/repd_master.json", filter: ['all', ['==', ['get', 'raw_tech'], 'Wind Onshore'], ['==', ['get', 'status'], 'operational']], prelo … [line shortened here: 412 characters; full line on GitHub]
{ id: "wind_offshore_operational", label: "Offshore Wind (Operational Only)", color: "#0066ff", type: "point", radius: ['interpolate', ['linear'], ['coalesce', ['get', 'capacity'], 0], 0, 8, 10, 12, 50, 16, 100, 20, 200, 26, 350, 32, 500, 38], url: "/dist/repd_master.json", filter: ['all', ['==', ['get', 'raw_tech'], 'Wind Offshore'], ['==', ['get', 'status'], 'operational']], prel … [line shortened here: 413 characters; full line on GitHub]
{ id: "bess", label: "Battery Storage", color: "#ffae00", type: "point", radius: 8, url: "/dist/repd_master.json", filter: ['==', ['get', 'tech'], 'bess'], preload: false },
{ id: "bess_operational", label: "Battery Storage (Operational Only)", color: "#ff69b4", type: "point", radius: ['interpolate', ['linear'], ['coalesce', ['get', 'capacity'], 0], 0, 8, 10, 12, 50, 16, 100, 20, 200, 26, 350, 32, 500, 38], url: "/dist/repd_master.json", filter: ['all', ['==', ['get', 'tech'], 'bess'], ['==', ['get', 'status'], 'operational']], preload: false },
{ id: "biomass", label: "Biomass & EfW", color: "#39ff14", type: "point", radius: 8, url: "/dist/repd_master.json", filter: ['==', ['get', 'tech'], 'biomass'], preload: false },
{ id: "tidal", label: "Tidal & Wave", color: "#00bfff", type: "point", radius: 8, url: "/dist/repd_master.json", filter: ['==', ['get', 'tech'], 'tidal'], preload: false },
{ id: "hydrogen", label: "Hydrogen", color: "#ffffff", type: "point", radius: 8, url: "/dist/repd_master.json", filter: ['==', ['get', 'tech'], 'hydrogen'], preload: false },
{ id: "hydro", label: "Hydro & Pumped Storage", color: "#00aaff", type: "point", radius: 8, url: "/dist/repd_master.json", filter: ['==', ['get', 'tech'], 'hydro'], preload: false },
{ id: "flywheel", label: "Flywheel", color: "#ff69b4", type: "point", radius: 8, url: "/dist/repd_master.json", filter: ['==', ['get', 'tech'], 'flywheel'], preload: false },
{ id: "act", label: "Advanced Conversion", color: "#ff6600", type: "point", radius: 8, url: "/dist/repd_master.json", filter: ['==', ['get', 'tech'], 'act'], preload: false },
{ id: "geothermal", label: "Geothermal", color: "#ff3300", type: "point", radius: 8, url: "/dist/repd_master.json", filter: ['==', ['get', 'tech'], 'geothermal'], preload: false },
{ id: "caes", label: "Compressed Air Storage", color: "#88aaff", type: "point", radius: 8, url: "/dist/repd_master.json", filter: ['==', ['get', 'tech'], 'caes'], preload: false }
]
}
];
window.initVentusMap({
config: ukConfig,
center: [-3.5, 54.0],
zoom: 4.2
});
</script>
</body>
</html>Fetch UK Railways
A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches UK mainline railways and UK metros trams from OpenStreetMap (Overpass).
storageglobalgrid2050 / repd_grid_atlasv8/scripts/fetch_uk_railways.py · lines 1–81 of 81 · Entry point
- What it does
- It fetches UK mainline railways and UK metros trams. Defines fetch_uk_railways. Uses libraries requests, json, time, sys. Side effects: reads or writes files; makes network requests; starts processes.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight.
- Inputs & outputs
- In: data source: OpenStreetMap (Overpass); GeoJSON file uk_mainline_railways.geojson; GeoJSON file uk_metros_trams.geojson. Out: JSON file.
- Downstream impact
- Used directly by 1 file: GlobalGrid2050 Fetch UK Railways Workflow (globalgrid2050).
- What it achieves
- Its name says it fetches UK railways. Defines `fetch_uk_railways`.
- Why it matters
- Run by GlobalGrid2050 Fetch UK Railways Workflow.
- Application
- globalgrid2050 · repd_grid_atlasv8/scripts · Python CLI
- Uses
- requests, json, time, sys
- Used by
- run by GlobalGrid2050 Fetch UK Railways Workflow (workflow run)
- Produces
- fetch_uk_railways
- Defines here
- fetch_uk_railways
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 repd_grid_atlasv8/scripts/fetch_uk_railways.py:1-81 · blob 5cf879f40496567ecae50e9aa9fedc5e06ddaf83 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: filesystem, network, process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
import requests
import json
import time
import sys
def fetch_uk_railways(rail_types, filename, timeout_secs=900):
print(f"\n--- Fetching railway types: {', '.join(rail_types)} ---")
# Dynamically build the way query for multiple railway tag values
way_queries = "\n".join([f' way["railway"="{rtype}"](area.uk);' for rtype in rail_types])
query = f"""
[out:json][timeout:{timeout_secs}];
area(3600062149)->.uk;
(
{way_queries}
);
out geom;
"""
url = "https://overpass-api.de/api/interpreter"
# NEW: Custom headers to prevent HTTP 406 blocks
headers = {
'User-Agent': 'GlobalGrid2050-Bot/1.0 (bot@globalgrid2050.com)',
'Accept': '*/*'
}
max_retries = 3
for attempt in range(max_retries):
print(f"Attempt {attempt + 1} of {max_retries}...")
response = requests.post(url, data={'data': query}, headers=headers)
if response.status_code == 429:
print("⚠️ Overpass server is busy (Status 429: Too Many Requests).")
print("😴 Sleeping for 3 minutes before retrying...")
time.sleep(180) # 3 minute nap
continue
elif response.status_code != 200:
print(f"❌ Error (Status {response.status_code}):\n", response.text[:500])
sys.exit(1) # NEW: Tells GitHub Actions the script actually failed
else:
print("✅ Data successfully downloaded from server!")
break # Success! Break out of the retry loop.
if response.status_code != 200:
print(f"❌ Giving up on {', '.join(rail_types)} after {max_retries} attempts.")
sys.exit(1) # NEW: Tells GitHub Actions the script actually failed
try:
osm_data = response.json()
except ValueError:
print(f"❌ Failed to parse JSON. Server returned:\n", response.text[:500])
sys.exit(1) # NEW: Tells GitHub Actions the script actually failed
geojson = {"type": "FeatureCollection", "features": []}
for element in osm_data.get('elements', []):
if element['type'] == 'way' and 'geometry' in element:
coords = [[node['lon'], node['lat']] for node in element['geometry']]
feature = {
"type": "Feature",
"properties": element.get('tags', {}),
"geometry": {"type": "LineString", "coordinates": coords}
}
geojson['features'].append(feature)
with open(filename, 'w', encoding='utf-8') as f:
json.dump(geojson, f)
print(f"💾 Saved {len(geojson['features'])} rail segments to {filename}")
if __name__ == "__main__":
# 🚂 Fetching mainline rail network (Massive dataset, requires 15m timeout)
fetch_uk_railways(["rail"], "uk_mainline_railways.geojson", 900)
print("⏳ Pausing for 60 seconds to respect Overpass rate limits...")
time.sleep(60)
# 🚇 Fetching underground, light rail, and trams
fetch_uk_railways(["subway", "light_rail", "tram"], "uk_metros_trams.geojson", 300)Fetch UK Roads
A Python command-line tool in the scripts folder of GlobalGrid2050 that fetches UK motorways, UK trunk roads, UK primary roads and A roads from OpenStreetMap (Overpass).
storageglobalgrid2050 / repd_grid_atlasv8/scripts/fetch_uk_roads.py · lines 1–85 of 85 · Entry point
- What it does
- It fetches UK motorways, UK trunk roads, UK primary roads and A roads. Defines fetch_uk_roads. Uses libraries requests, json, time, sys. Side effects: reads or writes files; makes network requests; starts processes.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (path word 'repd'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: A roads.
- Inputs & outputs
- In: data source: OpenStreetMap (Overpass); GeoJSON file uk_motorways.geojson; GeoJSON file uk_trunk_roads.geojson; GeoJSON file uk_primary_roads.geojson. Out: JSON file.
- Downstream impact
- Used directly by 1 file: GlobalGrid2050 Fetch UK Roads Workflow (globalgrid2050).
- What it achieves
- Its name says it fetches UK roads. Defines `fetch_uk_roads`.
- Why it matters
- Run by GlobalGrid2050 Fetch UK Roads Workflow.
- Application
- globalgrid2050 · repd_grid_atlasv8/scripts · Python CLI
- Uses
- requests, json, time, sys
- Used by
- run by GlobalGrid2050 Fetch UK Roads Workflow (workflow run)
- Produces
- fetch_uk_roads
- Defines here
- fetch_uk_roads
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 repd_grid_atlasv8/scripts/fetch_uk_roads.py:1-85 · blob 209297b5b3e37b51255ed0327862733706027741 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: filesystem, network, process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
import requests
import json
import time
import sys
def fetch_uk_roads(highway_types, filename, timeout_secs=900):
print(f"\n--- Fetching road types: {', '.join(highway_types)} ---")
# Dynamically build the way query for multiple highway tag values
way_queries = "\n".join([f' way["highway"="{htype}"](area.uk);' for htype in highway_types])
query = f"""
[out:json][timeout:{timeout_secs}];
area(3600062149)->.uk;
(
{way_queries}
);
out geom;
"""
url = "https://overpass-api.de/api/interpreter"
headers = {
'User-Agent': 'GlobalGrid2050-Bot/1.0 (bot@globalgrid2050.com)',
'Accept': '*/*'
}
max_retries = 3
for attempt in range(max_retries):
print(f"Attempt {attempt + 1} of {max_retries}...")
response = requests.post(url, data={'data': query}, headers=headers)
if response.status_code == 429:
print("⚠️ Overpass server is busy (Status 429). Sleeping for 3 minutes...")
time.sleep(180)
continue
elif response.status_code != 200:
print(f"❌ Error (Status {response.status_code}):\n", response.text[:500])
sys.exit(1)
else:
print("✅ Data successfully downloaded from server!")
break
if response.status_code != 200:
print(f"❌ Giving up on {', '.join(highway_types)} after {max_retries} attempts.")
sys.exit(1)
try:
osm_data = response.json()
except ValueError:
print(f"❌ Failed to parse JSON. Server returned:\n", response.text[:500])
sys.exit(1)
geojson = {"type": "FeatureCollection", "features": []}
for element in osm_data.get('elements', []):
if element['type'] == 'way' and 'geometry' in element:
coords = [[node['lon'], node['lat']] for node in element['geometry']]
feature = {
"type": "Feature",
"properties": element.get('tags', {}),
"geometry": {"type": "LineString", "coordinates": coords}
}
geojson['features'].append(feature)
with open(filename, 'w', encoding='utf-8') as f:
json.dump(geojson, f)
print(f"💾 Saved {len(geojson['features'])} road segments to {filename}")
if __name__ == "__main__":
# 🛣️ Motorways & Slip Roads
fetch_uk_roads(["motorway", "motorway_link"], "uk_motorways.geojson", 900)
print("⏳ Pausing for 60 seconds...")
time.sleep(60)
# 🟢 Major A-Roads (Trunk)
fetch_uk_roads(["trunk", "trunk_link"], "uk_trunk_roads.geojson", 900)
print("⏳ Pausing for 60 seconds...")
time.sleep(60)
# 🔴 Standard A-Roads (Primary) - This will be massive
fetch_uk_roads(["primary", "primary_link"], "uk_primary_roads.geojson", 900)GlobalGrid2050 Sync Promoted GridAtlas V9
A Python command-line tool in the scripts folder that reads GridAtlas current, using SHA-256. It verifies release (`verify_release`), copies verified tree (`copy_verified_tree`) and replaces visible text (`replace_visible_text`).
storageglobalgrid2050 / scripts/202608300232-sync-promoted-gridatlas-v9.py · lines 1–265 of 265 · version 2026-08-30 02:32 · Entry point · pattern update_homepage (shared by 3 files)
- What it does
- It loads GridAtlas current. Defines 10 functions or classes, including require, sha256, load, verify_release, copy_verified_tree. Uses libraries __future__, argparse, hashlib, json, re. Side effects: reads or writes files.
- Why it exists in the grid workflow
- Domain stage upstream_foresight (path word 'gridatlas'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: 400kV.
- Inputs & outputs
- In: JSON file release-manifest.json; JSON file live-set.json; JSON file gridatlas-v9-current.json; command-line arguments. Voltage levels named: 400kV.
- Downstream impact
- It is itself an entry point (Python CLI); no other file was found loading it.
- What it achieves
- Mirror a promoted GridAtlas V9 release and place it immediately after Atlas V8. Its code works with 400 kV. It accepts `--gridatlas`, `--site-root` and `--homepage`.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- globalgrid2050 · scripts · Python CLI
- Uses
- __future__, argparse, hashlib, json, re, shutil, sys, pathlib
- Used by
- none found
- Produces
- require, sha256, load, verify_release, copy_verified_tree, replace_visible_text, build_v9_anchor, update_homepage, main
- Defines here
- require, sha256, load, verify_release, copy_verified_tree, replace_visible_text, build_v9_anchor, update_homepage, _semantic_v8_catalogue_update, main
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 scripts/202608300232-sync-promoted-gridatlas-v9.py:1-265 · blob c2449457eb805ace9b28413954b9b9ab2d39573c · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: filesystem · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
#!/usr/bin/env python3
"""Mirror a promoted GridAtlas V9 release and place it immediately after Atlas V8."""
from __future__ import annotations
import argparse
import hashlib
import json
import re
import shutil
import sys
from pathlib import Path
from typing import Any
MIN_RENDER_READY_GENERATION = "202608292311"
START = "<!-- GRIDATLAS_V9_AUTOMATION_START -->"
END = "<!-- GRIDATLAS_V9_AUTOMATION_END -->"
V8_ANCHOR = re.compile(
r"(?is)<a\b(?=[^>]*href\s*=\s*([\"'])[^\"']*repd_grid_atlasv8/?[^\"']*\1)[^>]*>.*?</a>"
)
HREF = re.compile(r"(?is)(href\s*=\s*)([\"'])[^\"']*repd_grid_atlasv8/?[^\"']*\2")
TAG_SPLIT = re.compile(r"(<[^>]+>)")
def require(condition: bool, message: str) -> None:
if not condition:
raise RuntimeError(message)
def sha256(path: Path) -> str:
digest = hashlib.sha256()
with path.open("rb") as handle:
for chunk in iter(lambda: handle.read(1024 * 1024), b""):
digest.update(chunk)
return digest.hexdigest()
def load(path: Path) -> dict[str, Any]:
value = json.loads(path.read_text(encoding="utf-8"))
require(isinstance(value, dict), f"JSON root is not an object: {path}")
return value
def verify_release(release: Path) -> dict[str, str]:
sums = release / "sha256sums.txt"
require(sums.is_file(), f"missing release digest manifest: {sums}")
records: dict[str, str] = {}
for number, raw in enumerate(sums.read_text(encoding="utf-8").splitlines(), 1):
if not raw.strip():
continue
digest, separator, relative = raw.partition(" ")
require(separator == " ", f"bad sha256 line {number}")
require(re.fullmatch(r"[a-f0-9]{64}", digest) is not None, f"bad digest line {number}")
require(relative and not relative.startswith("/") and ".." not in Path(relative).parts, f"unsafe path line {number}")
path = release / relative
require(path.is_file(), f"missing release file: {relative}")
require(sha256(path) == digest, f"release digest mismatch: {relative}")
records[relative] = digest
require("index.html" in records, "release index absent from digest manifest")
require("release-manifest.json" in records, "release manifest absent from digest manifest")
return records
def copy_verified_tree(source: Path, destination: Path) -> None:
if destination.exists():
source_files = sorted(p.relative_to(source) for p in source.rglob("*") if p.is_file())
destination_files = sorted(p.relative_to(destination) for p in destination.rglob("*") if p.is_file())
require(source_files == destination_files, "existing GlobalGrid release file closure differs")
for relative in source_files:
require(sha256(source / relative) == sha256(destination / relative), f"immutable mirror differs: {relative}")
return
shutil.copytree(source, destination)
def replace_visible_text(anchor: str) -> str:
parts = TAG_SPLIT.split(anchor)
replacements = (
(re.compile(r"REPD\s+Grid\s+Atlas\s+V8", re.I), "Grid Atlas V9"),
(re.compile(r"Grid\s+Atlas\s+V8", re.I), "Grid Atlas V9"),
(re.compile(r"Atlas\s+V8", re.I), "Atlas V9"),
(re.compile(r"\bV8\b", re.I), "V9"),
)
changed_text = False
for index, part in enumerate(parts):
if part.startswith("<"):
continue
updated = part
for pattern, replacement in replacements:
updated = pattern.sub(replacement, updated)
changed_text = changed_text or updated != part
parts[index] = updated
if not changed_text:
# Preserve the cloned structure but give the adjacent product an explicit label.
for index in range(len(parts) - 1, -1, -1):
if not parts[index].startswith("<") and parts[index].strip():
parts[index] = "Grid Atlas V9"
changed_text = True
break
require(changed_text, "could not derive a visible V9 label from the V8 catalogue anchor")
return "".join(parts)
def build_v9_anchor(v8_anchor: str, release_id: str) -> str:
destination = f"/{release_id}/"
opening_end = v8_anchor.find(">")
require(opening_end > 0, "malformed V8 anchor")
opening = v8_anchor[: opening_end + 1]
remainder = v8_anchor[opening_end + 1 :]
opening, count = HREF.subn(lambda match: f"{match.group(1)}{match.group(2)}{destination}{match.group(2)}", opening, count=1)
require(count == 1, "V8 anchor href could not be rewritten")
if "data-gridatlas-release=" not in opening:
opening = opening[:-1] + f' data-gridatlas-release="{release_id}">'
return replace_visible_text(opening + remainder)
def update_homepage(homepage: Path, release_id: str) -> None:
original = homepage.read_text(encoding="utf-8")
without_old = re.sub(
rf"(?is)\s*{re.escape(START)}.*?{re.escape(END)}\s*",
"\n",
original,
)
matches = list(V8_ANCHOR.finditer(without_old))
require(matches, "Atlas V8 homepage anchor not found")
# Use the first catalogue occurrence; the gate below proves V8 precedes V9.
match = matches[0]
v9_anchor = build_v9_anchor(match.group(0), release_id)
block = f"\n{START}\n{v9_anchor}\n{END}"
updated = without_old[: match.end()] + block + without_old[match.end() :]
require(updated.count(START) == 1 and updated.count(END) == 1, "V9 catalogue marker closure mismatch")
require(updated.find("repd_grid_atlasv8") < updated.find(f"data-gridatlas-release=\"{release_id}\""), "V8/V9 catalogue order is wrong")
require(f'href="/{release_id}/"' in updated or f"href='/{release_id}/'" in updated, "V9 homepage href missing")
homepage.write_text(updated, encoding="utf-8", newline="\n")
_legacy_update_homepage = update_homepage
def _semantic_v8_catalogue_update(homepage: Path, release_id: str) -> None:
original = homepage.read_text(encoding="utf-8")
if V8_ANCHOR.search(original):
_legacy_update_homepage(homepage, release_id)
return
generated = re.compile(
rf"(?is)\s*/\*\s*{re.escape(START)}\s*\*/.*?/\*\s*{re.escape(END)}\s*\*/\s*"
)
without_old = generated.sub("\n", original)
without_old = re.sub(
rf"(?is)\s*{re.escape(START)}.*?{re.escape(END)}\s*",
"\n",
without_old,
)
current_row = re.compile(
r'(?m)^[ \t]*\{[^\n]*name\s*:\s*(["\'])UK Grid Atlas V9 — Current Verified Release\1[^\n]*\},?\s*$'
)
without_old = current_row.sub("", without_old)
v8_row = re.compile(
r'(?m)^(?P<indent>[ \t]*)\{[^\n]*url\s*:\s*(["\'])[^"\']*repd_grid_atlasv8/?\2[^\n]*\},?\s*$'
)
match = v8_row.search(without_old)
require(match is not None, "Atlas V8 homepage catalogue row not found")
indent = match.group("indent")
generation = release_id.split("-", 1)[0]
block = (
f"\n{indent}/* {START} */\n"
f'{indent}{{ name:"UK Grid Atlas V9 — Current Verified Release", '
f'url:"./{release_id}/", '
f'note:"CURRENT VERIFIED · {release_id} · actual 400 kV render gates · desktop/mobile · canonical repd_ref deep links · V8 and immutable prior V9 releases preserved", '
f'data_gridatlas_release:"{release_id}" }}, /* data-gridatlas-release="{release_id}" */\n'
f"{indent}/* {END} */"
)
updated = without_old[: match.end()] + block + without_old[match.end() :]
current_link = re.compile(
r'(<a\s+href=)(["\'])[^"\']+\2(>UK Grid Atlas V9 — Current Verified Release</a>)'
)
updated = current_link.sub(
lambda item: f'{item.group(1)}{item.group(2)}./{release_id}/{item.group(2)}{item.group(3)}',
updated,
)
current_strip = re.compile(
r'(<div class="os-strip"><a[^>]*>UK Grid Atlas V9 — Current Verified Release</a><span class="live-status">).*?(</span></div>)'
)
updated = current_strip.sub(
lambda item: f"{item.group(1)}{generation} · verified live{item.group(2)}",
updated,
count=1,
)
require(updated.count(START) == 1 and updated.count(END) == 1, "V9 catalogue marker closure mismatch")
require(
updated.find("repd_grid_atlasv8") < updated.find(f'data-gridatlas-release="{release_id}"'),
"V8/V9 catalogue order is wrong",
)
require(f'url:"./{release_id}/"' in updated, "V9 homepage route missing")
homepage.write_text(updated, encoding="utf-8", newline="\n")
update_homepage = _semantic_v8_catalogue_update
def main() -> int:
parser = argparse.ArgumentParser()
parser.add_argument("--gridatlas", required=True, type=Path)
parser.add_argument("--site-root", default=".", type=Path)
parser.add_argument("--homepage", default="index.html")
args = parser.parse_args()
state_path = args.gridatlas / "state/live-set.json"
require(state_path.is_file(), "GridAtlas current pointer is missing")
state = load(state_path)
current = state.get("current") or {}
verification = state.get("verification") or {}
generation = str(state.get("generation") or "")
if generation < MIN_RENDER_READY_GENERATION:
print(json.dumps({"classification": "WAITING_FOR_RENDER_READY_PROMOTION", "generation": generation}, sort_keys=True))
return 0
require(str(state.get("schema", "")).startswith("gridatlas.live-set."), "GridAtlas pointer schema mismatch")
require(str(state.get("classification", "")).startswith("VERIFIED_LIVE_"), "GridAtlas release is not verified live")
require(verification.get("promotion_eligible") is True, "GridAtlas release is not promotion eligible")
require(int(verification.get("failed_gates", -1)) == 0, "GridAtlas release has failed gates")
release_id = str(current.get("release_id") or "")
require(re.fullmatch(r"\d{12}-atlas-v9", release_id) is not None, "unsafe GridAtlas release id")
source_release = args.gridatlas / release_id
require(source_release.is_dir(), f"promoted release directory missing: {release_id}")
records = verify_release(source_release)
site_root = args.site_root.resolve()
homepage = site_root / args.homepage
require(homepage.is_file(), f"GlobalGrid homepage missing: {homepage}")
destination = site_root / release_id
copy_verified_tree(source_release, destination)
update_homepage(homepage, release_id)
pointer = {
"schema": "globalgrid2050.gridatlas-v9-pointer.v1",
"classification": "MIRRORED_PROMOTED_GRIDATLAS_V9",
"generation": generation,
"release_id": release_id,
"source_repository": "Ventusltd/gridatlas",
"source_commit": current.get("publication_commit"),
"source_live_url": current.get("live_url"),
"globalgrid_live_url": f"https://globalgrid2050.com/{release_id}/",
"source_sha256sums_sha256": sha256(source_release / "sha256sums.txt"),
"files": len(records),
"rollback_release_id": (state.get("rollback") or {}).get("release_id"),
}
pointer_path = site_root / "state/gridatlas-v9-current.json"
pointer_path.parent.mkdir(parents=True, exist_ok=True)
pointer_path.write_text(json.dumps(pointer, indent=2, sort_keys=True) + "\n", encoding="utf-8", newline="\n")
print(json.dumps(pointer, sort_keys=True))
return 0
if __name__ == "__main__":
try:
raise SystemExit(main())
except Exception as error: # noqa: BLE001
print(f"GRIDATLAS_GLOBALGRID_SYNC_FAILED: {error}", file=sys.stderr)
raise