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

GadgetParticleDataset.get_particle_field(group_name: str, field_name: str) unyt_array#

Get the particle field data as a unyt array.

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

  • field_name (str) – The name of the field to retrieve.

Returns:

The data for the specified field, converted to a unyt array.

Return type:

unyt.array.unyt_array

Raises:

KeyError – If the specified group or field does not exist in the dataset.