API reference
earthcarekit.overpass
Utilities for processing satellite overpasses relative to ground stations.
Notes
This module depends on other internal modules:
- earthcarekit.constants
- earthcarekit.filter
- earthcarekit.geo
- earthcarekit.read
- earthcarekit.site
- earthcarekit.utils
-
API reference
API reference
plot Notes
OverpassInfo
dataclass
Class storing details about an overpass, including duration, distance, time, closest index, etc.
Attributes:
| Name | Type | Description |
|---|---|---|
site_name |
str
|
Name of the site flown over. |
site_lat_deg_north |
float
|
Latitude of the site in degrees north. |
site_lon_deg_east |
float
|
Longitude of the site in degrees north. |
site_radius_km |
float
|
Radius in kilometers around the site the overpass took place. |
start_index |
int
|
Index at the start of the overpass. |
end_index |
int
|
Index at the end of the overpass. |
start_time |
Timestamp
|
Time at the start of the overpass. |
end_time |
Timestamp
|
Time at the end of the overpass. |
start_lat_deg_north |
float
|
Latitude at the start of the overpass. |
start_lon_deg_east |
float
|
Latitude at the end of the overpass. |
end_lat_deg_north |
float
|
Longitude at the start of the overpass. |
end_lon_deg_east |
float
|
Longitude at the end of the overpass. |
closest_index |
int
|
Index of the data sample that is geographically closest to the site. |
closest_lat_deg_north |
float
|
Latitude of the data sample that is geographically closest to the site. |
closest_lon_deg_east |
float
|
Longitude of the data sample that is geographically closest to the site. |
closest_time |
Timestamp
|
Timestamp of the data sample that is geographically closest to the site. |
closest_distance_km |
float
|
Distance in kilometers of the data sample that is geographically closest to the site. |
along_track_distance_km |
float
|
Distance in kilometers along the overpass track withing the set radius. |
frame_crosses_pole |
bool
|
Whether the original track crosses a pole at any point (not necessarily within the radius). |
samples |
int
|
Number of data sample within the radius. |
site |
Site
|
Site object. |
- API reference
Source code in earthcarekit/overpass/_overpass_info.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | |
closest_coords
property
Returns lat/lon coordinates where the satellite is geographically closest to the site.
end_coords
property
Returns lat/lon coordinates of the satellite at the end of the overpass.
site_coords
property
Returns lat/lon coordinates of the overpassed site or center.
start_coords
property
Returns lat/lon coordinates of the satellite at the start of the overpass.
time_range
property
Returns start and end times of the overpass.
to_dataframe
Returns overpass info as a pandas.Dataframe.
Source code in earthcarekit/overpass/_overpass_info.py
to_dict
Returns overpass info as a Python dict.
Source code in earthcarekit/overpass/_overpass_info.py
get_overpass_info
get_overpass_info(
ds: str | Dataset,
site: SiteLike,
radius_km: float | int = 100.0,
*,
time_var: str = TIME_VAR,
lat_var: str = TRACK_LAT_VAR,
lon_var: str = TRACK_LON_VAR,
along_track_dim: str = ALONG_TRACK_DIM
) -> OverpassInfo
Extract details about an overpass, including duration, distance, time, closest index, etc.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ds
|
str | Dataset
|
Path to or instance of a dataset containing along-track satellite data. |
required |
site
|
SiteLike
|
Site name or object over which the satellite is passing. |
required |
radius_km
|
float | int
|
Radius to look for an overpass in kilometers. Defaults to 100. |
100.0
|
time_var
|
str
|
Name of the dataset variable containing time data. Defaults to "time". |
TIME_VAR
|
lat_var
|
str
|
Name of the dataset variable containing latitude data. Defaults to "latitude". |
TRACK_LAT_VAR
|
lon_var
|
str
|
Name of the dataset variable containing longitude data. Defaults to "longitude". |
TRACK_LON_VAR
|
along_track_dim
|
str
|
Name of the along-track or temporal dataset dimension. Defaults to "along_track". |
ALONG_TRACK_DIM
|
Raises:
| Type | Description |
|---|---|
TypeError
|
If |
Returns:
| Name | Type | Description |
|---|---|---|
OverpassInfo |
OverpassInfo
|
description |