RandomDitherFieldPerNightStacker

class rubin_sim.maf.stackers.RandomDitherFieldPerNightStacker(ra_col='fieldRA', dec_col='fieldDec', degrees=True, field_id_col='fieldId', night_col='night', max_dither=1.75, in_hex=True, random_seed=None)

Bases: RandomDitherFieldPerVisitStacker

Randomly dither the RA and Dec pointings up to max_dither degrees from center, one dither offset per new night of observation of a field. e.g. visits within the same night, to the same field, have the same offset.

Parameters:
ra_colstr, optional

The name of the RA column in the data. Default ‘fieldRA’.

dec_colstr, optional

The name of the Dec column in the data. Default ‘fieldDec’.

degreesbool, optional

Flag whether RA/Dec should be treated as (and kept as) degrees.

field_id_colstr, optional

The name of the fieldId column in the data. Used to identify fields which should be identified as the ‘same’. Default ‘fieldId’.

night_colstr, optional

The name of the night column in the data. Default ‘night’.

max_ditherfloat, optional

The radius of the maximum dither offset, in degrees. Default 1.75 degrees.

in_hexbool, optional

If True, offsets are constrained to lie within a hexagon inscribed within the max_dither circle. If False, offsets can lie anywhere out to the edges of the max_dither circle. Default True.

random_seedint or None, optional

If set, then used as the random seed for the numpy random number generation for the dither offsets. Default None.

Attributes Summary

cols_added

Attributes Documentation

cols_added = ['randomDitherFieldPerNightRa', 'randomDitherFieldPerNightDec']