- class rubin_sim.maf.metrics.SeasonLengthMetric(mjd_col='observationStartMJD', exp_time_col='visitExposureTime', min_exp_time=16, reduce_func=<function median>, metric_name='SeasonLength', **kwargs)¶
Calculate the length of LSST seasons, in days.
- min_exp_time: float, optional
Minimum visit exposure time to count for a ‘visit’, in seconds. Default 20.
- reduce_funcfunction, optional
Function that can operate on array-like structures. Typically numpy function. This reduces the season length in each season from 10 separate values to a single value. Default np.median.
Calculate the (reduceFunc) of the length of each season.
- run(data_slice, slice_point)¶
Calculate the (reduceFunc) of the length of each season. Uses the slice_point RA/Dec to calculate the position in question, then uses the times of the visits to assign them into seasons (based on where the sun is relative to the slice_point RA).
Numpy structured array containing the data related to the visits provided by the slicer.
Dictionary containing information about the slice_point currently active in the slicer.
The (reduceFunc) of the length of each season, in days.