Welcome to the Navigation Module! To track the ISS, we need to understand its position in space. The ISS provides its location using Latitude, Longitude, and Altitude.
Your first task is to establish a fix on the ISS's location. We will retrieve the raw coordinate data and convert it into a format suitable for complex navigation calculations.
rad = deg * (π / 180)Objective: Calculate the total distance from the Earth's center to the ISS.
Instructions:
Provides real-time (simulated) coordinate data for the International Space Station.
| Usage | Description |
|---|---|
| iss = ISS() | Initialize the ISS tracker. |
| iss.get_coordinates() | Returns a dictionary with latitude, longitude, altitude, and timestamp. |
Standard Python library for mathematical functions.
| Usage | Description |
|---|---|
| math.pi | The constant Pi (3.14159...) |
Standard Python library for handling dates and times.
| Usage | Description |
|---|---|
| datetime.fromtimestamp(ts) | Converts a Unix timestamp (seconds) to a readable date object. |
| dt.strftime("%Y-%m-%d %H:%M:%S") | Formats a date object as a string (e.g., "2025-12-10 14:30:00"). |