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_arraywith units, or a plainnumpy.ndarrayif unitless.- Return type:
unyt_arrayornumpy.ndarray- Raises:
KeyError – If the field does not exist in the model.