API Reference / pheno · function

Function: pheno()

function pheno(
   engine, 
   body, 
   jdUt): Pheno;

Photometric and apparent-geometry quantities for a body at an instant: its phase angle, illuminated fraction, elongation from the Sun, apparent disc diameter, and apparent visual magnitude.

Parameters

ParameterTypeDescription
engineEngineThe engine used to evaluate positions.
bodyBodyIdA body with known physical dimensions (Sun, Moon, the planets).
jdUtnumberJulian Day (UT).

Returns

Pheno

A Pheno: phaseAngle (deg), phase (lit fraction 01), elongation (deg), diameter (deg), and magnitude.

Throws

Error if body has no photometric data.

Example

pheno(engine, "venus", julianDay(2025, 6, 1)).phase; // illuminated fraction

Start building

Quickstart →