A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.
JavaScript 3d-globecesiumflight-trackinggeospatialgeospatial-intelligencegisosintphotogrammetrysatellite-trackingspatial-intelligencewebglworldview
Merge remote-tracking branch 'origin/main' into fix/tle-catalog-matching
VG31OPb48f44f6e8ac
diff --cc CHANGELOG.mdindex a1935090c,a3e622b52..da4967218--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -133,11 -279,60 +279,61 @@@## [Unreleased]+ - Add a keyless Air quality layer to the Weather group, with Environment and+ Climate Change Canada's AQHI as the first registered provider. Readings carry+ `{ provider, scale, value, band }` so another network can be added without+ inventing a shared numeric meaning across indices that do not share one; the+ row and readout both state that coverage is Canada only. The WEATHER card+ shows the band legend and the highest readings currently in view. AQHI is+ reported as an integer from 1 with an open-ended "10+", so readings round to+ that published form rather than the decimal precision the API returns.+ Readings older than six hours are dropped, and the layer reports `stale`+ through `getStats()` (also when every observation was dropped) so feed+ provenance cannot describe an aged feed as live. Voice can switch it on and+ query readings by value, band, station and observation time.++ - Bound six upstream body reads (FIRMS CSV, CelesTrak TLE groups, adsb.lol+ `/v2/mil`, TomTom flow tiles, OpenSky `states/all` and adsbdb lookups) with+ streaming size caps that cancel the body at the cap or the route's deadline;+ the adsb.lol military poll gains a deadline of its own. An oversized OpenSky+ snapshot is not retried, and an OpenSky 429 starts its cooldown before the+ body is read.+-- Keep later satellites when a TLE catalog entry is missing an orbital line.- The parser skips the incomplete set and resumes at the next complete named- set, instead of losing the rest of the group (#906).+- Keep later satellites when a TLE catalog entry is missing an orbital line or+ pairs lines with mismatched NORAD catalog numbers. The parser skips corrupt sets+ and resumes at the next complete named set, instead of losing the rest of the+ group (#906, #936).+ - Satellite clouds keep Clouds only / Full as quick endpoints and add a continuous+ cloud-filter slider: 0% is Full, 100% is the existing brightness key, and+ intermediate values blend the keyed alpha. The slider commits on release to+ avoid restaging imagery for every drag event. Filter percentages round-trip in+ share links; legacy mode codes retain their old endpoint meanings. Background+ panel refreshes preserve the pending drag value until release. Contributed by+ [NotProniss](https://github.com/NotProniss) (#1084).++ - Street Level: Panoramax is the fourth provider, keyless. Light its chip+ (orange; off by default, one provider at a time): from orbit dots show+ where the federated commons has pictures, and below about 60 km its+ sequences draw as lines from `api.panoramax.xyz` vector tiles. A click on a+ line opens that sequence's picture nearest the click without moving the+ camera, flat or 360°, with cones along the sequence around it and ‹ › /+ ← → following the picture's own links. The 360° and since filters apply,+ in the lines and in the lookup. The caption names each picture's author+ and licence (CC BY-SA 4.0, Licence Ouverte 2.0…) and links to it in the+ Panoramax viewer. HD originals load once, only when the viewer is wider+ than the 2,048 px version (a panorama: expanded), and every download stops+ when the photo changes; an image whose header declares more than 64 MP is+ refused before it decodes. Share links carry it as+ `0.m.0_0.r.google-0*kartaview-0*panoramax-1` (`0.m.0_0.r.panoramax-1` works+ too). KartaView's photo viewer+ is now shared (`photoViewer.js`, `panorama.js`); in it, for KartaView too,+ Esc clears the selected drive before it collapses the panel. Lines are+ simplified and drawn within a point budget (a tile's unsimplified lines+ over Paris hung the tab), decoded in slices so the globe keeps moving,+ and kept; the cones' tiles have their own connection, and the open+ picture's tile draws its cones before its neighbours arrive.+- Flights and Military Flights highlight emergency transponder broadcasts infleet billboards, 3D models and Cockpit contacts. Colors update when a statusstarts or clears. Emergency squawks outrank ADS-B priority statuses; GEVdiff --cc src/sources/tle.jsindex 8f97e4eda,ac7aedc2c..feeb2f94b--- a/src/sources/tle.js+++ b/src/sources/tle.js@@@ -28,8 -21,8 +28,36 @@@ export function parseTleText(text)return result;}-/** The NORAD catalog number from TLE line 1, or null. */-export function tleCatalogNumber(line1) {- const number = Number.parseInt(String(line1).slice(2, 7), 10);++/**++ * The catalog number an Alpha-5 field stands for, or null for any other field.++ *++ * Since the catalog passed 99999 (July 2026) a TLE writes the numbers above it++ * in Alpha-5: a letter A–Z, skipping I and O, stands for 10–33 in the++ * ten-thousands place, so 100000 is "A0000" and 339999 is "Z9999".++ */++function alpha5CatalogNumber(field) {++ const letter = field[0];++ if (++ letter >= 'A' &&++ letter <= 'Z' &&++ letter !== 'I' &&++ letter !== 'O' &&++ /^\d{4}$/.test(field.slice(1))++ ) {++ let tens = letter.charCodeAt(0) - 65 + 10;++ if (letter > 'I') tens -= 1;++ if (letter > 'O') tens -= 1;++ return tens * 10000 + Number(field.slice(1));++ }++ return null;++}+++/** The NORAD catalog number from a TLE line, or null. */+export function tleCatalogNumber(line) {- const number = Number.parseInt(String(line).slice(2, 7), 10);++ const field = String(line).slice(2, 7);++ const alpha5 = alpha5CatalogNumber(field);++ if (alpha5 !== null) return alpha5;++ const number = Number.parseInt(field, 10);return Number.isInteger(number) ? number : null;}++diff --cc src/tools/queries/space.test.mjsindex 2b2586b45,f6c2a8df8..ad7287004--- a/src/tools/queries/space.test.mjs+++ b/src/tools/queries/space.test.mjs@@@ -51,23 -51,6 +51,41 @@@ for (const missingLine of [1, 2])});}+test('TLE parsing rejects pairs with mismatched catalog numbers and resumes', () => {+ const text = `SAT A+1 25544U 98067A 24001.50000000 .00016717 00000-0 30270-3 0 9994+2 48274 41.4697 175.8913 0005643 312.8370 141.6893 15.61287398150000+SAT B+1 48274U 21035A 24001.50000000 .00020137 00000-0 24481-3 0 9993+2 48274 41.4697 175.8913 0005643 312.8370 141.6893 15.61287398150000+`;+ const entries = parseTleText(text);+ assert.deepEqual(+ entries.map((entry) => entry.name),+ ['SAT B'],+ );+ assert.equal(tleCatalogNumber(entries[0].line1), 48274);+ assert.equal(tleCatalogNumber(entries[0].line2), 48274);+});+++test('TLE parsing accepts matching Alpha-5 pairs and rejects mismatched Alpha-5 pairs', () => {++ const text = `SAT MISMATCH++1 A0000U 98067A 24001.50000000 .00016717 00000-0 30270-3 0 9994++2 A0001 41.4697 175.8913 0005643 312.8370 141.6893 15.61287398150000++SAT ALPHA5++1 A0000U 98067A 24001.50000000 .00016717 00000-0 30270-3 0 9994++2 A0000 41.4697 175.8913 0005643 312.8370 141.6893 15.61287398150000++`;++ const entries = parseTleText(text);++ assert.deepEqual(++ entries.map((entry) => entry.name),++ ['SAT ALPHA5'],++ );++ assert.equal(tleCatalogNumber(entries[0].line1), 100000);++ assert.equal(tleCatalogNumber(entries[0].line2), 100000);++});++++test('the next pass defaults to the ISS and reports times, peak and direction', async () => {const catalog = composeCatalog({tools: coreTools,