MagSelector¶
- class lsst.analysis.tools.actions.vector.MagSelector(*args, **kw)¶
- Bases: - SelectorBase- Selects points that have minMag < mag (AB) < maxMag. - The magnitude is based on the given fluxType. - Attributes Summary - The band(s) to apply the magnitude cut in. - Flux type to calculate the magnitude in. - Astropy unit of flux vector ( - str, default- 'nJy')- Maximum mag to include in the sample. - Minimum mag to include in the sample. - Key to use when populating plot info, ignored if empty string ( - str, default- '')- Use millimags or not? ( - bool, default- False)- Methods Summary - __call__(data, **kwargs)- Make a mask of that satisfies self.minMag < mag < self.maxMag. - Return the schema an - AnalysisActionexpects to be present in the arguments supplied to the __call__ method.- Attributes Documentation - bands¶
- The band(s) to apply the magnitude cut in. Takes precedence if bands passed to call. ( - List, default- [])
 - Methods Documentation - __call__(data: MutableMapping[str, ndarray[Any, dtype[_ScalarType_co]] | Scalar | HealSparseMap | Tensor | Mapping], **kwargs) ndarray[Any, dtype[_ScalarType_co]]¶
- Make a mask of that satisfies self.minMag < mag < self.maxMag. - The magnitude is based on the flux in self.fluxType. - Parameters:
- dataKeyedData
- The data to perform the magnitude selection on. 
 
- data
- Returns:
- resultVector
- A mask of the objects that satisfy the given magnitude cut. 
 
- result
 
 - getInputSchema() Mapping]]]¶
- Return the schema an - AnalysisActionexpects to be present in the arguments supplied to the __call__ method.- Returns:
- resultKeyedDataSchema
- The schema this action requires to be present when calling this action, keys are unformatted. 
 
- result