Proof LUNAR_AND_SOLAR_EPHEMERIDES_SUBROUTINES (Closes #224) (#316)

* Proof LUNAR_AND_SOLAR_EPHEMERIDES_SUBROUTINES (#224)

* 👌 Follow "triple space" rule for indentation
This commit is contained in:
Glenn Dwiyatcita 2018-03-23 03:08:38 +01:00 committed by James Harris
parent 0c6a84f1c3
commit 668e0394ab

View File

@ -43,13 +43,6 @@
# A NINTH DEGREE POLYNOMIAL APPROXIMATION WHICH IS VALID OVER A 15 # A NINTH DEGREE POLYNOMIAL APPROXIMATION WHICH IS VALID OVER A 15
# DAY INTERVAL BEGINNING SHORTLY BEFORE LAUNCH. THEREFORE THE TIME # DAY INTERVAL BEGINNING SHORTLY BEFORE LAUNCH. THEREFORE THE TIME
# INPUT BY THE USER SHOULD FALL WITHIN THIS 15 DAY INTERVAL. # INPUT BY THE USER SHOULD FALL WITHIN THIS 15 DAY INTERVAL.
## The 9th-degree polynomial spoken of here is a pad load, meaning
## that it is not actually hardcoded into the software. Additional
## information about calculating the polynomial can be found on the
## <a href="http://nassp.sourceforge.net/wiki/Lunar_Ephemeris_Polynomials">
## <b>Orbiter</b> NASSP wiki</a>, as well as information about calculation
## of the <a href="http://nassp.sourceforge.net/wiki/Solar_Ephemeris">
## solar ephemerides</a>.
# #
# LSPOS COMPUTES THE POSITION VECTORS OF THE SUN AND THE MOON. # LSPOS COMPUTES THE POSITION VECTORS OF THE SUN AND THE MOON.
# #
@ -69,44 +62,43 @@
# #
# 1) SPECIFIED GROUND ELAPSED TIME IN CS x B-28 LOADED IN MPAC. # 1) SPECIFIED GROUND ELAPSED TIME IN CS x B-28 LOADED IN MPAC.
# #
# 2) TIMEMO -- TIME AT THE CENTER OF THE RANGE OVER WHICH THE LUNAR # 2) TIMEMO - TIME AT THE CENTER OF THE RANGE OVER WHICH THE LUNAR
# POSITION POLYNOMIAL IS VALID IN CS x B-42. # POSITION POLYNOMIAL IS VALID IN CS x B-42.
# #
# 3) VECOEM -- VECTOR COEFFICIENTS OF THE LUNAR POSITION POLYNOMIAL # 3) VECOEM - VECTOR COEFFICIENTS OF THE LUNAR POSITION POLYNOMIAL
# LOADED IN DESCENDING SEQUENCE IN METERS/CS**N x B-2 # LOADED IN DESCENDING SEQUENCE IN METERS/CS**N x B-2
# #
# 4) RESO -- POSITION VECTOR OF THE SUN RELATIVE TO THE EARTH AT # 4) RESO - POSITION VECTOR OF THE SUN RELATIVE TO THE EARTH AT
# TIMEMO IN METERS x B-38 # TIMEMO IN METERS x B-38.
# #
# 5) VESO -- VELOCITY VECTOR OF THE SUN RELATIVE TO THE EARTH AT # 5) VESO - VELOCITY VECTOR OF THE SUN RELATIVE TO THE EARTH AT
# TIMEMO IN METERS/CS x B-9 # TIMEMO IN METERS/CS x B-9.
# #
# 6) OMEGAES -- ANGULAR VELOCITY OF THE VECTOR RESO AT TIMEMO IN # 6) OMEGAES - ANGULAR VELOCITY OF THE VECTOR RESO AT TIMEMO IN
# REV/CS x B+26 # REV/CS x B+26.
# #
# ALL EXCEPT THE FIRST INPUT ARE INCLUDED IN THE PRE-LAUNCH # ALL EXCEPT THE FIRST INPUT ARE INCLUDED IN THE PRE-LAUNCH
# ERASABLE DATA LOAD. # ERASABLE DATA LOAD.
# #
# OUTPUT -- LSPOS # OUTPUT - LSPOS
# Page 786 # Page 786
#
# 1) 2D OF VAC AREA CONTAINS THE POSITION VECTOR OF THE SUN RELATIVE # 1) 2D OF VAC AREA CONTAINS THE POSITION VECTOR OF THE SUN RELATIVE
# TO THE EARTH AT TIME INPUT BY THE USER IN METERS x B-38. # TO THE EARTH AT TIME INPUT BY THE USER IN METERS x B-38.
# #
# 2) MPAC CONTAINS THE POSITION VECTOR OF THE MOON RELATIVE TO THE # 2) MPAC CONTAINS THE POSITION VECTOR OF THE MOON RELATIVE TO THE
# EARTH AT TIME INPUT BY THE USER IN METERS x B-29 # EARTH AT TIME INPUT BY THE USER IN METERS x B-29.
# #
# OUTPUT -- LUNPOS # OUTPUT - LUNPOS
# #
# MPAC CONTAINS THE POSITION VECTOR OF THE MOON RELATIVE TO THE # MPAC CONTAINS THE POSITION VECTOR OF THE MOON RELATIVE TO THE
# EARTH AT THE TIME INPUT BY USER IN METERS x B-29 # EARTH AT THE TIME INPUT BY USER IN METERS x B-29.
# #
# OUTPUT -- LUNVEL # OUTPUT - LUNVEL
# #
# MPAC CONTAINS THE VELOCITY VECTOR OF THE MOON RELATIVE TO THE # MPAC CONTAINS THE VELOCITY VECTOR OF THE MOON RELATIVE TO THE
# EARTH AT THE TIME INPUT BY THE USER IN METERS/CS x B-7 # EARTH AT THE TIME INPUT BY THE USER IN METERS/CS x B-7.
# #
# OUTPUT -- SOLPOS # OUTPUT - SOLPOS
# #
# MPAC CONTAINS THE POSITION VECTOR OF THE SUN RELATIVE TO THE EARTH # MPAC CONTAINS THE POSITION VECTOR OF THE SUN RELATIVE TO THE EARTH
# AT TIME INPUT BY THE USER IN METERS x B-38. # AT TIME INPUT BY THE USER IN METERS x B-38.
@ -120,11 +112,9 @@
# THE VAC AREA IS USED FOR STORAGE OF INTERMEDIATE AND FINAL RESULTS # THE VAC AREA IS USED FOR STORAGE OF INTERMEDIATE AND FINAL RESULTS
# OF COMPUTATIONS. # OF COMPUTATIONS.
# #
# S1, X1, AND X2 ARE USED BY THESE SUBROUTINES. # S1, X1 AND X2 ARE USED BY THESE SUBROUTINES.
#
# PRELAUNCH ERASABLE DATA LOAD ARE ONLY ERASABLE STORAGE USED BY # PRELAUNCH ERASABLE DATA LOAD ARE ONLY ERASABLE STORAGE USED BY
# THESE SUBROUTINES. # THESE SUBROUTINES.
#
# RESTARTS DURING OPERATION OF THESE SUBROUTINES MUST BE HANDLED BY # RESTARTS DURING OPERATION OF THESE SUBROUTINES MUST BE HANDLED BY
# THE USER. # THE USER.
@ -206,6 +196,3 @@ VEMA VXSC
NINEB4 2DEC 9.0 B-4 NINEB4 2DEC 9.0 B-4
ONEB4 2DEC 1.0 B-4 ONEB4 2DEC 1.0 B-4