velociraptor.catalogue.translator module

Routines that provide translation of velociraptor quantities into something a little more human readable, or to internal quantities.

velociraptor.catalogue.translator.VR_to_SOAP(particle_property_name: str) → str[source]

Convert a VR property name into its SOAP counterpart (if one exists).

Parameters:particle_property_name (-) – str VR-like property name.

Returns the SOAP-like equivalent of the same name, if one exists.

velociraptor.catalogue.translator.typo_correct(particle_property_name: str)[source]

Corrects for any typos in field names that may exist.

velociraptor.catalogue.translator.get_aperture_unit(unit_name: str, unit_system: velociraptor.units.VelociraptorUnits)[source]

Converts the velociraptor strings to internal velociraptor units from the naming convention in the velociraptor files.

velociraptor.catalogue.translator.get_particle_property_name_conversion(name: str, ptype: str)[source]

Takes an internal velociraptor particle property and returns a fancier name for use in plot legends. Typically used for the complex aperture properties.