From aa0561a53450cfd396de3bd3cc04b8315f43f4dd Mon Sep 17 00:00:00 2001 From: Don Cross Date: Sun, 7 Jul 2019 14:05:49 -0400 Subject: [PATCH] Trim trailing whitespace from all generated source. --- generate/makedoc | 5 ++ source/c/astronomy.c | 156 ++++++++++++++++++------------------- source/js/astronomy.js | 4 +- source/python/astronomy.py | 4 +- 4 files changed, 87 insertions(+), 82 deletions(-) diff --git a/generate/makedoc b/generate/makedoc index d967f1a3..a5be28ae 100755 --- a/generate/makedoc +++ b/generate/makedoc @@ -13,6 +13,11 @@ done echo "Generating target code." ./generate source || Fail "Problem generating target code." +echo "Trimming trailing whitespace in target code." +for file in ../source/c/astronomy.{h,c} ../source/js/astronomy.js ../source/python/astronomy.py; do + node trimspace.js ${file} +done + echo "Minifying JavaScript code." google-closure-compiler --js ../source/js/astronomy.js --js_output_file ../source/js/astronomy.min.js || Fail "Error minifying astronomy.js" diff --git a/source/c/astronomy.c b/source/c/astronomy.c index 98c3b1d7..8c259c52 100644 --- a/source/c/astronomy.c +++ b/source/c/astronomy.c @@ -734,7 +734,7 @@ static void iau2000b(astro_time_t *time) static const struct row_t row[77] = { - + { { 0, 0, 0, 0, 1 }, { -172064161, -174666, 33386, 92052331, 9086, 15377 } }, { { 0, 0, 2, -2, 2 }, { -13170906, -1675, -13696, 5730336, -3015, -4587 } }, { { 0, 0, 2, 0, 2 }, { -2276413, -234, 2796, 978459, -485, 1374 } }, @@ -1327,7 +1327,7 @@ static void CalcMoon( context.t = centuries_since_j2000; Init(ctx); - + AddSol(ctx, 13.9020, 14.0600, -0.0010, 0.2607, 0, 0, 0, 4); AddSol(ctx, 0.4030, -4.0100, 0.3940, 0.0023, 0, 0, 0, 3); AddSol(ctx, 2369.9120, 2373.3600, 0.6010, 28.2333, 0, 0, 0, 2); @@ -1546,7 +1546,7 @@ typedef struct vsop_model_t; /** @endcond */ -static const vsop_term_t vsop_lat_Mercury_0[] = +static const vsop_term_t vsop_lat_Mercury_0[] = { { 4.40250710144, 0.00000000000, 0.00000000000 }, { 0.40989414977, 1.48302034195, 26087.90314157420 }, @@ -1557,7 +1557,7 @@ static const vsop_term_t vsop_lat_Mercury_0[] = { 0.00007583476, 3.71348404924, 156527.41884944518 } }; -static const vsop_term_t vsop_lat_Mercury_1[] = +static const vsop_term_t vsop_lat_Mercury_1[] = { { 26087.90313685529, 0.00000000000, 0.00000000000 }, { 0.01131199811, 6.21874197797, 26087.90314157420 }, @@ -1566,13 +1566,13 @@ static const vsop_term_t vsop_lat_Mercury_1[] = { 0.00019676525, 2.80965111777, 104351.61256629678 } }; -static const vsop_series_t vsop_lat_Mercury[] = +static const vsop_series_t vsop_lat_Mercury[] = { { 7, vsop_lat_Mercury_0 }, { 5, vsop_lat_Mercury_1 } }; -static const vsop_term_t vsop_lon_Mercury_0[] = +static const vsop_term_t vsop_lon_Mercury_0[] = { { 0.11737528961, 1.98357498767, 26087.90314157420 }, { 0.02388076996, 5.03738959686, 52175.80628314840 }, @@ -1583,19 +1583,19 @@ static const vsop_term_t vsop_lon_Mercury_0[] = { 0.00007963301, 4.60972126127, 156527.41884944518 } }; -static const vsop_term_t vsop_lon_Mercury_1[] = +static const vsop_term_t vsop_lon_Mercury_1[] = { { 0.00274646065, 3.95008450011, 26087.90314157420 }, { 0.00099737713, 3.14159265359, 0.00000000000 } }; -static const vsop_series_t vsop_lon_Mercury[] = +static const vsop_series_t vsop_lon_Mercury[] = { { 7, vsop_lon_Mercury_0 }, { 2, vsop_lon_Mercury_1 } }; -static const vsop_term_t vsop_rad_Mercury_0[] = +static const vsop_term_t vsop_rad_Mercury_0[] = { { 0.39528271651, 0.00000000000, 0.00000000000 }, { 0.07834131818, 6.19233722598, 26087.90314157420 }, @@ -1605,20 +1605,20 @@ static const vsop_term_t vsop_rad_Mercury_0[] = { 0.00004354065, 5.82894543774, 130439.51570787099 } }; -static const vsop_term_t vsop_rad_Mercury_1[] = +static const vsop_term_t vsop_rad_Mercury_1[] = { { 0.00217347740, 4.65617158665, 26087.90314157420 }, { 0.00044141826, 1.42385544001, 52175.80628314840 } }; -static const vsop_series_t vsop_rad_Mercury[] = +static const vsop_series_t vsop_rad_Mercury[] = { { 6, vsop_rad_Mercury_0 }, { 2, vsop_rad_Mercury_1 } }; ; -static const vsop_term_t vsop_lat_Venus_0[] = +static const vsop_term_t vsop_lat_Venus_0[] = { { 3.17614666774, 0.00000000000, 0.00000000000 }, { 0.01353968419, 5.59313319619, 10213.28554621100 }, @@ -1632,57 +1632,57 @@ static const vsop_term_t vsop_lat_Venus_0[] = { 0.00001200521, 6.15357116043, 30639.85663863300 } }; -static const vsop_term_t vsop_lat_Venus_1[] = +static const vsop_term_t vsop_lat_Venus_1[] = { { 10213.28554621638, 0.00000000000, 0.00000000000 }, { 0.00095617813, 2.46406511110, 10213.28554621100 }, { 0.00007787201, 0.62478482220, 20426.57109242200 } }; -static const vsop_series_t vsop_lat_Venus[] = +static const vsop_series_t vsop_lat_Venus[] = { { 10, vsop_lat_Venus_0 }, { 3, vsop_lat_Venus_1 } }; -static const vsop_term_t vsop_lon_Venus_0[] = +static const vsop_term_t vsop_lon_Venus_0[] = { { 0.05923638472, 0.26702775812, 10213.28554621100 }, { 0.00040107978, 1.14737178112, 20426.57109242200 }, { 0.00032814918, 3.14159265359, 0.00000000000 } }; -static const vsop_term_t vsop_lon_Venus_1[] = +static const vsop_term_t vsop_lon_Venus_1[] = { { 0.00287821243, 1.88964962838, 10213.28554621100 } }; -static const vsop_series_t vsop_lon_Venus[] = +static const vsop_series_t vsop_lon_Venus[] = { { 3, vsop_lon_Venus_0 }, { 1, vsop_lon_Venus_1 } }; -static const vsop_term_t vsop_rad_Venus_0[] = +static const vsop_term_t vsop_rad_Venus_0[] = { { 0.72334820891, 0.00000000000, 0.00000000000 }, { 0.00489824182, 4.02151831717, 10213.28554621100 }, { 0.00001658058, 4.90206728031, 20426.57109242200 } }; -static const vsop_term_t vsop_rad_Venus_1[] = +static const vsop_term_t vsop_rad_Venus_1[] = { { 0.00034551041, 0.89198706276, 10213.28554621100 } }; -static const vsop_series_t vsop_rad_Venus[] = +static const vsop_series_t vsop_rad_Venus[] = { { 3, vsop_rad_Venus_0 }, { 1, vsop_rad_Venus_1 } }; ; -static const vsop_term_t vsop_lat_Earth_0[] = +static const vsop_term_t vsop_lat_Earth_0[] = { { 1.75347045673, 0.00000000000, 0.00000000000 }, { 0.03341656453, 4.66925680415, 6283.07584999140 }, @@ -1714,38 +1714,38 @@ static const vsop_term_t vsop_lat_Earth_0[] = { 0.00000155516, 0.83306084617, 213.29909543800 } }; -static const vsop_term_t vsop_lat_Earth_1[] = +static const vsop_term_t vsop_lat_Earth_1[] = { { 6283.07584999140, 0.00000000000, 0.00000000000 }, { 0.00206058863, 2.67823455808, 6283.07584999140 }, { 0.00004303419, 2.63512233481, 12566.15169998280 } }; -static const vsop_term_t vsop_lat_Earth_2[] = +static const vsop_term_t vsop_lat_Earth_2[] = { { 0.00008721859, 1.07253635559, 6283.07584999140 } }; -static const vsop_series_t vsop_lat_Earth[] = +static const vsop_series_t vsop_lat_Earth[] = { { 28, vsop_lat_Earth_0 }, { 3, vsop_lat_Earth_1 }, { 1, vsop_lat_Earth_2 } }; -static const vsop_term_t vsop_lon_Earth_1[] = +static const vsop_term_t vsop_lon_Earth_1[] = { { 0.00227777722, 3.41376620530, 6283.07584999140 }, { 0.00003805678, 3.37063423795, 12566.15169998280 } }; -static const vsop_series_t vsop_lon_Earth[] = +static const vsop_series_t vsop_lon_Earth[] = { { 0, NULL }, { 2, vsop_lon_Earth_1 } }; -static const vsop_term_t vsop_rad_Earth_0[] = +static const vsop_term_t vsop_rad_Earth_0[] = { { 1.00013988784, 0.00000000000, 0.00000000000 }, { 0.01670699632, 3.09846350258, 6283.07584999140 }, @@ -1758,18 +1758,18 @@ static const vsop_term_t vsop_rad_Earth_0[] = { 0.00000472110, 3.66100022149, 5884.92684658320 } }; -static const vsop_term_t vsop_rad_Earth_1[] = +static const vsop_term_t vsop_rad_Earth_1[] = { { 0.00103018607, 1.10748968172, 6283.07584999140 }, { 0.00001721238, 1.06442300386, 12566.15169998280 } }; -static const vsop_term_t vsop_rad_Earth_2[] = +static const vsop_term_t vsop_rad_Earth_2[] = { { 0.00004359385, 5.78455133808, 6283.07584999140 } }; -static const vsop_series_t vsop_rad_Earth[] = +static const vsop_series_t vsop_rad_Earth[] = { { 9, vsop_rad_Earth_0 }, { 2, vsop_rad_Earth_1 }, @@ -1777,7 +1777,7 @@ static const vsop_series_t vsop_rad_Earth[] = }; ; -static const vsop_term_t vsop_lat_Mars_0[] = +static const vsop_term_t vsop_lat_Mars_0[] = { { 6.20347711581, 0.00000000000, 0.00000000000 }, { 0.18656368093, 5.05037100270, 3340.61242669980 }, @@ -1830,7 +1830,7 @@ static const vsop_term_t vsop_lat_Mars_0[] = { 0.00000299395, 2.78323740866, 6254.62666252360 } }; -static const vsop_term_t vsop_lat_Mars_1[] = +static const vsop_term_t vsop_lat_Mars_1[] = { { 3340.61242700512, 0.00000000000, 0.00000000000 }, { 0.01457554523, 3.60433733236, 3340.61242669980 }, @@ -1841,20 +1841,20 @@ static const vsop_term_t vsop_lat_Mars_1[] = { 0.00000841535, 4.45864030426, 2281.23049651060 } }; -static const vsop_term_t vsop_lat_Mars_2[] = +static const vsop_term_t vsop_lat_Mars_2[] = { { 0.00058152577, 2.04961712429, 3340.61242669980 }, { 0.00013459579, 2.45738706163, 6681.22485339960 } }; -static const vsop_series_t vsop_lat_Mars[] = +static const vsop_series_t vsop_lat_Mars[] = { { 49, vsop_lat_Mars_0 }, { 7, vsop_lat_Mars_1 }, { 2, vsop_lat_Mars_2 } }; -static const vsop_term_t vsop_lon_Mars_0[] = +static const vsop_term_t vsop_lon_Mars_0[] = { { 0.03197134986, 3.76832042431, 3340.61242669980 }, { 0.00298033234, 4.10616996305, 6681.22485339960 }, @@ -1863,20 +1863,20 @@ static const vsop_term_t vsop_lon_Mars_0[] = { 0.00003484100, 4.78812549260, 13362.44970679920 } }; -static const vsop_term_t vsop_lon_Mars_1[] = +static const vsop_term_t vsop_lon_Mars_1[] = { { 0.00217310991, 6.04472194776, 3340.61242669980 }, { 0.00020976948, 3.14159265359, 0.00000000000 }, { 0.00012834709, 1.60810667915, 6681.22485339960 } }; -static const vsop_series_t vsop_lon_Mars[] = +static const vsop_series_t vsop_lon_Mars[] = { { 5, vsop_lon_Mars_0 }, { 3, vsop_lon_Mars_1 } }; -static const vsop_term_t vsop_rad_Mars_0[] = +static const vsop_term_t vsop_rad_Mars_0[] = { { 1.53033488271, 0.00000000000, 0.00000000000 }, { 0.14184953160, 3.47971283528, 3340.61242669980 }, @@ -1899,7 +1899,7 @@ static const vsop_term_t vsop_rad_Mars_0[] = { 0.00000740975, 1.49906336885, 2146.16541647520 } }; -static const vsop_term_t vsop_rad_Mars_1[] = +static const vsop_term_t vsop_rad_Mars_1[] = { { 0.01107433345, 2.03250524857, 3340.61242669980 }, { 0.00103175887, 2.37071847807, 6681.22485339960 }, @@ -1907,13 +1907,13 @@ static const vsop_term_t vsop_rad_Mars_1[] = { 0.00010815880, 2.70888095665, 10021.83728009940 } }; -static const vsop_term_t vsop_rad_Mars_2[] = +static const vsop_term_t vsop_rad_Mars_2[] = { { 0.00044242249, 0.47930604954, 3340.61242669980 }, { 0.00008138042, 0.86998389204, 6681.22485339960 } }; -static const vsop_series_t vsop_rad_Mars[] = +static const vsop_series_t vsop_rad_Mars[] = { { 19, vsop_rad_Mars_0 }, { 4, vsop_rad_Mars_1 }, @@ -1921,7 +1921,7 @@ static const vsop_series_t vsop_rad_Mars[] = }; ; -static const vsop_term_t vsop_lat_Jupiter_0[] = +static const vsop_term_t vsop_lat_Jupiter_0[] = { { 0.59954691494, 0.00000000000, 0.00000000000 }, { 0.09695898719, 5.06191793158, 529.69096509460 }, @@ -1954,7 +1954,7 @@ static const vsop_term_t vsop_lat_Jupiter_0[] = { 0.00000973272, 4.09764549134, 95.97922721780 } }; -static const vsop_term_t vsop_lat_Jupiter_1[] = +static const vsop_term_t vsop_lat_Jupiter_1[] = { { 529.69096508814, 0.00000000000, 0.00000000000 }, { 0.00489503243, 4.22082939470, 529.69096509460 }, @@ -1967,21 +1967,21 @@ static const vsop_term_t vsop_lat_Jupiter_1[] = { 0.00004237744, 5.89008707199, 14.22709400160 } }; -static const vsop_term_t vsop_lat_Jupiter_2[] = +static const vsop_term_t vsop_lat_Jupiter_2[] = { { 0.00047233601, 4.32148536482, 7.11354700080 }, { 0.00030649436, 2.92977788700, 529.69096509460 }, { 0.00014837605, 3.14159265359, 0.00000000000 } }; -static const vsop_series_t vsop_lat_Jupiter[] = +static const vsop_series_t vsop_lat_Jupiter[] = { { 29, vsop_lat_Jupiter_0 }, { 9, vsop_lat_Jupiter_1 }, { 3, vsop_lat_Jupiter_2 } }; -static const vsop_term_t vsop_lon_Jupiter_0[] = +static const vsop_term_t vsop_lon_Jupiter_0[] = { { 0.02268615702, 3.55852606721, 529.69096509460 }, { 0.00109971634, 3.90809347197, 1059.38193018920 }, @@ -1991,18 +1991,18 @@ static const vsop_term_t vsop_lon_Jupiter_0[] = { 0.00006437782, 0.30627119215, 536.80451209540 } }; -static const vsop_term_t vsop_lon_Jupiter_1[] = +static const vsop_term_t vsop_lon_Jupiter_1[] = { { 0.00078203446, 1.52377859742, 529.69096509460 } }; -static const vsop_series_t vsop_lon_Jupiter[] = +static const vsop_series_t vsop_lon_Jupiter[] = { { 6, vsop_lon_Jupiter_0 }, { 1, vsop_lon_Jupiter_1 } }; -static const vsop_term_t vsop_rad_Jupiter_0[] = +static const vsop_term_t vsop_rad_Jupiter_0[] = { { 5.20887429326, 0.00000000000, 0.00000000000 }, { 0.25209327119, 3.49108639871, 529.69096509460 }, @@ -2022,7 +2022,7 @@ static const vsop_term_t vsop_rad_Jupiter_0[] = { 0.00012749023, 2.71550286592, 1052.26838318840 } }; -static const vsop_term_t vsop_rad_Jupiter_1[] = +static const vsop_term_t vsop_rad_Jupiter_1[] = { { 0.01271801520, 2.64937512894, 529.69096509460 }, { 0.00061661816, 3.00076460387, 1059.38193018920 }, @@ -2031,14 +2031,14 @@ static const vsop_term_t vsop_rad_Jupiter_1[] = { 0.00041390269, 0.00000000000, 0.00000000000 } }; -static const vsop_series_t vsop_rad_Jupiter[] = +static const vsop_series_t vsop_rad_Jupiter[] = { { 16, vsop_rad_Jupiter_0 }, { 5, vsop_rad_Jupiter_1 } }; ; -static const vsop_term_t vsop_lat_Saturn_0[] = +static const vsop_term_t vsop_lat_Saturn_0[] = { { 0.87401354025, 0.00000000000, 0.00000000000 }, { 0.11107659762, 3.96205090159, 213.29909543800 }, @@ -2075,7 +2075,7 @@ static const vsop_term_t vsop_lat_Saturn_0[] = { 0.00000848642, 3.19150170830, 209.36694217490 } }; -static const vsop_term_t vsop_lat_Saturn_1[] = +static const vsop_term_t vsop_lat_Saturn_1[] = { { 213.29909521690, 0.00000000000, 0.00000000000 }, { 0.01297370862, 1.82834923978, 213.29909543800 }, @@ -2091,7 +2091,7 @@ static const vsop_term_t vsop_lat_Saturn_1[] = { 0.00003768635, 3.64965330780, 3.93215326310 } }; -static const vsop_term_t vsop_lat_Saturn_2[] = +static const vsop_term_t vsop_lat_Saturn_2[] = { { 0.00116441330, 1.17988132879, 7.11354700080 }, { 0.00091841837, 0.07325195840, 213.29909543800 }, @@ -2099,14 +2099,14 @@ static const vsop_term_t vsop_lat_Saturn_2[] = { 0.00015274496, 4.06493179167, 206.18554843720 } }; -static const vsop_series_t vsop_lat_Saturn[] = +static const vsop_series_t vsop_lat_Saturn[] = { { 33, vsop_lat_Saturn_0 }, { 12, vsop_lat_Saturn_1 }, { 4, vsop_lat_Saturn_2 } }; -static const vsop_term_t vsop_lon_Saturn_0[] = +static const vsop_term_t vsop_lon_Saturn_0[] = { { 0.04330678039, 3.60284428399, 213.29909543800 }, { 0.00240348302, 2.85238489373, 426.59819087600 }, @@ -2119,20 +2119,20 @@ static const vsop_term_t vsop_lon_Saturn_0[] = { 0.00004807588, 5.43305312061, 316.39186965660 } }; -static const vsop_term_t vsop_lon_Saturn_1[] = +static const vsop_term_t vsop_lon_Saturn_1[] = { { 0.00198927992, 4.93901017903, 213.29909543800 }, { 0.00036947916, 3.14159265359, 0.00000000000 }, { 0.00017966989, 0.51979431110, 426.59819087600 } }; -static const vsop_series_t vsop_lon_Saturn[] = +static const vsop_series_t vsop_lon_Saturn[] = { { 9, vsop_lon_Saturn_0 }, { 3, vsop_lon_Saturn_1 } }; -static const vsop_term_t vsop_rad_Saturn_0[] = +static const vsop_term_t vsop_rad_Saturn_0[] = { { 9.55758135486, 0.00000000000, 0.00000000000 }, { 0.52921382865, 2.39226219573, 213.29909543800 }, @@ -2152,7 +2152,7 @@ static const vsop_term_t vsop_rad_Saturn_0[] = { 0.00020936596, 0.46349251129, 735.87651353180 } }; -static const vsop_term_t vsop_rad_Saturn_1[] = +static const vsop_term_t vsop_rad_Saturn_1[] = { { 0.06182981340, 0.25843511480, 213.29909543800 }, { 0.00506577242, 0.71114625261, 206.18554843720 }, @@ -2162,12 +2162,12 @@ static const vsop_term_t vsop_rad_Saturn_1[] = { 0.00143891146, 1.40744822888, 7.11354700080 } }; -static const vsop_term_t vsop_rad_Saturn_2[] = +static const vsop_term_t vsop_rad_Saturn_2[] = { { 0.00436902572, 4.78671677509, 213.29909543800 } }; -static const vsop_series_t vsop_rad_Saturn[] = +static const vsop_series_t vsop_rad_Saturn[] = { { 16, vsop_rad_Saturn_0 }, { 6, vsop_rad_Saturn_1 }, @@ -2175,7 +2175,7 @@ static const vsop_series_t vsop_rad_Saturn[] = }; ; -static const vsop_term_t vsop_lat_Uranus_0[] = +static const vsop_term_t vsop_lat_Uranus_0[] = { { 5.48129294297, 0.00000000000, 0.00000000000 }, { 0.09260408234, 0.89106421507, 74.78159856730 }, @@ -2218,7 +2218,7 @@ static const vsop_term_t vsop_lat_Uranus_0[] = { 0.00001150989, 4.17898916639, 33.67961751290 } }; -static const vsop_term_t vsop_lat_Uranus_1[] = +static const vsop_term_t vsop_lat_Uranus_1[] = { { 74.78159860910, 0.00000000000, 0.00000000000 }, { 0.00154332863, 5.24158770553, 74.78159856730 }, @@ -2228,13 +2228,13 @@ static const vsop_term_t vsop_lat_Uranus_1[] = { 0.00009150160, 1.41213765216, 149.56319713460 } }; -static const vsop_series_t vsop_lat_Uranus[] = +static const vsop_series_t vsop_lat_Uranus[] = { { 39, vsop_lat_Uranus_0 }, { 6, vsop_lat_Uranus_1 } }; -static const vsop_term_t vsop_lon_Uranus_0[] = +static const vsop_term_t vsop_lon_Uranus_0[] = { { 0.01346277648, 2.61877810547, 74.78159856730 }, { 0.00062341400, 5.08111189648, 149.56319713460 }, @@ -2243,18 +2243,18 @@ static const vsop_term_t vsop_lon_Uranus_0[] = { 0.00009926160, 0.57630380333, 73.29712585900 } }; -static const vsop_term_t vsop_lon_Uranus_1[] = +static const vsop_term_t vsop_lon_Uranus_1[] = { { 0.00034101978, 0.01321929936, 74.78159856730 } }; -static const vsop_series_t vsop_lon_Uranus[] = +static const vsop_series_t vsop_lon_Uranus[] = { { 5, vsop_lon_Uranus_0 }, { 1, vsop_lon_Uranus_1 } }; -static const vsop_term_t vsop_rad_Uranus_0[] = +static const vsop_term_t vsop_rad_Uranus_0[] = { { 19.21264847206, 0.00000000000, 0.00000000000 }, { 0.88784984413, 5.60377527014, 74.78159856730 }, @@ -2279,19 +2279,19 @@ static const vsop_term_t vsop_rad_Uranus_0[] = { 0.00029156413, 3.18056336700, 77.75054398390 } }; -static const vsop_term_t vsop_rad_Uranus_1[] = +static const vsop_term_t vsop_rad_Uranus_1[] = { { 0.01479896629, 3.67205697578, 74.78159856730 } }; -static const vsop_series_t vsop_rad_Uranus[] = +static const vsop_series_t vsop_rad_Uranus[] = { { 21, vsop_rad_Uranus_0 }, { 1, vsop_rad_Uranus_1 } }; ; -static const vsop_term_t vsop_lat_Neptune_0[] = +static const vsop_term_t vsop_lat_Neptune_0[] = { { 5.31188633046, 0.00000000000, 0.00000000000 }, { 0.01798475530, 2.90101273890, 38.13303563780 }, @@ -2305,20 +2305,20 @@ static const vsop_term_t vsop_lat_Neptune_0[] = { 0.00008994250, 0.27462171806, 175.16605980020 } }; -static const vsop_term_t vsop_lat_Neptune_1[] = +static const vsop_term_t vsop_lat_Neptune_1[] = { { 38.13303563957, 0.00000000000, 0.00000000000 }, { 0.00016604172, 4.86323329249, 1.48447270830 }, { 0.00015744045, 2.27887427527, 38.13303563780 } }; -static const vsop_series_t vsop_lat_Neptune[] = +static const vsop_series_t vsop_lat_Neptune[] = { { 10, vsop_lat_Neptune_0 }, { 3, vsop_lat_Neptune_1 } }; -static const vsop_term_t vsop_lon_Neptune_0[] = +static const vsop_term_t vsop_lon_Neptune_0[] = { { 0.03088622933, 1.44104372644, 38.13303563780 }, { 0.00027780087, 5.91271884599, 76.26607127560 }, @@ -2327,12 +2327,12 @@ static const vsop_term_t vsop_lon_Neptune_0[] = { 0.00015448133, 3.50877079215, 39.61750834610 } }; -static const vsop_series_t vsop_lon_Neptune[] = +static const vsop_series_t vsop_lon_Neptune[] = { { 5, vsop_lon_Neptune_0 } }; -static const vsop_term_t vsop_rad_Neptune_0[] = +static const vsop_term_t vsop_rad_Neptune_0[] = { { 30.07013205828, 0.00000000000, 0.00000000000 }, { 0.27062259632, 1.32999459377, 38.13303563780 }, @@ -2343,7 +2343,7 @@ static const vsop_term_t vsop_rad_Neptune_0[] = { 0.00274571975, 1.84552258866, 175.16605980020 } }; -static const vsop_series_t vsop_rad_Neptune[] = +static const vsop_series_t vsop_rad_Neptune[] = { { 7, vsop_rad_Neptune_0 } }; diff --git a/source/js/astronomy.js b/source/js/astronomy.js index 1cfb6270..6952b26f 100644 --- a/source/js/astronomy.js +++ b/source/js/astronomy.js @@ -1259,7 +1259,7 @@ Astronomy.MakeTime = function(date) { } const iaudata = [ - + { nals:[ 0, 0, 0, 0, 1 ], cls:[ -172064161, -174666, 33386, 92052331, 9086, 15377 ] }, { nals:[ 0, 0, 2, -2, 2 ], cls:[ -13170906, -1675, -13696, 5730336, -3015, -4587 ] }, { nals:[ 0, 0, 2, 0, 2 ], cls:[ -2276413, -234, 2796, 978459, -485, 1374 ] }, @@ -1545,7 +1545,7 @@ function CalcMoon(time) { SINPI += coeffp * result.x; } - + AddSol( 13.9020, 14.0600, -0.0010, 0.2607, 0, 0, 0, 4); AddSol( 0.4030, -4.0100, 0.3940, 0.0023, 0, 0, 0, 3); AddSol( 2369.9120, 2373.3600, 0.6010, 28.2333, 0, 0, 0, 2); diff --git a/source/python/astronomy.py b/source/python/astronomy.py index 724d8c6b..699cfa1d 100644 --- a/source/python/astronomy.py +++ b/source/python/astronomy.py @@ -319,7 +319,7 @@ class _iau2000b: om = math.fmod((450160.398036 - t*6962890.5431), _ASEC360) * _ASEC2RAD dp = 0 de = 0 - + sarg = math.sin(om) carg = math.cos(om) @@ -1158,7 +1158,7 @@ def _CalcMoon(time): I += 1 - + # AddSol(13.902000, 14.060000, -0.001000, 0.260700, 0.000000, 0.000000, 0.000000, 4.000000) z = ex[4][4]