mirror of
https://github.com/silenty4ng/k5sat
synced 2025-01-15 06:52:08 +00:00
上行频移修正
This commit is contained in:
parent
01a6f148ba
commit
0757b89931
1 changed files with 1 additions and 1 deletions
2
head.py
2
head.py
|
@ -68,7 +68,7 @@ def CAL_DATA(satellite,line1,line2,observer_lon,observer_lat,observer_elevation,
|
||||||
# 获取卫星的速度(单位:km/s)
|
# 获取卫星的速度(单位:km/s)
|
||||||
range_rate = satellite.range_velocity / 1000
|
range_rate = satellite.range_velocity / 1000
|
||||||
# print("速度:", range_rate, "km/s")
|
# print("速度:", range_rate, "km/s")
|
||||||
UP_SHIFT = -range_rate / 299792.458 * UP_HZ # 单位:Hz
|
UP_SHIFT = range_rate / 299792.458 * UP_HZ # 单位:Hz
|
||||||
DOWN_SHIFT = -range_rate / 299792.458 * DOWN_HZ # 单位:Hz
|
DOWN_SHIFT = -range_rate / 299792.458 * DOWN_HZ # 单位:Hz
|
||||||
DIS = satellite.range / 1000 # 单位从m转换为km
|
DIS = satellite.range / 1000 # 单位从m转换为km
|
||||||
return round(math.degrees(float(satellite.az)),2), round(math.degrees(float(satellite.alt)),2),round(UP_SHIFT,0),round(DOWN_SHIFT,0),round(DIS,2)
|
return round(math.degrees(float(satellite.az)),2), round(math.degrees(float(satellite.alt)),2),round(UP_SHIFT,0),round(DOWN_SHIFT,0),round(DIS,2)
|
||||||
|
|
Loading…
Reference in a new issue