Calculates the sunset time for a horizontal or inclined surface on Mars. Returns NA during polar night/day periods.
sunset(Ls, phi, beta = NULL, gamma_c = NULL, unit = 1)Sunset time [rad], [deg], or [h] depending on unit parameter, or NA during polar night/day
Areocentric longitude [deg]
Planetary latitude [deg]
Surface tilt angle [deg]. Optional, for inclined surfaces
Surface azimuth angle [deg]. Optional, for inclined surfaces. Zero facing equator, east negative, west positive (-180 to +180)
Output unit: 1 for radians, 2 for degrees, 3 for solar hours (default: 1)