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 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 mock ID of the random points

  • ra Right Ascension of the random points

  • dec Delination of the random points

  • z Redshift of the random points

  • qlist 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