aboutsummaryrefslogtreecommitdiff
path: root/planets.py
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-12-19 13:07:02 +0100
committerAdrian Kummerlaender2019-12-19 13:18:41 +0100
commit923ad5e83be561dcadfec113177cd7cbcaea56d9 (patch)
treef6d254fdf7da328ca4318cfd089921759d60792e /planets.py
downloadfirmament-923ad5e83be561dcadfec113177cd7cbcaea56d9.tar
firmament-923ad5e83be561dcadfec113177cd7cbcaea56d9.tar.gz
firmament-923ad5e83be561dcadfec113177cd7cbcaea56d9.tar.bz2
firmament-923ad5e83be561dcadfec113177cd7cbcaea56d9.tar.lz
firmament-923ad5e83be561dcadfec113177cd7cbcaea56d9.tar.xz
firmament-923ad5e83be561dcadfec113177cd7cbcaea56d9.tar.zst
firmament-923ad5e83be561dcadfec113177cd7cbcaea56d9.zip
Basic sky rendering using the model by Nishita et al.
See "Display of the earth taking into account atmospheric scattering" (Nishita et al., 1993) `bluedot.py` renders the full earth disk while rotating the sun around it. `sunrise.py` renders the rise of the sun. Physical model constants may be changed in `planets.py`.
Diffstat (limited to 'planets.py')
-rw-r--r--planets.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/planets.py b/planets.py
new file mode 100644
index 0000000..f94782c
--- /dev/null
+++ b/planets.py
@@ -0,0 +1,10 @@
+earth = {
+ 'earth_radius': 6371e3,
+ 'atmos_height': 100e3,
+
+ 'rayleigh_atmos_height': 7994,
+ 'mie_atmos_height' : 1200,
+
+ 'rayleigh_beta': (3.8e-6, 13.5e-6, 33.1e-6),
+ 'mie_beta' : (21e-6)
+}