redplanet.Mag.depth.get_grid
Similar to get_nearest
, but significantly more optimized for accessing data over large areas by using a pre-computed grid of nearest dipole locations.
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 |
col
|
str
|
Name of dataset column to return. See |
required |
Returns:
Type | Description |
---|---|
np.ndarray
|
Data values at the input coordinates, with shape |
Raises:
Type | Description |
---|---|
ValueError
|
If the specified column is not found in the dataset. |