pisces.models.galaxy_clusters.spherical.SphericalGalaxyClusterModel.get_field#

SphericalGalaxyClusterModel.get_field(name: str) unyt_array | ndarray#

Retrieve a physical field by name.

Parameters:

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

Returns:

The requested field as a unyt_array with units, or a plain numpy.ndarray if unitless.

Return type:

unyt_array or numpy.ndarray

Raises:

KeyError – If the field does not exist in the model.