pisces.models.core.utils.inspect_model_coordinate_system#
- pisces.models.core.utils.inspect_model_coordinate_system(path: str | Path, registry: Registry | None = None)[source]#
Inspect the coordinate system of a model without fully instantiating the model.
This function:
Opens the model’s HDF5 file.
Loads the
/GRID
group usingload_grid()
.Returns the grid’s
coordinate_system
object.
- Parameters:
- Returns:
The coordinate system instance associated with the model’s grid.
- Return type:
CoordinateSystem
- Raises:
FileNotFoundError – If the file does not exist or is not a file.
KeyError – If the file does not contain a
/GRID
group.AttributeError – If the loaded grid does not define a
coordinate_system
attribute.