rise_times#
- caput.astro.observer.Observer.rise_times(source, t0, t1=None, step=None, diameter=0.0)[source]#
Find all times a sources rises in an interval.
Typical atmospheric refraction at the horizon is 34 arcminutes, but this method does _not_ take that into account.
- Parameters:
- source
_SkySourceLike The source we are calculating the rising of.
- t0
ctime.TimeLike The start time to search for. Any type that be converted to a UNIX time by caput.
- t1
ctime.TimeLike|None, optional The end time of the search interval. If not set, this is 1 day after the start time t0.
- step
float|None, optional The initial search step in days. This is used to find the approximate times of rising, 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.
- diameter
float, optional The size of the source in degrees. Use this to ensure the whole source is below the horizon. Also, if the local horizon is higher (i.e. mountains), this can be set to a negative value to account for this. You may also use this parameter to account for atmospheric refraction, if desired, by adding 68 arcminutes to the nominal diameter.
- source
- Returns:
- unix_times
ndarray Source rise times as UNIX epoch times.
- unix_times