DcrStacker¶
- class rubin_sim.maf.stackers.DcrStacker(filter_col='filter', alt_col='altitude', degrees=True, ra_col='fieldRA', dec_col='fieldDec', lst_col='observationStartLST', site='LSST', mjd_col='observationStartMJD', dcr_magnitudes=None)¶
Bases:
BaseStacker
Calculate the RA,Dec offset expected for an object due to differential chromatic refraction.
For DCR calculation, we also need zenithDistance, HA, and PA – but these will be explicitly handled within this stacker so that setup is consistent and they run in order. If those values have already been calculated elsewhere, they will not be overwritten.
- Parameters:
- filter_colstr
The name of the column with filter names. Default ‘fitler’.
- altColstr
Name of the column with altitude info. Default ‘altitude’.
- ra_colstr
Name of the column with RA. Default ‘fieldRA’.
- dec_colstr
Name of the column with Dec. Default ‘fieldDec’.
- lstColstr
Name of the column with local sidereal time. Default ‘observationStartLST’.
- sitestr or rubin_sim.utils.Site
Name of the observory or a rubin_sim.utils.Site object. Default ‘LSST’.
- mjdColstr
Name of column with modified julian date. Default ‘observationStartMJD’
- dcr_magnitudesdict
Magitude of the DCR offset for each filter at altitude/zenith distance of 45 degrees. Defaults u=0.07, g=0.07, r=0.50, i=0.045, z=0.042, y=0.04 (all arcseconds).
- Returns:
- numpy.array
Returns array with additional columns ‘ra_dcr_amp’ and ‘dec_dcr_amp’ with the DCR offsets for each observation. Also runs ZenithDistStacker and ParallacticAngleStacker.
Attributes Summary
Attributes Documentation
- cols_added = ['ra_dcr_amp', 'dec_dcr_amp']¶