uxarray.grid.integrate._is_edge_gca

Contents

uxarray.grid.integrate._is_edge_gca#

uxarray.grid.integrate._is_edge_gca(is_GCA_list, is_latlonface, edges_z)#

Determine if each edge is a Great Circle Arc (GCA) or a constant latitude line in a vectorized manner.

Parameters:#

is_GCA_listnp.ndarray or None

An array indicating whether each edge is a GCA (True) or a constant latitude line (False). Shape: (n_edges). If None, edge types are determined based on is_latlonface and the z-coordinates.

is_latlonfacebool

Flag indicating if all edges should be considered as lat-lon faces, which implies all edges are either constant latitude or longitude lines.

edges_znp.ndarray

Array containing the z-coordinates for each vertex of the edges. This is used to determine whether edges are on the equator or if they are aligned in latitude when is_GCA_list is None. Shape should be (n_edges, 2).

Returns:#

np.ndarray

A boolean array where each element indicates whether the corresponding edge is considered a GCA. True for GCA, False for constant latitude line.