SeasonLengthMetric

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)

Bases: BaseMetric

Calculate the length of LSST seasons, in days.

Parameters:
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.

Methods Summary

run(data_slice, slice_point)

Calculate the (reduceFunc) of the length of each season.

Methods Documentation

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).

Parameters:
data_slicenumpy.array

Numpy structured array containing the data related to the visits provided by the slicer.

slice_pointdict

Dictionary containing information about the slice_point currently active in the slicer.

Returns:
float

The (reduceFunc) of the length of each season, in days.