BlockIntervalSlicer

class rubin_sim.maf.slicers.BlockIntervalSlicer(mjd_column_name='observationStartMJD', duration_column_name='visitTime', note_column_name='note', badval=nan, verbose=False)

Bases: TimeIntervalSlicer

Slices into intervals with common “note” values and no long gaps.

Parameters:
mjd_column_namestr

Name of column on which to slice, must be in units of days

duration_column_namestr

Name of column with the duration of each visit (in seconds)

note_column_namestr

Name of column with the visit note.

badvalfloat

Value to use for bad values in slice

verbosebool

Print extra information?

Attributes Summary

gap_tolerance

Methods Summary

setup_slicer(sim_data[, maps])

Set up Slicer for data slicing.

Attributes Documentation

gap_tolerance = 0.1

Methods Documentation

setup_slicer(sim_data, maps=None)

Set up Slicer for data slicing.

Set up internal parameters necessary for slicer to slice data and generates indexes on sim_data. Also sets _slice_sim_data for a particular slicer.

Parameters:
sim_datanp.recarray

The simulated data to be sliced.

mapslist of rubin_sim.maf.maps objects, optional.

Maps to apply at each slice_point, to add to the slice_point metadata.