Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion imap_processing/ialirt/calculate_ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

logger = logging.getLogger(__name__)

STATIONS = ["Kiel", "UKSA", "tlmrelay"]
STATIONS = ["Kiel", "SANSA", "UKSA", "tlmrelay"]


def packets_created(start_file_creation: datetime, lines: list) -> dict:
Expand Down
6 changes: 3 additions & 3 deletions imap_processing/ialirt/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ class StationProperties(NamedTuple):
schedule_end=None,
),
"SANSA": StationProperties(
longitude=27.714, # degrees East (negative = West)
latitude=-25.888, # degrees North (negative = South)
altitude=1.542, # approx 1542 meters
longitude=27.707468, # degrees East (negative = West)
latitude=-25.886476, # degrees North (negative = South)
altitude=1.545, # approx 1545 meters
min_elevation_deg=2, # 5 degrees is the requirement
schedule_start=None,
schedule_end=None,
Expand Down
2 changes: 2 additions & 0 deletions imap_processing/ialirt/generate_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

ALL_STATIONS = [
"Kiel",
"SANSA",
"DSS-24",
"DSS-25",
"DSS-26",
Expand Down Expand Up @@ -110,6 +111,7 @@ def generate_coverage( # noqa: PLR0912

stations = {
"Kiel": STATIONS["Kiel"],
"SANSA": STATIONS["SANSA"],
}
coverage_dict = {}
outage_dict = {}
Expand Down
4 changes: 4 additions & 0 deletions imap_processing/tests/ialirt/unit/test_calculate_ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ def test_packets_created():
],
"rate_kbps": [2.0, 2.0],
},
"SANSA": {
"last_data_received": [],
"rate_kbps": [],
},
"UKSA": {
"last_data_received": [],
"rate_kbps": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def test_dsn(furnish_kernels):
)

assert "I-ALiRT Coverage Summary" in output["summary"]
assert 40.6 == output["total_coverage_percent"]
assert 49.3 == output["total_coverage_percent"]


@patch("imap_processing.ialirt.generate_coverage.et_to_utc")
Expand Down
Loading