construct_rays
- salsa.construct_rays(ds_file, start_points, end_points, impact_params, fld_params=None, line_list=None, other_fields=None, ftype='gas', ray_directory='./')
Construct rays given a set of starting points and end points.
- Parameters:
ds_file (str or YT dataset) – path to dataset to be used to create rays
start_points (numpy array) – 1d array of starting points for each ray (code_length)
end_points (numpy array) – 1d array of end points for each ray (code_length)
impact_params (numpy array) – 1d array of impact parameters for each ray (code_length). Used to save the impact parameter to the ray dataset.
fld_params (dict, optional) – Dictionary of parameters that will be passed to the lightrays. (ie center, bulk_velocity). Default: None
line_list (list) – list of ions to add to light rays. None defaults to H I, C IV, and O VI
other_fields (list) – other yt fields to add to light rays. None defaults to density, metallicity, and temperature
ftype (str) – The field to be passed to trident that ion fields will be added to, i.e. (‘gas’, ‘H_p0_number_density’). ‘gas’ should work for most grid-based simulations. For particle-based simulations this will not work and needs to be changed. ‘PartType0’ often works though it varies. See trident.make_simple_ray() for more information
ray_directory (str/path) – where to save all of the lightrays