Photos taken in space are useless if we don't know WHERE they were taken. We use EXIF metadata to store the location directly inside the image file.
Scientists need to match each photo with the exact location of the ISS at that moment. We will automate this process by "geotagging" our images.
Objective: Capture the ISS position and embed it into an image.
Instructions:
iss.get_position() to get the current coordinates.Image("photo.jpg") object.loc.latitude to my_image.gps_latitude.loc.longitude to my_image.gps_longitude.my_image.list_all().Tools for reading and writing image metadata.
| Usage | Description |
|---|---|
| img = Image(file) | Load an image object. |
| img.gps_latitude = val | Set the latitude tag. |
| img.list_all() | List all current tags. |
Provides information about the ISS orbit and position.
| Usage | Description |
|---|---|
| iss = ISS() | Initialize the ISS interface. |
| iss.get_position() | Returns an object with .latitude and .longitude. |