UserPointsSlicer¶
- class rubin_sim.maf.slicers.UserPointsSlicer(ra, dec, lon_col='fieldRA', lat_col='fieldDec', lat_lon_deg=True, verbose=True, badval=-666, leafsize=100, radius=2.45, use_camera=True, camera_footprint_file=None, rot_sky_pos_col_name='rotSkyPos')¶
Bases:
BaseSpatialSlicer
A spatial slicer that evaluates pointings overlapping user-provided list of points.
- Parameters:
- ra
list
ornumpy.ndarray
User-selected RA points, in degrees. Stored internally in radians.
- dec
list
ornumpy.ndarray
User-selected Dec points, in degrees. Stored internally in radians.
- lon_col
str
, optional Name of the longitude (RA equivalent) column to use from the input data. Default fieldRA
- lat_col
str
, optional Name of the latitude (Dec equivalent) column to use from the input data. Default fieldDec
- latLonDeg
bool
, optional Flag indicating whether the lon and lat values will be in degrees (True) or radians (False). Default True (appropriate for opsim v4).
- verbose
bool
, optional Flag to indicate whether or not to write additional information to stdout during runtime. Default True.
- badval
float
, optional Bad value flag, relevant for plotting. Default -666.
- leafsize
int
, optional Leafsize value for kdtree. Default 100.
- radius
float
, optional Radius for matching in the kdtree. Equivalent to the radius of the FOV. Degrees. Default 2.45.
- use_camera
bool
, optional Flag to indicate whether to use the LSST camera footprint or not. Default True.
- camera_footprint_file
str
, optional Name of the camera footprint map to use. Can be None, which will use the default.
- rotSkyPosColName
str
, optional Name of the rotSkyPos column in the input data. Only used if use_camera is True. Describes the orientation of the camera orientation compared to the sky. Default rotSkyPos.
- ra