# Unchanged
doCleanCat = pexConfig.Field(
doc="If true removes bad sources from the catalog.",
dtype=bool,
default=True,
)
fakeType = pexConfig.Field(
doc="What type of fake catalog to use, snapshot (includes variability in the magnitudes calculated "
"from the MJD of the image), static (no variability) or filename for a user defined fits"
"catalog.",
dtype=str,
default="static",
)
calibFluxRadius = pexConfig.Field(
doc="Aperture radius (in pixels) that was used to define the calibration for this image+catalog. "
"This will be used to produce the correct instrumental fluxes within the radius. "
"This value should match that of the field defined in slot_CalibFlux_instFlux.",
dtype=float,
default=12.0,
)
coaddName = pexConfig.Field(
doc="The name of the type of coadd used",
dtype=str,
default="deep",
)
doSubSelectSources = pexConfig.Field(
doc="Set to True if you wish to sub select sources to be input based on the value in the column"
"set in the sourceSelectionColName config option.",
dtype=bool,
default=False
)
insertImages = pexConfig.Field(
doc="Insert images directly? True or False.",
dtype=bool,
default=False,
)
insertOnlyStars = pexConfig.Field(
doc="Insert only stars? True or False.",
dtype=bool,
default=False,
)
doProcessAllDataIds = pexConfig.Field(
doc="If True, all input data IDs will be processed, even those containing no fake sources.",
dtype=bool,
default=False,
)
trimBuffer = pexConfig.Field(
doc="Size of the pixel buffer surrounding the image. Only those fake sources with a centroid"
"falling within the image+buffer region will be considered for fake source injection.",
dtype=int,
default=100,
)
sourceType = pexConfig.Field(
doc="The column name for the source type used in the fake source catalog.",
dtype=str,
default="sourceType",
)
fits_alignment = pexConfig.ChoiceField(
doc="How should injections from FITS files be aligned?",
dtype=str,
allowed={
"wcs": (
"Input image will be transformed such that the local WCS in "
"the FITS header matches the local WCS in the target image. "
"I.e., North, East, and angular distances in the input image "
"will match North, East, and angular distances in the target "
"image."
),
"pixel": (
"Input image will _not_ be transformed. Up, right, and pixel "
"distances in the input image will match up, right and pixel "
"distances in the target image."
)
},
default="pixel"
)
# New source catalog config variables
ra_col = pexConfig.Field(
doc="Source catalog column name for RA (in radians).",
dtype=str,
default="ra",
)
dec_col = pexConfig.Field(
doc="Source catalog column name for dec (in radians).",
dtype=str,
default="dec",
)
bulge_semimajor_col = pexConfig.Field(
doc="Source catalog column name for the semimajor axis (in arcseconds) "
"of the bulge half-light ellipse.",
dtype=str,
default="bulge_semimajor",
)
bulge_axis_ratio_col = pexConfig.Field(
doc="Source catalog column name for the axis ratio of the bulge "
"half-light ellipse.",
dtype=str,
default="bulge_axis_ratio",
)
bulge_pa_col = pexConfig.Field(
doc="Source catalog column name for the position angle (measured from "
"North through East in degrees) of the semimajor axis of the bulge "
"half-light ellipse.",
dtype=str,
default="bulge_pa",
)
bulge_n_col = pexConfig.Field(
doc="Source catalog column name for the Sersic index of the bulge.",
dtype=str,
default="bulge_n",
)
disk_semimajor_col = pexConfig.Field(
doc="Source catalog column name for the semimajor axis (in arcseconds) "
"of the disk half-light ellipse.",
dtype=str,
default="disk_semimajor",
)
disk_axis_ratio_col = pexConfig.Field(
doc="Source catalog column name for the axis ratio of the disk "
"half-light ellipse.",
dtype=str,
default="disk_axis_ratio",
)
disk_pa_col = pexConfig.Field(
doc="Source catalog column name for the position angle (measured from "
"North through East in degrees) of the semimajor axis of the disk "
"half-light ellipse.",
dtype=str,
default="disk_pa",
)
disk_n_col = pexConfig.Field(
doc="Source catalog column name for the Sersic index of the disk.",
dtype=str,
default="disk_n",
)
bulge_disk_flux_ratio_col = pexConfig.Field(
doc="Source catalog column name for the bulge/disk flux ratio.",
dtype=str,
default="bulge_disk_flux_ratio",
)
mag_col = pexConfig.Field(
doc="Source catalog column name template for magnitudes, in the format "
"``filter name``_mag_col. E.g., if this config variable is set to "
"``%s_mag``, then the i-band magnitude will be searched for in the "
"``i_mag`` column of the source catalog.",
dtype=str,
default="%s_mag"
)
select_col = pexConfig.Field(
doc="Source catalog column name to be used to select which sources to "
"add.",
dtype=str,
default="select",
)
length_col = pexConfig.Field(
doc="Source catalog column name for trail length (in pixels).",
dtype=str,
default="trail_length",
)
angle_col = pexConfig.Field(
doc="Source catalog column name for trail angle (in radians).",
dtype=str,
default="trail_angle",
)
# Deprecated config variables
raColName = pexConfig.Field(
doc="RA column name used in the fake source catalog.",
dtype=str,
default="raJ2000",
deprecated="Use `ra_col` instead."
)
decColName = pexConfig.Field(
doc="Dec. column name used in the fake source catalog.",
dtype=str,
default="decJ2000",
deprecated="Use `dec_col` instead."
)
diskHLR = pexConfig.Field(
doc="Column name for the disk half light radius used in the fake source catalog.",
dtype=str,
default="DiskHalfLightRadius",
deprecated=(
"Use `disk_semimajor_col`, `disk_axis_ratio_col`, and `disk_pa_col`"
" to specify disk half-light ellipse."
)
)
aDisk = pexConfig.Field(
doc="The column name for the semi major axis length of the disk component used in the fake source"
"catalog.",
dtype=str,
default="a_d",
deprecated=(
"Use `disk_semimajor_col`, `disk_axis_ratio_col`, and `disk_pa_col`"
" to specify disk half-light ellipse."
)
)
bDisk = pexConfig.Field(
doc="The column name for the semi minor axis length of the disk component.",
dtype=str,
default="b_d",
deprecated=(
"Use `disk_semimajor_col`, `disk_axis_ratio_col`, and `disk_pa_col`"
" to specify disk half-light ellipse."
)
)
paDisk = pexConfig.Field(
doc="The column name for the PA of the disk component used in the fake source catalog.",
dtype=str,
default="pa_disk",
deprecated=(
"Use `disk_semimajor_col`, `disk_axis_ratio_col`, and `disk_pa_col`"
" to specify disk half-light ellipse."
)
)
nDisk = pexConfig.Field(
doc="The column name for the sersic index of the disk component used in the fake source catalog.",
dtype=str,
default="disk_n",
deprecated="Use `disk_n_col` instead."
)
bulgeHLR = pexConfig.Field(
doc="Column name for the bulge half light radius used in the fake source catalog.",
dtype=str,
default="BulgeHalfLightRadius",
deprecated=(
"Use `bulge_semimajor_col`, `bulge_axis_ratio_col`, and "
"`bulge_pa_col` to specify disk half-light ellipse."
)
)
aBulge = pexConfig.Field(
doc="The column name for the semi major axis length of the bulge component.",
dtype=str,
default="a_b",
deprecated=(
"Use `bulge_semimajor_col`, `bulge_axis_ratio_col`, and "
"`bulge_pa_col` to specify disk half-light ellipse."
)
)
bBulge = pexConfig.Field(
doc="The column name for the semi minor axis length of the bulge component used in the fake source "
"catalog.",
dtype=str,
default="b_b",
deprecated=(
"Use `bulge_semimajor_col`, `bulge_axis_ratio_col`, and "
"`bulge_pa_col` to specify disk half-light ellipse."
)
)
paBulge = pexConfig.Field(
doc="The column name for the PA of the bulge component used in the fake source catalog.",
dtype=str,
default="pa_bulge",
deprecated=(
"Use `bulge_semimajor_col`, `bulge_axis_ratio_col`, and "
"`bulge_pa_col` to specify disk half-light ellipse."
)
)
nBulge = pexConfig.Field(
doc="The column name for the sersic index of the bulge component used in the fake source catalog.",
dtype=str,
default="bulge_n",
deprecated="Use `bulge_n_col` instead."
)
magVar = pexConfig.Field(
doc="The column name for the magnitude calculated taking variability into account. In the format "
"``filter name``magVar, e.g. imagVar for the magnitude in the i band.",
dtype=str,
default="%smagVar",
deprecated="Use `mag_col` instead."
)
sourceSelectionColName = pexConfig.Field(
doc="The name of the column in the input fakes catalogue to be used to determine which sources to"
"add, default is none and when this is used all sources are added.",
dtype=str,
default="templateSource",
deprecated="Use `select_col` instead."
)
class InsertFakesTask(PipelineTask, CmdLineTask):
Definition at line 936 of file insertFakes.py.