SpaceMass / SpaceCamera

Class project
2 stars 4 forks source link

Store data to easy to access form #3

Closed danielcsims closed 10 years ago

danielcsims commented 10 years ago

Date is now stored in this matter

To access the 3rd location's name, one would do data_from_xml[0][3]

so, basically, data_from_xml[data type][location]

where data type for that particular location is 0=location 1=Time in GMT 2=Lens Type 3=Weather 4=nadir_true_false 5=track

4 - Nadir tell the user weather or not the target is directly below.

5 - Track gives left of track, right of track or closest approach depending on the XML file.

The full data set is

data_from_xml = [['Zagreb, Croatia', 'Pristina, Kosovo', 'St. Georges, Grenada', 'Georgetown, Guyana', 'Andrews Forest, Oregon', 'Belize Barrier Reef Res.'], ['06:13:57', '06:15:14', '14:10:59', '14:12:40', '15:31:45', '15:42:31'], ['180, 400', '180, 400', '400, 800', '400, 800', '400, 800', '50, 180;'], ['The pass will take place during Early Morning Local Time Cloud conditions are clear', 'The pass will take place during Early Morning Local Time Cloud conditions are clear', 'The pass will take place during Mid-morning local time Cloud conditions are partly cloudy', 'The pass will take place during Mid-morning local time Cloud conditions are partly cloudy', 'The pass will take place during Early Morning Local Time Cloud conditions are clear', 'The pass will take place during Mid-morning local time Cloud conditions are partly cloudy'], [True, True, True, True, True, False], ['lat: 45.45, lon: 15.86 at 06:14:21', 'lat: 43.01, lon: 21.38 at 06:15:36', 'lat: 11.96, lon: -61.90 at 14:11:22', 'lat: 6.86, lon: -58.16 at 14:13:03', 'lat: 44.01, lon: -122.30 at 15:32:09', 'left of track'], [...]]