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
OverpassInfo
dataclass
#
Stores details about an EarthCARE satellite overpass.
Attributes:
| Name | Type | Description |
|---|---|---|
site_name |
str
|
Name of the site flown over. |
site_lat_deg_north |
float
|
Site latitude in degrees north. |
site_lon_deg_east |
float
|
Site longitude in degrees east. |
site_radius_km |
float
|
Search radius around the site in kilometers. |
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
|
Longitude at the start of the overpass. |
end_lat_deg_north |
float
|
Latitude at the end of the overpass. |
end_lon_deg_east |
float
|
Longitude at the end of the overpass. |
closest_index |
int
|
Index of the sample geographically closest to the site. |
closest_lat_deg_north |
float
|
Latitude of the closest sample. |
closest_lon_deg_east |
float
|
Longitude of the closest sample. |
closest_time |
Timestamp
|
Time of the closest sample. |
closest_distance_km |
float
|
Distance to the closest sample in kilometers. |
along_track_distance_km |
float
|
Distance along the overpass track within the radius. |
frame_crosses_pole |
bool
|
Whether the track crosses a pole (any point, not just within radius). |
samples |
int
|
Number of samples within the radius. |
site |
Site
|
Site object. |
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 | |
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
Extracts overpass details including duration, distance, time, and closest index.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ds
|
str | Dataset
|
Dataset or file path with along-track satellite data. |
required |
site
|
SiteLike
|
Site name or object over which the satellite passes. |
required |
radius_km
|
float | int
|
Search radius in kilometers; defaults to 100. |
100.0
|
time_var
|
str
|
Time variable name. |
TIME_VAR
|
lat_var
|
str
|
Latitude variable name. |
TRACK_LAT_VAR
|
lon_var
|
str
|
Longitude variable name. |
TRACK_LON_VAR
|
along_track_dim
|
str
|
Along-track dimension name. |
ALONG_TRACK_DIM
|
Returns:
| Type | Description |
|---|---|
OverpassInfo
|
An |