-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
35 lines (27 loc) · 853 Bytes
/
main.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
from classes import *
from functions import *
def testGeneration():
seed = 1
parameters = {'OCEAN_THRESHOLD': 0,
'NB_OCTAVES': 10,
'SCALE': 1,
'STRENGTH': 3,
'TERRAIN_ALBEDO': 0.4,
'OCEAN_ALBEDO': 0.06,
'CAPS_ALBEDO': 0.9,
'CAPS_EXTENT': 0}
points = sunflowerSphereDistribution(30000)
generatePlanetMap(points, parameters, oceans=True, caps=True, seed=seed, plot=True)
def testOrbit():
Sun = Star()
orbit = Orbit(foyer=Sun)
orbit.orbitalPlot(1000)
def testPlanet():
planet = PlanetNoAtm()
planet.createMaps(n_longs=210, n_lats=110)
planet.rotation()
planet.defineTilt()
sim = ExoSimulation(planet=planet)
sim.run(T=10)
if __name__ == '__main__':
testGeneration()