find_season_edges

rubin_sim.maf.metrics.find_season_edges(seasons)

Given the seasons, return the indexes of each start/end of the season.

Parameters:
seasons: np.ndarray

Seasons, such as calculated by calc_season. Note that seasons should be sorted!!

Returns:
np.ndarray, np.ndarray

The indexes of the first and last date in the season.