pisces.extensions.simulation.gadget.particles.GadgetParticleDataset.get_field_units#

GadgetParticleDataset.get_field_units(group_name: str, field_name: str) Unit#

Get the units of a specific particle field.

Parameters:
  • group_name (str) – The name of the particle group containing the field.

  • field_name (str) – The name of the field whose units are to be retrieved.

Returns:

The units of the specified field as a unyt Unit object.

Return type:

Unit