pvtend.sh_ops.is_nh_grid

pvtend.sh_ops.is_nh_grid(lat: ndarray, tol: float = 0.001) bool[source]

Detect whether lat covers only the Northern Hemisphere.

Parameters:
  • lat – Latitudes in degrees, monotonically ascending or descending.

  • tol – Tolerance on the equator endpoint (degrees).

Returns:

True when the latitudes start at or near the equator and end at the north pole; False for a full-globe grid.