uxarray.grid.arcs.extreme_gca_latitude#
- uxarray.grid.arcs.extreme_gca_latitude(gca_cart, gca_lonlat, extreme_type)#
Calculate the maximum or minimum latitude of a great circle arc defined by two 3D points.
- Parameters:
gca_cart (numpy.ndarray) – An array containing two 3D vectors that define a great circle arc.
gca_lonlat (numpy.ndarray) – An array containing the longitude and latitude of the two points.
extreme_type (str) – The type of extreme latitude to calculate. Must be either ‘max’ or ‘min’.
- Returns:
The maximum or minimum latitude of the great circle arc in radians.
- Return type:
- Raises:
ValueError – If extreme_type is not ‘max’ or ‘min’.
References
Chen, H., Ullrich, P. A., Panetta, J., Marsico, D., Hanke, M., Jain, R., Zhang, C., and Jacob, R. L. (2026). Accurate and robust geometric algorithms for regridding on the sphere. Geoscientific Model Development, 19(14), 6545-6570. https://doi.org/10.5194/gmd-19-6545-2026