mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
An imaging satellite with a known sensor can now zoom past 8x, up to 128x, as far as the view stays at least as wide as the sensor's narrowest standard swath at its live altitude; only swaths confirmed on a cited page open those steps. The top step follows the altitude and window shape and steps back when it falls below the zoom shown. The view draws the sensor's swath to scale along the ground track with a SENSOR SWATH readout (approximate off nadir), and a SENSOR button zooms to exactly that width when it lies in range at nadir. From 16x the imagery tiles the view will need 5 to 20 s ahead along the ground track are pre-loaded at the matching level. The mouse wheel steps the zoom one notch at a time, and the identity line shows how old the TLE is. The sensor figures come from a new bundled pack of 46 Earth-observation platforms, each value cited to its operator or agency, with its own data credit.
26 lines
914 B
JavaScript
26 lines
914 B
JavaScript
/**
|
|
* @file The bundled imaging-sensor pack: swath and resolution for the main
|
|
* Earth-observation platforms, matched to satellites by NORAD number or name.
|
|
*
|
|
* Data: `local_data/imaging_sensors/imaging_sensors.json`; sources, licences
|
|
* and curation in that folder's README. Loaded once, on demand, by the
|
|
* satellites layer; a failed load is retried after a cooldown rather than
|
|
* remembered for the session.
|
|
*
|
|
* @module data/imagingSensors
|
|
*/
|
|
|
|
import { indexImagingSensors } from '../layers/satellites/sensors.js';
|
|
import { loadBundledJson } from './bundledJson.js';
|
|
import { createRetryableLoader } from './retryableLoad.js';
|
|
|
|
const PACK_URL = new URL(
|
|
'./local_data/imaging_sensors/imaging_sensors.json',
|
|
import.meta.url,
|
|
);
|
|
|
|
/** The pack, loaded and indexed once. */
|
|
export const loadImagingSensors = createRetryableLoader(async () =>
|
|
indexImagingSensors(await loadBundledJson(PACK_URL)),
|
|
);
|