Path: SC/Environs
% Compute the environment parameters for the Earth.
This data is required by the disturbance model. In order to calculate
drag, the velocity must be computed relative to the atmosphere; this
routine uses a simplified calculation that ignores Earth nutation.
This routine calculates eclipses. A simple dipole model is used for the
magnetic field.
--------------------------------------------------------------------------
Forms:
e = EarthEnvironment( rECI, vECI, jD, e )
--------------------------------------------------------------------------
-----
Input
-----
rECI (3,:) Position vectors in ECI frame
vECI (3,:) Velocity vectors
jD (1,:) Time scalar or array in Julian date
e (.) Initial structure
------
Output
------
e (.) Environment data with updated data, see Disturbances
.nEclipse (1,1) normalized source intensity
--------------------------------------------------------------------------
See also: AtmDens2, SunV2, Eclipse, BDipole, VAtm, Disturbances
--------------------------------------------------------------------------