mirror of
https://github.com/Findus23/rebound-collisions.git
synced 2024-09-19 15:53:48 +02:00
add astronomical utils
This commit is contained in:
parent
8b76806974
commit
f97b0928b4
2 changed files with 9 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
from .constants import *
|
from .constants import *
|
||||||
|
from .astronomical import *
|
||||||
from .math import *
|
from .math import *
|
||||||
from .os_tools import *
|
from .os_tools import *
|
||||||
from .plotting import *
|
from .plotting import *
|
||||||
|
|
8
utils/astronomical.py
Normal file
8
utils/astronomical.py
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
from rebound import Particle
|
||||||
|
|
||||||
|
habitable_zone_inner=0.75
|
||||||
|
habitable_zone_outer=1.5
|
||||||
|
|
||||||
|
|
||||||
|
def is_potentially_habitable(planet: Particle):
|
||||||
|
return habitable_zone_inner <= planet.a <= habitable_zone_outer
|
Loading…
Reference in a new issue