Galaxia_ananke package#
Galaxia#
Provides a set of utilities to run a modified version of the synthetic star survey generator Galaxia (Sharma et al 2011 <http://ascl.net/1101.007>).
How to use#
Galaxia comes with the function make_survey_from_particles, please refer to its documentation for further help.
- Galaxia_ananke.make_survey_from_particles(*args, pname=None, kname=None, photo_sys=['padova/GAIA__DR2'], cmd_magnames='G,Gbp-Grp', simname='sim', surveyname='survey', fsample=1, ngb=64, k_factor=1, **kwargs)[source]#
Returns a handler object representing the synthetic star survey generated by Galaxia given the properties of an input set of particles and various survey parameters.
Call signatures:
output = make_survey_from_particles(particles, rho_pos, rho_vel, photo_sys=DEFAULT_PSYS, cmd_magnames=DEFAULT_CMD, simname='sim', surveyname='survey', fsample=1, ngb=64, **kwargs) output = make_survey_from_particles(pname=None, kname=None, photo_sys=DEFAULT_PSYS, cmd_magnames=DEFAULT_CMD, surveyname='survey', fsample=1, **kwargs)
- Parameters:
particles (dict) – Dictionary where each elements represent the properties of the input particles, given as equal-length array_like objects. Refer to Input documentation for appropriate formatting. Galaxia_ananke also comes packaged with a function make_dummy_particles_input to produce a dummy example for that dictionary.
rho_pos (array_like) – Contains the position-determined kernel density estimates for the input particles. Must have equal lengths as the elements in the particles dictionary.
rho_vel (array_like) – Contains the velocity-determined kernel density estimates for the input particles. Must have equal lengths as the elements in the particles dictionary.
pname (string) – Path to existing pre-formatted particles EBF files to use as input for Galaxia. This keyword argument must be used in conjunction with kname. Default to None if unused.
kname (string) – Path to existing pre-formatted kernel EBF files to use as input for Galaxia. This keyword argument must be used in conjunction with pname. Default to None if unused.
photo_sys (string or list) – Name(s) of the photometric system(s) Galaxia should use to generate the survey. Default to DEFAULT_PSYS - refer to the package constants. Available photometric systems can be found with the photometry submodule - please refer to its documentation for further details.
cmd_magnames (string) – Names of the filters Galaxia should use for the color-magnitude diagram box selection. The given string must meet the following format: f”{band1},{band2}-{band3}” where band1 is the magnitude filter and (band2, band3) are the filters that define the band2-band3 color index. The filter names must correspond to filters that are part of the first chosen photometric system in photo_sys. Default to DEFAULT_CMD - refer to the package constants.
simname (string) – Optional name Galaxia should use for the input files. Default to ‘sim’.
surveyname (string) – Optional name Galaxia should use for the output files. Default to ‘survey’.
fsample (float) – Sampling rate from 0 to 1 for the resulting synthetic star survey. 1 returns a full sample while any value below returns partial surveys. Default to 1.
ngb (int) – Number of neighbouring particles Galaxia should consider. Default to 64.
k_factor (float) – Scaling factor applied to the kernels lengths to adjust all the kernels sizes uniformly. Lower values reduces the kernels extents, while higher values increases them. Default to 1 (no adjustment).
**kwargs – Additional keyword arguments to customize the survey. Refer to constant PARFILE_TEMPLATE for all the possible keyword arguments.
- Returns:
output – Handler with utilities to utilize the output survey and its data.
- Return type:
Subpackages#
- Galaxia_ananke.photometry package
Submodules#
- Galaxia_ananke.Input module
InputInput.__init__()Input.particles_dictionary_descriptionInput.all_possible_keys_in_particlesInput.particlesInput.lengthInput.rho_posInput.rho_velInput.rhoInput.hdimInput.nameInput.ngbInput.k_factorInput.kernelsInput.knameInput.pnameInput.keys()Input.optional_keys()Input.prepare_input()Input.make_dummy_particles_input()Input.make_dummy_densities_input()
- Galaxia_ananke.Output module
- Galaxia_ananke.Survey module
- Galaxia_ananke.utils module