xpipe.xhandle.parbins.load_randcat¶
- xpipe.xhandle.parbins.load_randcat(params=None, fullpaths=None, which=None)[source]¶
Loads random point catalog from fits file
- Parameters
params (dict) – Pipeline settings in a dictionary format. If
None
then the defaultpaths.params
will be usedfullpaths (dict) – Pipeline file paths in a dictionary format. If
None
then the defaultpaths.fullpaths
will be usedwhich (int or tuple) – if lens catalog consists of multiple file, this is the index for which to load. It should index the paths.fullpaths list to recover the absolute filepath of the loaded file
- Returns
lens catalog data in format,
bool array for selection,
raw data table before selection
- Return type
dict, np.array, record-array
Notes
If using custom settings, you have to specify both
params
andfullpaths
! Using inconsitent definitions result in aSyntaxError
.The first output is a dict with the following keys:
id
mock ID of the random pointsra
Right Ascension of the random pointsdec
Delination of the random pointsz
Redshift of the random pointsqlist
np.array of mock quantities with shape (n_lens, n_quantity). This refers to the mock quantities assigned to the randoms points,w
weight of the random points