redplanet.Crust.boug.get
get(
lon: float | numpy.ndarray,
lat: float | numpy.ndarray,
as_xarray: bool = False,
) -> (
float | numpy.ndarray | xarray.core.dataarray.DataArray
)
Get Bouguer anomaly values at the specified coordinates. Dataset must be loaded first, see redplanet.Crust.boug.load(...)
.
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 |
---|---|
float | np.ndarray | xr.DataArray
|
Data values at the the input coordinates. The return type is determined as follows:
Units are milligals [mGal]. |