redplanet.Mag.depth.get_nearest
get_nearest(
lon: float, lat: float, as_dict: bool = False
) -> pandas.core.frame.DataFrame | list[dict]
Get magnetic source depth data, sorted from closest to furthest from the given point.
For source of the dataset, see references of help(redplanet.Mag.depth.get_nearest)
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
lon
|
float
|
Longitude coordinate in range [-180, 360]. |
required |
lat
|
float
|
Latitude coordinate in range [-90, 90]. |
required |
as_dict
|
bool
|
If True, return the data as a list of dictionaries. Default is False. |
False
|
Returns:
Type | Description |
---|---|
pd.DataFrame | list[dict]
|
Information about all 412 dipoles, sorted from closest to furthest from the given input coordinate. Columns are identical to those in
|