From e97ed651e16e736355699e97fb13011db5fe8280 Mon Sep 17 00:00:00 2001 From: Lorenzo Date: Sun, 5 Dec 2021 09:31:37 +0200 Subject: [PATCH] Structure --- files/data-array.json | 102 ++++++++++++++++++++-------------------- files/data-local.json | 102 ++++++++++++++++++++-------------------- files/forceVectors.json | 11 +++-- planets.js | 7 ++- 4 files changed, 113 insertions(+), 109 deletions(-) diff --git a/files/data-array.json b/files/data-array.json index fbe78fe..c6737ff 100644 --- a/files/data-array.json +++ b/files/data-array.json @@ -2,146 +2,146 @@ [ "mercury", { - "lon": 263.7034222735674, - "lat": -4.07058336479043, - "radiusVector": 0.4659409382903555 + "lon": 263.717560908437, + "lat": -4.071991900604807, + "radiusVector": 0.46593760760246516 } ], [ "venus", { - "lon": 52.41448313684123, - "lat": -1.3931882659919244, - "radiusVector": 0.7223990782599276 + "lon": 52.422709226126244, + "lat": -1.3927434857381353, + "radiusVector": 0.7223983877605489 } ], [ "earth", { - "lon": 73.07176652027647, - "lat": -0.002635383273172688, - "radiusVector": 0.9855076239685167 + "lon": 73.07697141483914, + "lat": -0.002635245794864464, + "radiusVector": 0.9855068797672497 } ], [ "mars", { - "lon": 222.26979778191617, - "lat": 0.23233920893652374, - "radiusVector": 1.569867836104931 + "lon": 222.27231653316812, + "lat": 0.2322585898988309, + "radiusVector": 1.569861711439626 } ], [ "jupiter", { - "lon": 336.5273209080681, - "lat": -1.080895321960127, - "radiusVector": 4.9985231543590505 + "lon": 336.52778199820364, + "lat": -1.0809011852226922, + "radiusVector": 4.998522013736516 } ], [ "saturn", { - "lon": 313.7394409400976, - "lat": -0.8567146612525357, - "radiusVector": 9.92538930925444 + "lon": 313.73959941697115, + "lat": -0.8567211201418274, + "radiusVector": 9.925388254957305 } ], [ "neptune", { - "lon": 351.97910791807914, - "lat": -1.14280835774779, - "radiusVector": 29.920728631846668 + "lon": 351.9791389844934, + "lat": -1.1428090898189884, + "radiusVector": 29.920728531927878 } ], [ "mercuryg", { - "lon": 256.7804019645505, - "lat": -1.3124076882786189, - "radiusVector": 1.445218914235634 + "lon": 256.78843904073045, + "lat": -1.3128639802137543, + "radiusVector": 1.4452052049828181 } ], [ "venusg", { - "lon": 292.81528990611366, - "lat": -2.5036185804488813, - "radiusVector": 0.4014500506016337 + "lon": 292.81778127176324, + "lat": -2.5030244974780533, + "radiusVector": 0.4014165293007298 } ], [ "marsg", { - "lon": 234.3727119085943, - "lat": 0.1463512402498897, - "radiusVector": 2.4684928588461643 + "lon": 234.3762681949025, + "lat": 0.1463005557912052, + "radiusVector": 2.468471116172413 } ], [ "jupiterg", { - "lon": 325.98707639565623, - "lat": -1.0391539877950762, - "radiusVector": 5.203762172251703 + "lon": 325.98781171883746, + "lat": -1.0391441187720623, + "radiusVector": 5.203838680795959 } ], [ "saturng", { - "lon": 309.3264187302205, - "lat": -0.8160115650429611, - "radiusVector": 10.443512480779363 + "lon": 309.32684699361755, + "lat": -0.8160121261405242, + "radiusVector": 10.443582920070842 } ], [ "neptuneg", { - "lon": 350.4118213572339, - "lat": -1.1482001475419372, - "radiusVector": 29.784083149093107 + "lon": 350.4118330744947, + "lat": -1.148197479699334, + "radiusVector": 29.784171445068967 } ], [ "moong", { - "lon": 267.38681823212744, - "lat": -2.292802390836487, - "radiusVector": 0.002390290633714132 + "lon": 267.46472213989136, + "lat": -2.2992869367289206, + "radiusVector": 0.002390351287951914 } ], [ "mercuryd", - 216201672.26501673 + 216199621.3899866 ], [ "venusd", - 60056072.76241165 + 60051058.047173336 ], [ "marsd", - 369281275.52154183 + 369278022.8638453 ], [ "jupiterd", - 778471740.5980613 + 778483186.1133724 ], [ "saturnd", - 1562327229.7534673 + 1562337767.321486 ], [ "neptuned", - 4455635419.856079 + 4455648628.746059 ], [ "moon_d", - 357582.3891577878 + 357591.46290260885 ], [ "moon_IF", - 0.015344280840822289 + 0.015501120218045616 ], [ "mercury_mass", @@ -181,6 +181,6 @@ ], [ "time", - "2021-12-05T07:23:44.641Z" + "2021-12-05T07:31:07.419Z" ] ] \ No newline at end of file diff --git a/files/data-local.json b/files/data-local.json index a49a0ed..da9bbe8 100644 --- a/files/data-local.json +++ b/files/data-local.json @@ -1,82 +1,82 @@ { "mercury": { - "lon": 263.7034222735674, - "lat": -4.07058336479043, - "radiusVector": 0.4659409382903555 + "lon": 263.717560908437, + "lat": -4.071991900604807, + "radiusVector": 0.46593760760246516 }, "venus": { - "lon": 52.41448313684123, - "lat": -1.3931882659919244, - "radiusVector": 0.7223990782599276 + "lon": 52.422709226126244, + "lat": -1.3927434857381353, + "radiusVector": 0.7223983877605489 }, "earth": { - "lon": 73.07176652027647, - "lat": -0.002635383273172688, - "radiusVector": 0.9855076239685167 + "lon": 73.07697141483914, + "lat": -0.002635245794864464, + "radiusVector": 0.9855068797672497 }, "mars": { - "lon": 222.26979778191617, - "lat": 0.23233920893652374, - "radiusVector": 1.569867836104931 + "lon": 222.27231653316812, + "lat": 0.2322585898988309, + "radiusVector": 1.569861711439626 }, "jupiter": { - "lon": 336.5273209080681, - "lat": -1.080895321960127, - "radiusVector": 4.9985231543590505 + "lon": 336.52778199820364, + "lat": -1.0809011852226922, + "radiusVector": 4.998522013736516 }, "saturn": { - "lon": 313.7394409400976, - "lat": -0.8567146612525357, - "radiusVector": 9.92538930925444 + "lon": 313.73959941697115, + "lat": -0.8567211201418274, + "radiusVector": 9.925388254957305 }, "neptune": { - "lon": 351.97910791807914, - "lat": -1.14280835774779, - "radiusVector": 29.920728631846668 + "lon": 351.9791389844934, + "lat": -1.1428090898189884, + "radiusVector": 29.920728531927878 }, "mercuryg": { - "lon": 256.7804019645505, - "lat": -1.3124076882786189, - "radiusVector": 1.445218914235634 + "lon": 256.78843904073045, + "lat": -1.3128639802137543, + "radiusVector": 1.4452052049828181 }, "venusg": { - "lon": 292.81528990611366, - "lat": -2.5036185804488813, - "radiusVector": 0.4014500506016337 + "lon": 292.81778127176324, + "lat": -2.5030244974780533, + "radiusVector": 0.4014165293007298 }, "marsg": { - "lon": 234.3727119085943, - "lat": 0.1463512402498897, - "radiusVector": 2.4684928588461643 + "lon": 234.3762681949025, + "lat": 0.1463005557912052, + "radiusVector": 2.468471116172413 }, "jupiterg": { - "lon": 325.98707639565623, - "lat": -1.0391539877950762, - "radiusVector": 5.203762172251703 + "lon": 325.98781171883746, + "lat": -1.0391441187720623, + "radiusVector": 5.203838680795959 }, "saturng": { - "lon": 309.3264187302205, - "lat": -0.8160115650429611, - "radiusVector": 10.443512480779363 + "lon": 309.32684699361755, + "lat": -0.8160121261405242, + "radiusVector": 10.443582920070842 }, "neptuneg": { - "lon": 350.4118213572339, - "lat": -1.1482001475419372, - "radiusVector": 29.784083149093107 + "lon": 350.4118330744947, + "lat": -1.148197479699334, + "radiusVector": 29.784171445068967 }, "moong": { - "lon": 267.38681823212744, - "lat": -2.292802390836487, - "radiusVector": 0.002390290633714132 + "lon": 267.46472213989136, + "lat": -2.2992869367289206, + "radiusVector": 0.002390351287951914 }, - "mercuryd": 216201672.26501673, - "venusd": 60056072.76241165, - "marsd": 369281275.52154183, - "jupiterd": 778471740.5980613, - "saturnd": 1562327229.7534673, - "neptuned": 4455635419.856079, - "moon_d": 357582.3891577878, - "moon_IF": 0.015344280840822289, + "mercuryd": 216199621.3899866, + "venusd": 60051058.047173336, + "marsd": 369278022.8638453, + "jupiterd": 778483186.1133724, + "saturnd": 1562337767.321486, + "neptuned": 4455648628.746059, + "moon_d": 357591.46290260885, + "moon_IF": 0.015501120218045616, "mercury_mass": 0.33, "venus_mass": 4.87, "earth_mass": 5.97, @@ -86,5 +86,5 @@ "uranus_mass": 86.8, "neptune_mass": 102, "moon_mass": 0.073, - "time": "2021-12-05T07:23:44.641Z" + "time": "2021-12-05T07:31:07.419Z" } \ No newline at end of file diff --git a/files/forceVectors.json b/files/forceVectors.json index 964cdf3..fa1d30f 100644 --- a/files/forceVectors.json +++ b/files/forceVectors.json @@ -1,7 +1,8 @@ { - "tractionEarth": "1.1880247153221047e+21", - "vectorDirection_E": -64.77922237275264, - "tractionSubject": 0.001591992918354579, - "vector_direction_S": -64.77922237275264, - "moon_illumination_fraction": 0.015344280840822289 + "tractionEarth": "1.1889428385994742e+21", + "vectorDirection_E": -64.73085275035419, + "tractionSubject": 0.0015932232343041526, + "vector_direction_S": -64.73085275035419, + "globalVectorLong_p_SDnorm": 0.12028824997176621, + "moon_illumination_fraction": 0.015501120218045616 } \ No newline at end of file diff --git a/planets.js b/planets.js index fdf40c1..3572f85 100644 --- a/planets.js +++ b/planets.js @@ -123,10 +123,12 @@ console.log('x_p exponential:', x_p.toExponential(), 'y_p exponential:', y_p.toE let globalVectorLong_p = Math.atan(y_p/x_p) * 180 / Math.PI; let globalVectorForce_p = Math.sqrt((x_p**2) + (y_p**2)); let globalVectorLong_p_SD = math.std(myData.mercuryg.lon,myData.venusg.lon,myData.marsg.lon, myData.jupiterg.lon,myData.saturng.lon,myData.neptuneg.lon); +let globalVectorLong_p_SDnorm = globalVectorLong_p_SD/360; console.log('global vector longitude_p:', globalVectorLong_p, 'degrees'); console.log('global vector force_p:', globalVectorForce_p, 'Newtons'); -console.log('global vector longitude_p SD:', globalVectorLong_p_SD, 'degrees'); +// let's compute the dispersion of the longitudes as SD of all values, then divide by 360: +console.log('global vector longitude_p SD/360:', globalVectorLong_p_SDnorm, 'degrees'); let moon_IF = myData.moon_IF; @@ -134,7 +136,8 @@ const forceVectors = JSON.stringify({ tractionEarth: globalVectorForce, vectorDirection_E:globalVectorLong, tractionSubject:globalVectorForce_p, - vector_direction_S:globalVectorLong_p, + vector_direction_S:globalVectorLong_p, + globalVectorLong_p_SDnorm:globalVectorLong_p_SDnorm, moon_illumination_fraction: moon_IF}, null, 4); console.log(forceVectors);