calc_season

rubin_sim.utils.calc_season(ra, time)

Calculate the ‘season’ in the survey for a series of ra/time values of an observation. Based only on the RA of the point on the sky, it calculates the ‘season’ based on when the sun passes through this RA (this marks the start of a ‘season’).

Note that seasons should be calculated using the RA of a fixed point on the sky, such as the slice_point[‘ra’] if calculating season values for a series of opsim pointings on the sky. To convert to integer seasons, use np.floor(seasons)

Parameters:
rafloat

The RA (in degrees) of the point on the sky

timenp.ndarray

The times of the observations, in MJD days

Returns:
seasonsnp.array

The season values, as floats.