redplanet.Crust.dichotomy.is_above
is_above(
lon: float | numpy.ndarray,
lat: float | numpy.ndarray,
as_xarray: bool = False,
) -> bool | numpy.ndarray | xarray.core.dataarray.DataArray
Determine if the given point(s) are above the dichotomy boundary.
See help(redplanet.Crust.dichotomy.get_coords)
for the source of the dichotomy boundary coordinates data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
lon
|
float | np.ndarray
|
Longitude coordinate(s) in range [-180, 360]. |
required |
lat
|
float | np.ndarray
|
Latitude coordinate(s) in range [-90, 90]. |
required |
as_xarray
|
bool
|
If True, return the data as an |
False
|
Returns:
Type | Description |
---|---|
bool | np.ndarray | xr.DataArray
|
Boolean array indicating whether the input coordinates are above the dichotomy boundary. If both inputs are 1D numpy arrays then it returns a 2D numpy array with shape |