mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 18:34:02 +00:00
Wind (NOAA GFS and ECMWF IFS: animated particles, colour field, a reading at map centre), observed weather (NOAA MRMS radar, GOES and NESDIS infrared clouds, lightning density) on one shared history timeline, NHC and CPHC cyclone advisories with tracks and cones, and a WEATHER panel in the right rail. On 3D Tiles the observed products render as raised shells with a sharper window around the view. Co-authored-by: Gustavo Beneduzi <[email protected]> Co-authored-by: Daniel Slay <[email protected]> Co-authored-by: Rehaan Delmotra <[email protected]> Co-authored-by: Cursor Agent <[email protected]>
47 lines
1.6 KiB
JavaScript
47 lines
1.6 KiB
JavaScript
// src/data/issPass.js
|
|
/**
|
|
* Next-ISS-pass prediction. Kept as a thin wrapper over satellitePass.js so the
|
|
* original findNextIssPass signature and defaults still work.
|
|
*/
|
|
import { findNextSatellitePass, lookAnglesAt } from './satellitePass.js';
|
|
|
|
export { lookAnglesAt };
|
|
|
|
/**
|
|
* Predict the next ISS pass over an observer location.
|
|
* @param {Object} options
|
|
* @param {Object} options.satrec SGP4 satellite record
|
|
* @param {number} options.latDeg Observer latitude in degrees [-90, 90]
|
|
* @param {number} options.lonDeg Observer longitude in degrees [-180, 180]
|
|
* @param {number} options.fromMs UTC start time in milliseconds
|
|
* @param {number} [options.minElevDeg=10] Elevation that defines rise and set, in degrees
|
|
* @param {number} [options.horizonHours=24] Maximum search window in hours
|
|
* @param {number} [options.coarseStepSec=30] Coarse search step in seconds
|
|
* @param {number} [options.fineStepSec=5] Fine transit step in seconds for peak tracking and visibility
|
|
* @param {boolean} [options.requireVisible=false] Require a naked-eye-visible pass
|
|
* @returns {{ riseMs: number, setMs: number, maxElevDeg: number, maxElevMs: number, riseAzDeg: number, visible: boolean, sunlit: boolean, observerDark: boolean } | null}
|
|
*/
|
|
export function findNextIssPass({
|
|
satrec,
|
|
latDeg,
|
|
lonDeg,
|
|
fromMs,
|
|
minElevDeg = 10,
|
|
horizonHours = 24,
|
|
coarseStepSec = 30,
|
|
fineStepSec = 5,
|
|
requireVisible = false,
|
|
}) {
|
|
return findNextSatellitePass({
|
|
satrec,
|
|
latDeg,
|
|
lonDeg,
|
|
fromMs,
|
|
minElevDeg,
|
|
horizonHours,
|
|
coarseStepSec,
|
|
fineStepSec,
|
|
requireVisible,
|
|
});
|
|
}
|