catl_keys¶
-
sdss_catl_utils.mocks_manager.catl_utils.catl_keys(catl_kind='data', perf_opt=False, return_type='list')[source] [edit on github]¶ Provides a dictionary/list with the corresponding keys for 1) halo mass, 2) Haloid/GroupID, 3) Group/Halo Galaxy-Type.
Parameters: - catl_kind : {
data,mocks}str, optional Type of the catalogue being analyzed. This variable corresponds to whether a
realorsynthetic/mockcatalogue is being read/analyzed. This variable is set todataby default.- Options:
data: Catalogue(s) from the SDSSrealcataloguesmocks: Catalogue(s) from themockcatalogues.
- perf_opt :
bool, optional If
True, it returns the corresponding keys for aperfectSDSS catalogue. This option only applies whencatl_kind == 'mocks'.- return_type : {
list,dict}str, optional Type of output to be returned. This variable is set to
listby default.- Options:
list: Returns the output as part of a list. The order of- the elements are:
'group mass','groupid/haloid', andGroup/Halo ID.
Returns: Raises: - SDSSCatlUtils_Error : Exception from
SDSSCatlUtils_Error Program exception if input parameters are
notaccepted.
Examples
This function can be used for several different combinations of parameters. For example, if we wanted to analyze a
datacatalogue, and have this function return alistas the output, one could write:>>> catl_keys(catl_kind='data', return_type='list') ['M_h', 'groupid', 'galtype']
This list corresponds to the 1) Group estimated mass, 2) Galaxy’s group ID, and 3) Galaxy’s group galaxy type.
If instead, we wanted to analyze
perfect mock catalogues, we could write:>>> catl_keys(catl_kind='mocks', perf_opt=True, return_type='list') ['M_h', 'haloid', 'galtype']
For more information and examples, please refer to Getting started with SDSS_Catl_Utils.
- catl_kind : {