s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
80 lines • 2.4 kB
TypeScript
import type { Method, OperationMode } from '../sat';
/** Options for Initl */
export interface InitlOptions {
ecco: number;
epoch: number;
inclo: number;
no: number;
opsmode: OperationMode;
}
/** Output for Initl */
export interface InitlOutput {
no: number;
method: Method;
ainv: number;
ao: number;
con41: number;
con42: number;
cosio: number;
cosio2: number;
eccsq: number;
omeosq: number;
posq: number;
rp: number;
rteosq: number;
sinio: number;
gsto: number;
}
/**
* procedure initl
*
* this procedure initializes the sgp4 propagator. all the initialization is
* consolidated here instead of having multiple loops inside other routines.
*
* author : david vallado 719-573-2600 28 jun 2005
*
* inputs :
* ecco - eccentricity 0.0 - 1.0
* epoch - epoch time in days from jan 0, 1950. 0 hr
* inclo - inclination of satellite
* no - mean motion of satellite
* satn - satellite number
*
* outputs :
* ainv - 1.0 / a
* ao - semi major axis
* con41 -
* con42 - 1.0 - 5.0 cos(i)
* cosio - cosine of inclination
* cosio2 - cosio squared
* eccsq - eccentricity squared
* method - flag for deep space 'd', 'n'
* omeosq - 1.0 - ecco * ecco
* posq - semi-parameter squared
* rp - radius of perigee
* rteosq - square root of (1.0 - ecco*ecco)
* sinio - sine of inclination
* gsto - gst at time of observation rad
* no - mean motion of satellite
*
* locals :
* ak -
* d1 -
* del -
* adel -
* po -
*
* coupling :
* getgravconst
* gstime - find greenwich sidereal time from the julian date
*
* references :
* hoots, roehrich, norad spacetrack report #3 1980
* hoots, norad spacetrack report #6 1986
* hoots, schumacher and glover 2004
* vallado, crawford, hujsak, kelso 2006
* @param options - initl options
* @returns - initialization params for sgp4
*/
export declare function initl(options: InitlOptions): InitlOutput;
//# sourceMappingURL=initl.d.ts.map