Navigation

  • index
  • modules |
  • linefinder 0.9.2 documentation »

linefinder.galaxy_find module¶

Means to associate particles with galaxies and halos at any given time.

@author: Zach Hafen @contact: zachary.h.hafen@gmail.com @status: Development

class linefinder.galaxy_link.ParticleTrackGalaxyLinker(out_dir, tag, main_mt_halo_id, mtree_halos_index=None, halo_file_tag='smooth', halo_data_dir=<object object>, ptracks_tag=<object object>, galaxy_cut=4.0, length_scale='Rstar0.5', mt_length_scale='sRstar0.5', ids_to_return=['gal_id', 'mt_gal_id', '1.0_Rvir', '2.0_Rvir', 'd_other_gal', 'd_other_gal_scaled'], ids_with_supplementary_data=[], supplementary_data_keys=[], minimum_criteria='n_star', minimum_value=10, n_processors=1)[source]¶

Bases: object

Find the association with galaxies for entire particle tracks.

find_galaxies_for_particle_tracks()[source]¶

Main function.

find_galaxies_for_particle_tracks_jug()[source]¶

Main function when using jug

get_galaxy_identification_loop()[source]¶

Loop over all snapshots and identify the galaxy in each.

Modifies:
self.ptrack_gal_ids (dict) : Where the galaxy IDs are stored.
get_galaxy_identification_loop_jug()[source]¶

Loop over all snapshots and identify the galaxy in each. Use Jug for parallelism.

Modifies:
self.ptrack_gal_ids (dict) : Where the galaxy IDs are stored.
get_galaxy_identification_loop_parallel()[source]¶

Loop over all snapshots and identify the galaxy in each.

Modifies:
self.ptrack_gal_ids (dict) : Where the galaxy IDs are stored.
read_data()[source]¶

Read the input data.

Modifies:
self.ptrack (h5py file) : Loaded tracked particle data. self.halo_data (HaloData instance): For the halo data.
write_galaxy_identifications(ptrack_gal_ids)[source]¶

Write the data, close the file, and print out information.

This Page

  • Show Source

Quick search

Navigation

  • index
  • modules |
  • linefinder 0.9.2 documentation »
© Copyright 2018, Zachary Hafen. Created using Sphinx 1.8.2.