physical function

({Ecliptic cMoon, Ecliptic cSun, double p}) physical(
  1. double jde,
  2. Planet earth
)

Physical returns quantities for physical observation of the Moon.

jde is Julian ephemeris day. earth is VSOP87 Planet Earth.

Returns:

  • cMoon selenographic longitude/latitude of the Moon (librations)
  • p position angle of the Moon's axis of rotation (radians)
  • cSun selenographic longitude/latitude of the Sun

Implementation

({Ecliptic cMoon, double p, Ecliptic cSun}) physical(
    double jde, Planet earth) {
  final pos = moonposition.position(jde);
  final m = MoonPhysical(jde);
  final lib = m.lib(pos.lon, pos.lat);
  final p = m.pa(pos.lon, pos.lat, lib.b);
  final sun = m.sun(pos.lon, pos.lat, pos.delta, earth);
  return (
    cMoon: Ecliptic(lib.l, lib.b),
    p: p,
    cSun: Ecliptic(sun.l, sun.b),
  );
}