Assignment and Linking

Assignment

assignment.assign_central_galaxies(obj, central_mass_definition='total')[source]

Assign central galaxies.

Iterate through halos and consider the most massive galaxy within a central and all other satellites.

Parameters

obj (main.CAESAR) – Object containing the galaxies to assign centrals. Halos must already be assigned via assign_galaxies_to_halos.

assignment.assign_clouds_to_galaxies(obj)[source]

Assign clouds to galaxies.

This function compares cloud_glist with galaxy_glist to determine which galaxy the majority of particles within each cloud lies. Finally we assign the .clouds list to each galaxy.

Parameters

obj (main.CAESAR) – Object containing the galaxies and halos lists.

assignment.assign_galaxies_to_halos(obj)[source]

Assign galaxies to halos.

This function compares galaxy_glist + galaxy_slist with halo_glist + halo_slist to determine which halo the majority of particles within each galaxy lie. Finally we assign the .galaxies list to each halo.

Parameters

obj (main.CAESAR) – Object containing the galaxies and halos lists.

Linking

linking.create_sublists(obj)[source]

Create sublists of objects.

Will create the sublists:
  • central_galaxies

  • satellite_galaxies

  • unassigned_galaxies (those without a halo)

Parameters

obj (main.CAESAR) – Object containing halos and galaxies lists already linked.

Link clouds and galaxies to one another.

This function creates the links between cloud–>galaxy and galaxy–>cloud objects. Is run during creation, and loading in of each CAESAR file.

Parameters

obj (main.CAESAR) – Object containing halos and galaxies lists.

Link galaxies and halos to one another.

This function creates the links between galaxy–>halo and halo–>galaxy objects. Is run during creation, and loading in of each CAESAR file.

Parameters

obj (main.CAESAR) – Object containing halos and galaxies lists.