Skip to content

Commit

Permalink
More band added
Browse files Browse the repository at this point in the history
  • Loading branch information
leoid3 committed Sep 2, 2024
1 parent aca29ef commit 9b3beaa
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 3 deletions.
Binary file modified Earth Observation Tool.pptx
Binary file not shown.
Binary file modified Requirements.xlsx
Binary file not shown.
Binary file modified User guide.pptx
Binary file not shown.
Binary file modified code/__pycache__/config.cpython-311.pyc
Binary file not shown.
Binary file modified code/classes/__pycache__/gui.cpython-311.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions code/classes/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ def gs_visibility(self, miss, chosen_sat):
time = []
time_in_days = []
visibility = []
_, t0, tf, dt = simulation_time(miss)
_, _, tf, dt = simulation_time(miss)
for i in range(0, int(tf+dt), int(dt)):
time.append(i)
for j in range(len(time)):
Expand Down Expand Up @@ -1181,7 +1181,7 @@ def poi_visibility(self, miss, chosen_sat):
time = []
time_in_days = []
visibility= []
_, t0, tf, dt = simulation_time(miss)
_, _, tf, dt = simulation_time(miss)
for i in range(0, int(tf+dt), int(dt)):
time.append(i)
for j in range(len(time)):
Expand Down
2 changes: 1 addition & 1 deletion code/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@
#Listes pour l'IHM
list_colors = ['blue', 'orange', 'green', 'red', 'purple', 'brown', 'pink', 'gray', 'olive', 'cyan']
sat_type = ['SAR', 'EO']
list_bande = ['L', 'S', 'C', 'X', 'Ku', 'Ka']
list_bande = ['VHF', 'UHF', 'L', 'S', 'C', 'X', 'Ku','K', 'Ka', 'V']

9 changes: 9 additions & 0 deletions code/functions/itur_model.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
from config import *
import itur
#source : https://www.nasa.gov/smallsat-institute/sst-soa/soa-communications/#9.2

def get_attenuation(ele, band, lat, long, ant):
match band:
case 'VHF':
f = 0.2*itur.u.GHz
case 'UHF':
f = 0.7*itur.u.GHz
case 'L':
f = 1.5* itur.u.GHz
case 'S':
Expand All @@ -13,8 +18,12 @@ def get_attenuation(ele, band, lat, long, ant):
f= 10* itur.u.GHz
case 'Ku':
f = 15* itur.u.GHz
case 'K':
f = 22.5* itur.u.GHz
case 'Ka':
f = 33* itur.u.GHz
case 'V':
f = 57* itur.u.GHz
case _:
f = 5* itur.u.GHz

Expand Down

0 comments on commit 9b3beaa

Please sign in to comment.