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 default paths.params will be used

  • fullpaths (dict) – Pipeline file paths in a dictionary format. If None then the default paths.fullpaths will be used

  • which (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 and fullpaths! Using inconsitent definitions result in a SyntaxError.

The first output is a dict with the following keys:

  • id catalog ID of the lenses

  • ra Right Ascension of the lenses

  • dec Delination of the lenses

  • z Redshift of the lenses

  • qlist np.array of quantities with shape (n_lens, n_quantity)