velociraptor.tools.labels module

Tools for generating labels from catalogue datasets.

velociraptor.tools.labels.get_full_label(dataset: unyt.array.unyt_array)[source]

Get the full label for one of our VelociraptorCatalogue datasets. This will get the automatically generated name and concatenate it with the _current_ untis for that dataset.

velociraptor.tools.labels.get_mass_function_label_no_units(mass_function_sub_label: str)[source]

Gets a fancy mass-function label such as:

d$n(M_*)$/d$log_{10}M_*$ [Mpc$^{-3}$]

(this would be for an input of “*” and unyt.Mpc**3).

velociraptor.tools.labels.get_mass_function_label(mass_function_sub_label: str, mass_function_units: unyt.unit_object.Unit)[source]

Gets a fancy mass-function label such as:

d$n(M_*)$/d$log_{10}M_*$ [Mpc$^{-3}$]

(this would be for an input of “*” and unyt.Mpc**3).

velociraptor.tools.labels.get_luminosity_function_label_no_units(luminosity_function_sub_label: str)[source]

Gets a fancy luminosity-function label such as:

d$n(M)$/d$M$ [Mpc$^{-3}$ mag$^{-1}$]

(this would be for an input of “*” and unyt.Mpc**3).