-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.py
414 lines (355 loc) · 36.8 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
from flask import Flask, request, jsonify
from flask_sqlalchemy import SQLAlchemy
import os
import requests
db = SQLAlchemy()
def create_app():
app = Flask(__name__)
app.config.from_object(os.environ['APP_SETTINGS'])
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
db.init_app(app)
from main import main
app.register_blueprint(main)
return app
app = create_app()
from models import CelestialBodies, Landmark
if __name__ == '__main__':
app.run()
@app.cli.command('db_seed')
def db_seed():
mercury = CelestialBodies(name='Mercury',
image='https://cdn.mos.cms.futurecdn.net/GA4grWEsUYUqH58cDbRBw8.jpg',
celestial_body_type='Planet',
gravity=0.37,
planet_day=58.65,
planet_year=87.96,
background_image='https://www.howitworksdaily.com/wp-content/uploads/2138184.jpg')
venus = CelestialBodies(name='Venus',
image="https://static.scientificamerican.com/sciam/cache/file/F7E0BB0E-3F76-4AF5-92AC0951C2976728_source.jpg?w=590&h=800&DFEBF998-B3D7-484E-B66A7290DF06386E",
celestial_body_type='Planet',
gravity=0.90,
planet_day=243.02,
planet_year=224.70,
background_image='https://media.wired.com/photos/5932ec76d80dd005b42b0a0e/191:100/pass/VENUS_HQ_MOSAIC_enhanced_cropped.png')
mars = CelestialBodies(name='Mars',
image='https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcSY5oCXASYgKXI1MFGmRbgs9WmSnULsnOe_fg&usqp=CAU',
celestial_body_type='Planet',
gravity=0.38,
planet_day=1.02,
planet_year=686.98,
background_image='https://www.nasa.gov/centers/jpl/images/content/578708main_pia14507.jpg ')
jupiter = CelestialBodies(name='Jupiter',
image='https://3.bp.blogspot.com/-JzB2ruOjBOs/WJy8tR_tJSI/AAAAAAAABdA/26gANOQ4Y4IZyMnEGS2L8X-dvhVhGL0ZQCLcB/s1600/jupiter_HD.jpg',
celestial_body_type='Planet',
gravity=2.53,
planet_day=0.41,
planet_year=4332.59,
background_image='https://www.jpl.nasa.gov/spaceimages/images/largesize/PIA21970_hires.jpg')
saturn = CelestialBodies(name='Saturn',
image='https://solarsystem.nasa.gov/system/resources/list_images/2490_hubblesaturn_320.png',
celestial_body_type='Planet',
gravity=1.06,
planet_day=0.44,
planet_year=10759.22,
background_image='https://solarsystem.nasa.gov/system/news_items/main_images/712_PIA22766_hires.jpg')
uranus = CelestialBodies(name='Uranus',
image='https://www.nasa.gov/sites/default/files/styles/full_width_feature/public/thumbnails/image/pia18182-uranus-voyager1.png',
celestial_body_type='Planet',
gravity=0.90,
planet_day=0.72,
planet_year=30685.40,
background_image='https://api.time.com/wp-content/uploads/2017/10/uranus_nasa.jpg?quality=85&w=1200&h=628&crop=1')
neptune = CelestialBodies(name='Neptune',
image='https://media.wired.com/photos/5d04045bde1abfe4e801d054/191:100/w_2292,h_1200,c_limit/Science-Neptune-FA-PIA01492_orig.jpg',
celestial_body_type='Planet',
gravity=1.14,
planet_day=0.67,
planet_year=60189.00,
background_image='https://eos.org/wp-content/uploads/2018/12/neptune-rise-crescent-voyager-2.jpg')
moon = CelestialBodies(name='Moon',
image='https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcSA0QNeR2YGmCWvRtZqsYN9Ft44WxYJEArbtw&usqp=CAU',
celestial_body_type='Moon',
gravity=0.16,
planet_day=27.32,
planet_year=None,
background_image='https://i.pinimg.com/originals/aa/8b/f2/aa8bf218bcff4ffd81d1b60db59e731d.jpg')
sun = CelestialBodies(name='Sun',
image='https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRkKZ8nFulIMZAK8MKI8kzvsfGnaa3YlqMMRA&usqp=CAU',
celestial_body_type='Star',
gravity=27.95,
planet_day=25.38,
planet_year=None,
background_image='https://cdn.wccftech.com/wp-content/uploads/2016/12/PE_Still.jpg')
db.session.add(mercury)
db.session.add(venus)
db.session.add(mars)
db.session.add(jupiter)
db.session.add(saturn)
db.session.add(uranus)
db.session.add(neptune)
db.session.add(moon)
db.session.add(sun)
db.session.commit()
print('Database seeded!')
@app.cli.command('seed_landmark')
def seed_landmark():
solar_core = Landmark(name="Core",
image="https://cdn.mos.cms.futurecdn.net/WtnoFrpeLL37TLcjpzK5A7-970-80.jpg",
landmark_type="Structure",
description="Deep in the sun's core is the beating heart of the entire solar system. It's hard to believe that so much is powered by a reaction on the atomic scale. Under pressure from the gravity of the sun being so massive, hydrogen atoms fuse into helium, providing the energy that lights up the entire solar system. It produces 1.8 billion times the energy of the largest nuclear bomb detonated on Earth... every single second!",
celestial_body_id=9)
photosphere = Landmark(name="Photosphere",
image="https://astronomy.swin.edu.au/cms/cpg15x/albums/scaled_cache/897b42ce97bcd409a597f1392b2dd379-280x229.png",
landmark_type="Structure",
description="When you look up into the sky (but hopefully not directly!) the bright ball of the photosphere is the part of the sun you're looking at. Though often depicted as being yellow, the light from the sun is white. When it hits the Earth's atmosphere, a phenomenon called Rayleigh scattering causes it to look yellow, as well as the sky blue. The same phenomenon is responsible for the brilliant colors of both sunrises and sunsets.",
celestial_body_id=9)
corona = Landmark(name="Corona",
image="https://media.wired.com/photos/5e62e4af2ee19f000853234b/master/w_1600%2Cc_limit/photo_space_corona_1_AFRC2017-0233-006.jpg",
landmark_type="Atmosphere",
description="Just like the Earth, the sun also has an atmosphere. The largest part of it is known as its corona. Though it is not usually visible thanks to the brightness of the photosphere, during eclipses - when the moon's orbit puts it in the right place to block out the majority of the sun's light - it becomes readily apparent. Particles stream out of the corona to create solar wind, which is responsible for phenomena such as the auroras, and comets having tails, among others.",
celestial_body_id=9)
sunspots = Landmark(name="Sunspots",
image="https://upload.wikimedia.org/wikipedia/commons/6/67/Sunspots_1302_Sep_2011_by_NASA.jpg",
landmark_type="Surface",
description="Sun spots happen when fluctuations in the sun cause areas of the surface to be not as hot as their surroundings, causing that area to look darker than the rest of the sun. Despite only appearing as spots, they can grow to a size several times our own planet's! They can last anywhere from a few days to a few months, and tend to increase and decrease in frequency based off of eleven-year cycles.",
celestial_body_id=9)
solar_flare = Landmark(name="Solar Flares",
image="https://media1.s-nbcnews.com/j/newscms/2017_23/2030061/170608-solar-flare-mn-0850_be3b4f10ba85b1f4ef86e87522e6b26a.fit-2000w.jpg",
landmark_type="Atmosphere",
description="Solar flares are bright flashes caused by increased activity from the sun, in conjunction with a coronal mass ejection - an intense wave of energized particles that erupt from the sun and fly out into the solar system. While they are relatively common, they can cause electrical problems should the Earth be in the path of a flare, thanks to the disturbances they can cause in the atmosphere.",
celestial_body_id=9)
apollodorus = Landmark(name="Apollodorus",
image="https://www.nasa.gov/sites/default/files/thumbnails/image/messenger-12-apollodorus_pantheon_2015_0.png",
landmark_type="Crater",
description="This crater, located within the Pantheon Fossae, is remarkable because of the long troughs that radiate out from the center. When first discovered, it was nicknamed the Spider because of the web like shape. It is still uncertain if the impact caused them, or whether the asteroid that caused the crater merely landed in the center of a pre-existing formation.",
celestial_body_id=1)
caloris = Landmark(name="Caloris Basin",
image="https://cdn.britannica.com/75/145475-050-916827A9/Caloris-Basin-Mercury-spacecraft-Messenger-2008.jpg",
landmark_type="Crater",
description="The Caloris basin is one of the largest impact craters in the Solar System, measuring at over 900 miles wide. The asteroid that created the impact was likely at least 60 miles wide, larger than the one theorized to have caused the dinosaurs' extinction. The impact was so violent that it caused deformations in the terrain on the exact opposite side of the planet (the antipode).",
celestial_body_id=1)
mercury_pole = Landmark(name="Poles",
image="https://api.hub.jhu.edu/factory/sites/default/files/styles/hub_medium/public/mercury_ice.jpg?itok=1baACeWG",
landmark_type="Structure",
description="Despite being the planet closest to the sun, Mercury can get quite cold. At the poles of the planet, hidden perpetually from the sun in the shadows of craters, there's ample evidence that there is large amounts of ice lying frozen. Though a fraction of what exists on Earth's polar regions, it is still enough to be at least a couple miles deep.",
celestial_body_id=1)
debussy = Landmark(name="Debussy",
image="https://live.staticflickr.com/6170/6176086738_3a98b804a4_b.jpg",
landmark_type="Crater",
description="Named after the French composer, this crater, along with a similar one named Hakusai, are prominent enough to be detected from Earth using radio telescopes. It has a very noticeable ray pattern stretching out from the impact center, which indicates that it's relatively new. It was one of the first things photographed by the MESSENGER probe, sent to orbit the planet from 2011 to 2015.",
celestial_body_id=1)
tolstoj = Landmark(name="Tolstoj",
image="https://upload.wikimedia.org/wikipedia/commons/b/b1/Tolstoj_crater_EW0227961993G.jpg",
landmark_type="Crater",
description="The Tolstoj crater is notable for its well-preserved ejecta blanket and the reflective material that has settled into the crater plain, leaving it an easy to spot bright patch on the planet's surface. It is one of the oldest craters on Mercury, being estimated to be nearly 4 billion years old.",
celestial_body_id=1)
venus_atmo = Landmark(name="Atmosphere",
image="https://cdn.mos.cms.futurecdn.net/B8WfkaJZWrsms27RGsTu63.jpg",
landmark_type="Atmosphere",
description="The thick atmosphere of Venus means despite being further away from the sun than Mercury, it's actually the hottest planet in the system with a surface temperature of 870 degrees Fahrenheit. It's caused by a runaway greenhouse effect - since it's made of nearly 96% carbon dioxide. The atmosphere is also so dense that the pressure is 90 times that of Earth. Oh, and the clouds and rain are made of sulfuric acid.",
celestial_body_id=2)
terra = Landmark(name="Terra",
image="https://media.sciencephoto.com/r3/34/00/21/r3340021-800px-wm.jpg",
landmark_type="Surface",
description="While there are no oceans on Venus - water is incompatible with such harsh conditions - areas of highland terrain that rise up above the volcanic plains make up the rough landmasses of Venus. These are known as terra, and there are three - the two major ones, Aphrodite Terra (around the size of South America) and Ishtar Terra (somewhere between the continental US and Australia), as well as a smaller one, Lada Terra, at Venus's south pole.",
celestial_body_id=2)
regio = Landmark(name="Regio",
image="https://p0.pikist.com/photos/78/602/venus-planet-surface-space-solar-system-alpha-regio.jpg",
landmark_type="Surface",
description="Regio are large plateaus that rise above Venus's surface. They are composed of some of the most intriguing tectonic features of Venus, such as the highly deformed tesserae terrain in the Alpha Regio, or the large Devana Chasma rift zone that cuts through the Beta Regio. These were some of the first regions of the surface to be detected by radar, as the cloud cover made telescopic observation impossible.",
celestial_body_id=2)
maxwell = Landmark(name="Maxwell Montes",
image="https://upload.wikimedia.org/wikipedia/commons/thumb/d/d8/Maxwell_Montes_of_planet_Venus.jpg/1280px-Maxwell_Montes_of_planet_Venus.jpg",
landmark_type="Mountain",
description="Maxwell Montes is the highest mountain on Venus, standing at about 35,000 feet tall. Rising from the Ishtar Terra on the northern half of the planet, the mountain is one of just three features not named after women or ancient goddesses on the entire surface of the planet, having been grandfathered in before the International Astronomical Union made the decision on nomenclature for further discoveries.",
celestial_body_id=2)
maat = Landmark(name="Maat Mons",
image="https://media.pixcove.com/F/8/2/Maat-Mons-Planet-Venus-Surface-Free-Image-Space-So-6947.jpg",
landmark_type="Mountain",
description="Named for the Egyptian goddess of truth, Maat Mons is the largest volcano on Venus and the second highest on the planet. Venus is the most volcanically active planet in the entire solar system, with over 1600 major volcanoes across the surface. Indeed, there's evidence that the entire planet is periodically resurfaced in floods of lava.",
celestial_body_id=2)
sea_tranquility = Landmark(name="Sea of Tranquility",
image="https://ca-times.brightspotcdn.com/dims4/default/df8dc29/2147483647/strip/true/crop/600x338+0+31/resize/1200x675!/quality/90/?url=https%3A%2F%2Fcalifornia-times-brightspot.s3.amazonaws.com%2F69%2Fd5%2Ffb72584f2cbca5a528892bcfa45c%2F11-apollo-fevbd1gy",
landmark_type="Surface",
description="Mare, or seas, are dark features most common on the near side of the moon - where volcanic eruptions have covered these regions in basalt, which reflects less of the sun's light. Generally wide and flat, the most famous of these is the Sea of Tranquility, where on July 20, 1969, Apollo 11 became the first manned lunar landing.",
celestial_body_id=8)
tycho = Landmark(name="Tycho",
image="https://skyandtelescope.org/wp-content/uploads/Tycho-closeup-at-full-Frank-Barrett.jpg",
landmark_type="Crater",
description="Perhaps the most notable crater on the near side of the moon thanks to its distinctive rays that spread out across the southern side. It is a relatively young crater by the standards of the moon, having impacted roughly 108 million years ago, which means unlike other prominent craters, it has yet to be malformed by further impacts.",
celestial_body_id=8)
aitken = Landmark(name="Aitken Basin",
image="https://i.insider.com/5cfeb3856fc920079c630e49?width=1100&format=jpeg&auto=webp",
landmark_type="Crater",
description="The largest impact crater on the moon, and one of the largest in the entire solar system is located on the South Pole, creating the South Pole-Aitken Basin. Mostly visible from the far side of the moon, the crater is 1600 miles wide, and 4 to 5 miles deep. On the near side visible from Earth, only the outer ring of the basin, known as the Leibnitz mountains, can be seen.",
celestial_body_id=8)
oceanus = Landmark(name="Oceanus Procellarum",
image="https://upload.wikimedia.org/wikipedia/commons/1/19/Oceanus_Procellarum_%28LRO%29.png",
landmark_type="Surface",
description="Of all the dark spots that splotch the near side of the moon, only Procellarum, the largest by some stretch, was given the title Oceanus - or ocean, in comparison to the mare, or seas, that are defined elsewhere. It covers 10% of the entire lunar surface, and has been visited by a series of probes - the Soviet Luna 9 and 13, and the American Surveyor 1 and 3. Apollo 12 would land close to the Surveyor 3 site, returning parts of the probe home with them, the only time this was ever done.",
celestial_body_id=8)
orientale = Landmark(name="Mare Orientale",
image="https://apod.nasa.gov/apod/image/1103/orientale_lro_crop800.jpg",
landmark_type="Crater",
description="Though the name means Eastern Sea, it is so called because it appears on the east from Earth - it is actually on the west side of the moon. Though difficult to see because it lies on the boundary of what is visible, satellite imagery in the 1960s revealed it to have a striking set of concentric circles, making almost a target bullseye on the moon. The inner ring of mountains is known as the Montes Rook, while the outer ring are known as the Montes Cordillera.",
celestial_body_id=8)
olympus = Landmark(name="Olympus Mons",
image="https://cdn.mos.cms.futurecdn.net/XNRcoHujh5mZHmPQZzYbgH.jpg",
landmark_type="Mountain",
description="The largest mountain on any planet in the solar system, the volcano Olympus Mons towers over the Martian surface, rising 85,000 feet from the surrounding terrain. It is, in fact, so tall that it almost rises above the Martian atmosphere, close to sticking out all the way into space. At two and a half times the size of Mount Everest, were it to be placed in the deepest part of the Pacific Ocean, it would still rise higher than most commercial jetliners fly.",
celestial_body_id=3)
marineris = Landmark(name="Valles Marineris",
image="https://upload.wikimedia.org/wikipedia/commons/thumb/9/92/VallesMarinerisHuge.jpg/800px-VallesMarinerisHuge.jpg",
landmark_type="Surface",
description="The Valles Marineris is a noticeable scar on the Martian surface, a canyon that would dwarf the Earth's Grand Canyon, at four times the depth, a dozen times the length and over ten times the Grand Canyon's maximum width. The most likely reason for its formation is a tectonic crack in the planet's surface, widened over time via erosion and collapses of the rift walls.",
celestial_body_id=3)
borealis = Landmark(name="Borealis Basin",
image="https://scx2.b-cdn.net/gfx/news/2017/swriledteamd.jpg",
landmark_type="Structure",
description="Most of the north of Mars lies in a very wide basin that covers 40% of the entire planet. The basin is considerably smoother than the rest of the planet's surface and is mostly flat, though the volcanic Tharsis Bulge rises above it in the planet's western hemisphere. Speculation abounds as to why the north and south of the planet are so different - whether it be a large asteroid impact (if so, the basin would be the largest crater in the Solar System by a fourfold margin) or perhaps a vast ocean in Mars' distant past.",
celestial_body_id=3)
hellas = Landmark(name="Hellas Planitia",
image="https://upload.wikimedia.org/wikipedia/commons/2/21/Hellas_Planitia_by_the_Viking_orbiters.jpg",
landmark_type="Crater",
description="This crater impact site is not quite the largest on Mars, but is noticeable for being incredibly deep - over thirty thousand feet lower than the surrounding terrain. The crater is so deep that it causes changes to the Martian atmosphere, and the air pressure at the bottom of the crater is double what it is elsewhere on the Martian surface. In fact, it's one of the few places on Mars that has sufficient pressure to sustain liquid water, were the temperature to stay warm enough.",
celestial_body_id=3)
phobos_deimos = Landmark(name="Phobos and Deimos",
image="https://mars.nasa.gov/system/content_pages/main_images/65_moons.jpg",
landmark_type="Moon",
description="The two moons of Mars are tiny - Phobos is less than 15 miles long, with Deimos being less than 10. They are still visible from the Martian surface, however, thanks to orbiting much closer to the planet. They are named after twin sons of the Greek god Ares, who is the analogue to the Roman god Mars. Though it is not known for certain, the most likely scenario is that Mars captured these moons from the asteroid belt.",
celestial_body_id=3)
great_red_spot = Landmark(name="Great Red Spot",
image="https://cdn.mos.cms.futurecdn.net/93QqMnmyqaDQ4mDdrER4rQ-1024-80.jpg.webp",
landmark_type="Atmosphere",
description="The clouds of Jupiter swirl constantly through its atmosphere, easily reaching speeds of 225 miles per hour. Most prominent among the clouds however, is the Great Red Spot, a large and persistent storm south of the planet's equator. It has been observed in the Jovian atmosphere since at least the 17th century, and is larger than the size of the Earth. That said, the storm has been observed getting smaller in recent years.",
celestial_body_id=4)
ganymede = Landmark(name="Ganymede",
image="https://upload.wikimedia.org/wikipedia/commons/f/f2/Ganymede_g1_true-edit1.jpg",
landmark_type="Moon",
description="Ganymede is the largest moon in the entire Solar System, and is, indeed, even larger than the planet Mercury. The four largest moons of Jupiter are known as the Galilean moons, because they were discovered by Gailileo Galilei, and were the first celestial objects that were seen to be rotating around another planet. Ganymede is the only moon to have a magnetic field, though its magnetosphere is subsumed within Jupiter's much larger one.",
celestial_body_id=4)
callisto = Landmark(name="Callisto",
image="https://amazingspace.org/uploads/resource_image/image/88/ff_jupiters_moon_callisto_lg.png",
landmark_type="Moon",
description="Callisto is the most distant of the four Galilean moons, and the second largest. Like the others, it is named after a mythological lover of Zeus, Jupiter's Greek equivalent. These four moons consist of 99.997% of all the mass in the Jovian system. Callisto is notable for having perhaps the oldest and most pockmarked surface in the entire Solar System - lacking volcanism or plate tectonics, the features of its surface are entirely created by craters.",
celestial_body_id=4)
io = Landmark(name="Io",
image="https://i.pinimg.com/originals/86/e0/ab/86e0abdefac8a7bd765127ad81318326.jpg",
landmark_type="Moon",
description="Io is the closest of the four Galilean moons to Jupiter, though it is not the closest to the planet - there are four much smaller ones that orbit even closer, known as the Amalthean group. The proximity to Jupiter, however, has made the moon intensely volcanic - it is, in fact, the most volcanically active object within the solar system, even moreso than Venus.",
celestial_body_id=4)
europa = Landmark(name="Europa",
image="https://i.insider.com/54d010cc6bb3f7a12d1b7745?width=1100&format=jpeg&auto=webp",
landmark_type="Moon",
description="Made famous by Stanley Kubrick's 2001: A Space Odyssey, Europa is notable for evidence that underneath its icy exterior there may lay a fully liquid water ocean, heated by the tides caused from the orbital resonance between it, Jupiter, Io and Ganymede. This makes it one of the most sought after places to further analyze in the search for biological life forms outside of Earth.",
celestial_body_id=4)
saturn_rings = Landmark(name="Rings",
image="https://d2r55xnwy6nx47.cloudfront.net/uploads/2019/11/SaturnRings_Lede_Fullwidth.jpg",
landmark_type="Structure",
description="Easily the most defining attribute of Saturn is its extensive ring system. While all of the giant planets of the system have some sort of ring structure, Saturn's is by far the most prominent. Going from roughly 4000 miles above the equator to fifty thousand miles out, the rings are remarkably thin - less than a mile thick - and made almost completely out of ice.",
celestial_body_id=5)
polar_storms = Landmark(name="Polar Storms",
image="https://www.nasa.gov/sites/default/files/images/744808main_pia14944-full_full.jpg",
landmark_type="Atmosphere",
description="Both the north and south pole of Saturn are the center of some long lasting storms with some curious features. A large hexagon shaped storm, eighteen thousand miles wide spins around the North Pole of Saturn at roughly 200 miles per hour. At the South Pole, a hurricane like vortex - with an eyewall formation never seen outside our planet - is roughly the same size of Earth and has winds up to 340 miles per hour.",
celestial_body_id=5)
titan = Landmark(name="Titan",
image="https://sos.noaa.gov/ftp_mirror/astronomy/titan/color/media/thumbnail_big.jpg",
landmark_type="Moon",
description="The largest moon around Saturn and the second largest moon in the entire Solar System behind only Ganymede, Titan is unique among all satellites in that it has a full atmosphere covering it. Indeed, until the Cassini-Huygens probe began investigating it in the early 2000s, much underneath the atmosphere remained a mystery. However, underneath the clouds lies the only other known location of liquid seas - though they're of hydrocarbons instead of water.",
celestial_body_id=5)
mimas = Landmark(name="Mimas",
image="https://apod.nasa.gov/apod/image/0905/mimas_cassini.jpg",
landmark_type="Moon",
description="Mimas is the closest and smallest of Saturn's major moons - though there are over 80 of them, most of the mass is contained in 7 - and of those, 96% is in Titan. Mimas has a large crater called Herschel, with a diameter a third of the entire moon, and which gives it a more than passing resemblance to the Death Star of Star Wars fame.",
celestial_body_id=5)
iapetus = Landmark(name="Iapetus",
image="https://skyandtelescope.org/wp-content/uploads/Iapetus_two_sides.jpg",
landmark_type="Moon",
description="Third largest and furthest out of the major moons of Saturn, Iapetus has a couple of striking features of note. First is the equatorial ridge that runs most of the way around the moon, giving it a sort of walnut shape. The other is that it has two distinctive sides - one a bright, reflective white, and the other a dark reddish-brown, which causes it to be more visible from one side of Saturn than the other.",
celestial_body_id=5)
axis = Landmark(name="Axis",
image="https://i.ytimg.com/vi/chmr7v5R5fo/hqdefault.jpg",
landmark_type="Structure",
description="While most planets spin around themselves vertically - or at the very least only a slight tilt, Uranus is an oddball in the sense that it rotates more or less on its side, having an axial tilt of 97 degrees. This means that the two poles alternate between facing the sun - and given the length of the Uranian year, the day-night cycles for the poles last over 40 Earth years.",
celestial_body_id=6)
miranda = Landmark(name="Miranda",
image="https://cdn.britannica.com/32/78232-050-8CCA6A1E/innermost-moons-Miranda-Uranus-mosaic-images-Voyager-Jan-24-1986.jpg",
landmark_type="Moon",
description="The smallest of Uranus' five major moons, Miranda is perhaps the most intriguing because of its unique topography - rather than a round sphere, it is has jagged and broken terrain. Among these features lies the largest cliff in the Solar System - a scarp called Verona Rupes, 12 miles from top to bottom. Its low gravity, however, means that it'd take roughly 12 minutes for you to actually fall off of it, and might still be survivable with enough impact cushioning.",
celestial_body_id=6)
umbriel = Landmark(name="Umbriel",
image="https://upload.wikimedia.org/wikipedia/commons/2/2f/PIA00040_Umbrielx2.47.jpg",
landmark_type="Moon",
description="Named for a shadowy fairy from the literature of Alexander Pope, Umbriel is the third largest of Uranus' moons, but also the darkest. There is, however, a crater on the moon, named Wunda, that has left behind a ring of bright material that stands out on the duskier surface. It lies on the moon's equator - though because all of Uranus' moons share the planet's odd axial tilt, it appears in the Voyager 2 images as if it were on the moon's north pole from a casual observation.",
celestial_body_id=6)
oberon_titania = Landmark(name="Oberon and Titania",
image="https://static.tvtropes.org/pmwiki/pub/images/titania_and_oberon.jpg",
landmark_type="Moon",
description="The largest of Uranus' moons, Oberon and Titania were discovered shortly after the planet itself in 1787, by the same William Herschel who had found the planet in the first place. As the first planet not known to antiquity, naming the planet was something of an unexplored avenue. It was originally named after the British King George, before Uranus was proposed a year later. The nod to its British discoverer would be retained in its moons - they're all characters from English literature, Oberon and Titania being the king and queen of fairies from Shakespeare's Midsummer Night's Dream.",
celestial_body_id=6)
great_dark_spot = Landmark(name="Great Dark Spot",
image="https://apod.nasa.gov/apod/image/nepspot_voyager2_big.gif",
landmark_type="Atmosphere",
description="The Great Dark Spot was first discovered in 1989, when Voyager 2 was approaching the planet for a fly-by. Though similar to the Great Red Spot on Jupiter, the storm was smaller - though still roughly Earth sized - and much fiercer, with the highest winds in the Solar System - 1300 miles per hour. In 1994, when observed by Hubble, however, the storm had disappeared. Since then, it's become known that these storms are transient - lasting years, but not permanently. They are however, frequent - an observation in 2016 showed a new one had formed, and has remained in latest observations.",
celestial_body_id=7)
triton = Landmark(name="Triton",
image="https://scx2.b-cdn.net/gfx/news/hires/2019/neptunesmoon.jpg",
landmark_type="Moon",
description="Triton is the by far the largest of Neptune's moons, accounting for a full 99.7% of all of the mass of all of the moons around the planet, and the seventh largest in the entire Solar System behind the Galileans, Titan and our own. It is also unique in that it was originally an object in the outer Solar System, like Pluto, before being captured by Neptune to become a moon. This event may have destroyed some of the moons already around Neptune, giving the planet its faint rings.",
celestial_body_id=7)
other_moons = Landmark(name="Other Moons of Neptune",
image="https://upload.wikimedia.org/wikipedia/commons/8/83/Proteus_%28Voyager_2%29.jpg",
landmark_type="Moon",
description="Because of Neptune's distance, and their relatively small size, there has been extremely limited direct observation on the rest of the moons of Neptune. The only probe to pass through the system was Voyager 2 back in 1989 and did not approach any of the small moons close enough for many detailed images. There's still a lot we can detect from afar, however. Proteus, the second largest, for example, was likely amalgamated from debris caused by Triton's capture. Nereid, the third largest, was thrown into a highly eccentric orbit. They both may have also fragmented at some point, creating the moons Hippocamp and Halimede, respectively.",
celestial_body_id=7)
trans_neptunian = Landmark(name="Trans-Neptunian Objects",
image="https://www.nasa.gov/sites/default/files/thumbnails/image/edu_what_is_pluto_1.png",
landmark_type="Orbital",
description="As the furthest major planet from the sun, Neptune has a large influence on the orbits of the objects within the Kuiper Belt. Astronomers have begun categorizing them by the type of orbital resonance they have with Neptune. The most famous of these is Pluto, the largest Trans-Neptunian Object (TNO) found so far, and the defining example of what have come to be known as Plutinos, which have a 2:3 resonance with Neptune (that is, they revolve twice for every 3 times Neptune does), but there are countless different types - some of the more common are 3:5, 4:7 and 1:2 (the last of which have been nicknamed twotinos)",
celestial_body_id=7)
db.session.add(solar_core)
db.session.add(photosphere)
db.session.add(corona)
db.session.add(sunspots)
db.session.add(solar_flare)
db.session.add(apollodorus)
db.session.add(caloris)
db.session.add(mercury_pole)
db.session.add(debussy)
db.session.add(tolstoj)
db.session.add(venus_atmo)
db.session.add(terra)
db.session.add(regio)
db.session.add(maxwell)
db.session.add(maat)
db.session.add(sea_tranquility)
db.session.add(tycho)
db.session.add(aitken)
db.session.add(oceanus)
db.session.add(orientale)
db.session.add(olympus)
db.session.add(marineris)
db.session.add(borealis)
db.session.add(hellas)
db.session.add(phobos_deimos)
db.session.add(great_red_spot)
db.session.add(ganymede)
db.session.add(callisto)
db.session.add(io)
db.session.add(europa)
db.session.add(saturn_rings)
db.session.add(polar_storms)
db.session.add(titan)
db.session.add(mimas)
db.session.add(iapetus)
db.session.add(axis)
db.session.add(miranda)
db.session.add(umbriel)
db.session.add(oberon_titania)
db.session.add(great_dark_spot)
db.session.add(triton)
db.session.add(other_moons)
db.session.add(trans_neptunian)
db.session.commit()
print('Landmarks seeded!')