coordinates.core.CurvilinearCoordinateSystem.get_numeric_expression#

CurvilinearCoordinateSystem.get_numeric_expression(expression_name: str) Callable#

Retrieve a numerically evaluable version of a coordinate system expression given the expression name.

This method will search through the numerical expressions already generated in the instance and return the numerical version if it finds it. It will also search through all the symbolic expressions and try to perform a conversion to numerical.

Parameters:

expression_name (str) – The name of the symbolic expression to retrieve or convert.

Returns:

A numeric (callable) version of the symbolic expression.

Return type:

Callable

Raises:

KeyError – If the symbolic expression is not found.