lunar_transit#

caput.astro.observer.Observer.lunar_transit(t0, t1=None, step=None, lower=False, return_dec=False)[source]#

Find the Lunar transits between two times.

Parameters:
t0ctime.TimeLike

The start time to search for. Any type that be converted to a UNIX time by caput.

t1ctime.TimeLike | None, optional

The end time of the search interval. If not set, this is 1 day after the start time t0.

stepfloat | None, optional

The initial search step in days. This is used to find the approximate times of transit, and should be set to something less than the spacing between events. If None is passed, an initial search step of 0.2 days, or else one fifth of the specified interval, is used, whichever is smaller.

lowerbool, optional

By default this only returns the upper (regular) transit. This will cause lower transits to be returned instead.

return_decbool, optional

If set, also return the declination of the source at transit.

Returns:
unix_timesndarray

Lunar transit times as UNIX epoch times.