xpipe.xhandle.parbins.load_lenscat¶
- xpipe.xhandle.parbins.load_lenscat(params=None, fullpaths=None, which=None)[source]¶
Loads lens 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
catalog ID of the lensesra
Right Ascension of the lensesdec
Delination of the lensesz
Redshift of the lensesqlist
np.array of quantities with shape (n_lens, n_quantity)