LSST Applications g00274db5b6+edbf708997,g00d0e8bbd7+edbf708997,g199a45376c+5137f08352,g1fd858c14a+1d4b6db739,g262e1987ae+f4d9505c4f,g29ae962dfc+7156fb1a53,g2cef7863aa+73c82f25e4,g35bb328faa+edbf708997,g3e17d7035e+5b3adc59f5,g3fd5ace14f+852fa6fbcb,g47891489e3+6dc8069a4c,g53246c7159+edbf708997,g64539dfbff+9f17e571f4,g67b6fd64d1+6dc8069a4c,g74acd417e5+ae494d68d9,g786e29fd12+af89c03590,g7ae74a0b1c+a25e60b391,g7aefaa3e3d+536efcc10a,g7cc15d900a+d121454f8d,g87389fa792+a4172ec7da,g89139ef638+6dc8069a4c,g8d7436a09f+28c28d8d6d,g8ea07a8fe4+db21c37724,g92c671f44c+9f17e571f4,g98df359435+b2e6376b13,g99af87f6a8+b0f4ad7b8d,gac66b60396+966efe6077,gb88ae4c679+7dec8f19df,gbaa8f7a6c5+38b34f4976,gbf99507273+edbf708997,gc24b5d6ed1+9f17e571f4,gca7fc764a6+6dc8069a4c,gcc769fe2a4+97d0256649,gd7ef33dd92+6dc8069a4c,gdab6d2f7ff+ae494d68d9,gdbb4c4dda9+9f17e571f4,ge410e46f29+6dc8069a4c,geaed405ab2+e194be0d2b,w.2025.47
LSST Data Management Base Package
Loading...
Searching...
No Matches
lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig Class Reference
Inheritance diagram for lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig:
lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConnections

Public Member Functions

list[str] columns_in_ref (self)
 
list[str] columns_in_target (self)
 
 validate (self)
 

Public Attributes

 columns_in_ref
 
 columns_in_target
 

Static Public Attributes

 column_match_candidate_ref
 
 column_match_candidate_target
 
 column_matched_prefix_ref
 
 column_matched_prefix_target
 
 include_unmatched
 
 filter_on_match_candidate
 
 prefix_best_coord
 
 columns_flux
 
 columns_ref_mag_to_nJy
 
 columns_ref_copy
 
 columns_target_coord_err
 
 columns_target_copy
 
 columns_target_mag_to_nJy
 
 columns_target_select_true
 
 columns_target_select_false
 
 coord_format
 
 refcat_sharding_type
 
 target_sharding_type
 
 cat_ref
 
 cat_target
 
 skymap
 
 cat_match_ref
 
 cat_match_target
 
 columns_match_target
 
 cat_matched
 

Detailed Description

Definition at line 161 of file diff_matched_tract_catalog.py.

Member Function Documentation

◆ columns_in_ref()

list[str] lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.columns_in_ref ( self)

Definition at line 203 of file diff_matched_tract_catalog.py.

203 def columns_in_ref(self) -> list[str]:
204 columns_all = [self.coord_format.column_ref_coord1, self.coord_format.column_ref_coord2]
205 for column_lists in (
206 (
207 self.columns_ref_copy,
208 ),
209 (x.columns_in_ref for x in self.columns_flux.values()),
210 ):
211 for column_list in column_lists:
212 columns_all.extend(column_list)
213
214 return list({column: None for column in columns_all}.keys())
215

◆ columns_in_target()

list[str] lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.columns_in_target ( self)

Definition at line 217 of file diff_matched_tract_catalog.py.

217 def columns_in_target(self) -> list[str]:
218 columns_all = [self.coord_format.column_target_coord1, self.coord_format.column_target_coord2]
219 if self.coord_format.coords_ref_to_convert is not None:
220 columns_all.extend(col for col in self.coord_format.coords_ref_to_convert.values()
221 if col not in columns_all)
222 for column_lists in (
223 (
224 self.columns_target_coord_err,
225 self.columns_target_select_false,
226 self.columns_target_select_true,
227 self.columns_target_copy,
228 ),
229 (x.columns_in_target for x in self.columns_flux.values()),
230 ):
231 for column_list in column_lists:
232 columns_all.extend(col for col in column_list if col not in columns_all)
233 return columns_all
234

◆ validate()

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.validate ( self)

Definition at line 287 of file diff_matched_tract_catalog.py.

287 def validate(self):
288 super().validate()
289
290 errors = []
291
292 for columns_mag, columns_in, name_columns_copy in (
293 (self.columns_ref_mag_to_nJy, self.columns_in_ref, "columns_ref_copy"),
294 (self.columns_target_mag_to_nJy, self.columns_in_target, "columns_target_copy"),
295 ):
296 columns_copy = getattr(self, name_columns_copy)
297 for column_old, column_new in columns_mag.items():
298 if column_old not in columns_in:
299 errors.append(
300 f"{column_old=} key in self.columns_mag_to_nJy not found in {columns_in=}; did you"
301 f" forget to add it to self.{name_columns_copy}={columns_copy}?"
302 )
303 if column_new in columns_copy:
304 errors.append(
305 f"{column_new=} value found in self.{name_columns_copy}={columns_copy}"
306 f" this will cause a collision. Please choose a different name."
307 )
308 if errors:
309 raise ValueError("\n".join(errors))
310
311

Member Data Documentation

◆ cat_match_ref

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConnections.cat_match_ref
staticinherited
Initial value:
= cT.Input(
doc="Reference match catalog with indices of target matches",
name="match_ref_{name_input_cat_ref}_{name_input_cat_target}",
storageClass="ArrowAstropy",
dimensions=("tract", "skymap"),
deferLoad=True,
)

Definition at line 78 of file diff_matched_tract_catalog.py.

◆ cat_match_target

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConnections.cat_match_target
staticinherited
Initial value:
= cT.Input(
doc="Target match catalog with indices of references matches",
name="match_target_{name_input_cat_ref}_{name_input_cat_target}",
storageClass="ArrowAstropy",
dimensions=("tract", "skymap"),
deferLoad=True,
)

Definition at line 85 of file diff_matched_tract_catalog.py.

◆ cat_matched

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConnections.cat_matched
staticinherited
Initial value:
= cT.Output(
doc="Catalog with reference and target columns for joined sources",
name="matched_{name_input_cat_ref}_{name_input_cat_target}",
storageClass="ArrowAstropy",
dimensions=("tract", "skymap"),
)

Definition at line 98 of file diff_matched_tract_catalog.py.

◆ cat_ref

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConnections.cat_ref
staticinherited
Initial value:
= cT.Input(
doc="Reference object catalog to match from",
name="{name_input_cat_ref}",
storageClass="ArrowAstropy",
dimensions=("tract", "skymap"),
deferLoad=True,
)

Definition at line 58 of file diff_matched_tract_catalog.py.

◆ cat_target

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConnections.cat_target
staticinherited
Initial value:
= cT.Input(
doc="Target object catalog to match",
name="{name_input_cat_target}",
storageClass="ArrowAstropy",
dimensions=("tract", "skymap"),
deferLoad=True,
)

Definition at line 65 of file diff_matched_tract_catalog.py.

◆ column_match_candidate_ref

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.column_match_candidate_ref
static
Initial value:
= pexConfig.Field[str](
default='match_candidate',
doc='The column name for the boolean field identifying reference objects'
' that were used for matching',
optional=True,
)

Definition at line 165 of file diff_matched_tract_catalog.py.

◆ column_match_candidate_target

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.column_match_candidate_target
static
Initial value:
= pexConfig.Field[str](
default='match_candidate',
doc='The column name for the boolean field identifying target objects'
' that were used for matching',
optional=True,
)

Definition at line 171 of file diff_matched_tract_catalog.py.

◆ column_matched_prefix_ref

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.column_matched_prefix_ref
static
Initial value:
= pexConfig.Field[str](
default='refcat_',
doc='The prefix for matched columns copied from the reference catalog',
)

Definition at line 177 of file diff_matched_tract_catalog.py.

◆ column_matched_prefix_target

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.column_matched_prefix_target
static
Initial value:
= pexConfig.Field[str](
default='',
doc='The prefix for matched columns copied from the target catalog',
)

Definition at line 181 of file diff_matched_tract_catalog.py.

◆ columns_flux

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.columns_flux
static
Initial value:
= pexConfig.ConfigDictField(
doc="Configs for flux columns for each band",
keytype=str,
itemtype=MatchedCatalogFluxesConfig,
default={},
)

Definition at line 235 of file diff_matched_tract_catalog.py.

◆ columns_in_ref

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.columns_in_ref

Definition at line 293 of file diff_matched_tract_catalog.py.

◆ columns_in_target

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.columns_in_target

Definition at line 294 of file diff_matched_tract_catalog.py.

◆ columns_match_target

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConnections.columns_match_target
staticinherited
Initial value:
= cT.Input(
doc="Target match catalog columns",
name="match_target_{name_input_cat_ref}_{name_input_cat_target}.columns",
storageClass="ArrowColumnList",
dimensions=("tract", "skymap"),
)

Definition at line 92 of file diff_matched_tract_catalog.py.

◆ columns_ref_copy

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.columns_ref_copy
static
Initial value:
= pexConfig.ListField[str](
doc='Reference table columns to copy into cat_matched',
default=[],
listCheck=is_sequence_set,
)

Definition at line 245 of file diff_matched_tract_catalog.py.

◆ columns_ref_mag_to_nJy

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.columns_ref_mag_to_nJy
static
Initial value:
= pexConfig.DictField[str, str](
doc='Reference table AB mag columns to convert to nJy flux columns with new names',
default={},
)

Definition at line 241 of file diff_matched_tract_catalog.py.

◆ columns_target_coord_err

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.columns_target_coord_err
static
Initial value:
= pexConfig.ListField[str](
doc='Target table coordinate columns with standard errors (sigma)',
listCheck=lambda x: (len(x) == 2) and (x[0] != x[1]),
)

Definition at line 250 of file diff_matched_tract_catalog.py.

◆ columns_target_copy

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.columns_target_copy
static
Initial value:
= pexConfig.ListField[str](
doc='Target table columns to copy into cat_matched',
default=('patch',),
listCheck=is_sequence_set,
)

Definition at line 254 of file diff_matched_tract_catalog.py.

◆ columns_target_mag_to_nJy

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.columns_target_mag_to_nJy
static
Initial value:
= pexConfig.DictField[str, str](
doc='Target table AB mag columns to convert to nJy flux columns with new names',
default={},
)

Definition at line 259 of file diff_matched_tract_catalog.py.

◆ columns_target_select_false

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.columns_target_select_false
static
Initial value:
= pexConfig.ListField[str](
doc='Target table columns to require to be False for selecting sources',
default=('merge_peak_sky',),
listCheck=is_sequence_set,
)

Definition at line 268 of file diff_matched_tract_catalog.py.

◆ columns_target_select_true

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.columns_target_select_true
static
Initial value:
= pexConfig.ListField[str](
doc='Target table columns to require to be True for selecting sources',
default=('detect_isPrimary',),
listCheck=is_sequence_set,
)

Definition at line 263 of file diff_matched_tract_catalog.py.

◆ coord_format

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.coord_format
static
Initial value:
= pexConfig.ConfigField[ConvertCatalogCoordinatesConfig](
doc="Configuration for coordinate conversion",
)

Definition at line 273 of file diff_matched_tract_catalog.py.

◆ filter_on_match_candidate

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.filter_on_match_candidate
static
Initial value:
= pexConfig.Field[bool](
default=False,
doc='Whether to use provided column_match_candidate_[ref/target] to'
' exclude rows from the output table. If False, any provided'
' columns will be copied instead.'
)

Definition at line 189 of file diff_matched_tract_catalog.py.

◆ include_unmatched

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.include_unmatched
static
Initial value:
= pexConfig.Field[bool](
default=False,
doc='Whether to include unmatched rows in the matched table',
)

Definition at line 185 of file diff_matched_tract_catalog.py.

◆ prefix_best_coord

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.prefix_best_coord
static
Initial value:
= pexConfig.Field[str](
default=None,
doc="A string prefix for ra/dec coordinate columns generated from the reference coordinate if "
"available, and target otherwise. Ignored if None or include_unmatched is False.",
optional=True,
)

Definition at line 195 of file diff_matched_tract_catalog.py.

◆ refcat_sharding_type

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.refcat_sharding_type
static
Initial value:
= pexConfig.ChoiceField[str](
doc="The type of sharding (spatial splitting) for the reference catalog",
allowed={"tract": "Tract-based shards", "none": "No sharding at all"},
default="tract",
)

Definition at line 276 of file diff_matched_tract_catalog.py.

◆ skymap

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConnections.skymap
staticinherited
Initial value:
= cT.Input(
doc="Input definition of geometry/bbox and projection/wcs for coadded exposures",
name="{name_skymap}",
storageClass="SkyMap",
dimensions=("skymap",),
)

Definition at line 72 of file diff_matched_tract_catalog.py.

◆ target_sharding_type

lsst.pipe.tasks.diff_matched_tract_catalog.DiffMatchedTractCatalogConfig.target_sharding_type
static
Initial value:
= pexConfig.ChoiceField[str](
doc="The type of sharding (spatial splitting) for the target catalog",
allowed={"tract": "Tract-based shards", "none": "No sharding at all"},
default="tract",
)

Definition at line 281 of file diff_matched_tract_catalog.py.


The documentation for this class was generated from the following file: