sdss_catl_clean

cosmo_utils.mock_catalogues.catls_utils.sdss_catl_clean(catl_pd, catl_kind, catl_info='members', reindex=True)[source] [edit on github]

Cleans the catalogue by removing failed values.

Parameters:

catl_pd : pandas.DataFrame

Dataset with the catalogue information.

catl_kind : {‘data’, ‘mocks’} str, optional

Type of catalogue to use. This variable is set to data by default.

Options:
  • data : catalogues come from SDSS real catalogue
  • mocks : catalogue come from SDSS mock catalogues

catl_info : {‘members’, ‘groups’} str, optional

Option for which kind of catalogues to use.

Options:
  • members : Member galaxies of group catalogues
  • groups : Catalogues with group information.

reindex : bool, optional

If True, the output catalogue is re-indexed.

Raises:

LSSUtils_Error : Exception from LSSUtils_Error

Program exception if input parameters are accepted.