catl_clean¶
-
sdss_catl_utils.mocks_manager.catl_utils.catl_clean(catl_pd, catl_kind, catl_info='memb', reindex=True)[source] [edit on github]¶ Cleans and removes the
badrows, i.e. those that containfailedentries for sSFR and Mstar.Parameters: - catl_pd :
pandas.DataFrame DataFrame containing the information about galaxies or galaxy groups.
- catl_kind : {
data,mocks}str, optional Type of the catalogue being analyzed. This variable corresponds to whether a
realorsynthetic/mockcatalogue is being read/analyzed.- Options:
data: Catalogue(s) from the SDSSrealcataloguesmocks: Catalogue(s) from themockcatalogues.
- catl_info : {
memb,groups}bool, optional Option for which type of catalogue is being analyzed. This variable correspondos to whether a
galaxy-catalogue or agroup-catalogue is being analyzed. This variable is set tomembby default.- Options:
memb: Galaxy catalogue with themembergalaxies of groups.groups: Catalogues withgroupinformation.
- reindex :
bool, optional If
True, the output catalogue is reindexed from the original dataframecatl_pd. This variable is set toTrueby default.
Returns: - catl_pd_mod :
pandas.DataFrame Modified clean version of
catl_pd. It removes thefailedvalues.
Raises: - SDSSCatlUtils_Error : Exception from
SDSSCatlUtils_Error Program exception if input parameters are
notaccepted.
- catl_pd :