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
Nonethen the defaultpaths.paramswill be usedfullpaths (dict) – Pipeline file paths in a dictionary format. If
Nonethen the defaultpaths.fullpathswill 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
paramsandfullpaths! Using inconsitent definitions result in aSyntaxError.The first output is a dict with the following keys:
idmock ID of the random pointsraRight Ascension of the random pointsdecDelination of the random pointszRedshift of the random pointsqlistnp.array of mock quantities with shape (n_lens, n_quantity). This refers to the mock quantities assigned to the randoms points,wweight of the random points