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

GadgetParticleDataset.get_field_metadata(group_name: str, field_name: str) dict#

Get the metadata attributes for a specific field in a particle group.

This method retrieves all attributes associated with a given field in a particle group and returns them as a dictionary. It is used to access metadata such as units, data type, and any additional attributes defined by the user.

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

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

Returns:

A dictionary containing all metadata attributes for the specified field.

Return type:

dict

Raises:

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