lp:~stellarium/stellarium/fix-DeltaT
This branch should fix some mental twists currently performed around application of DeltaT.
This branch keeps JD in core as JD(UT) with its DeltaT attached in a QPair. Functions using a time argument must decide which flavour of JD is required (getJD() without DeltaT [everything converning time on Earth, calendars, sunrise, ...], getJDE() comes with it [planet and lunar positions]). A few function prototypes had to be changed to cater for mixed cases, those will now be called with separate JD and JDE parameters.
For the user not much changes. Time is still displayed in UT (or just with timezone offset) as expected. Only when changing DeltaT algorithm in the GUI, the displayed time does not change, and earth rotation (i.e. displayed time) does not jump by the difference in deltaT settings.
I have also added a small change that changes the tooltip text on the calendar panel as "Julian Calendar" if date < 1582-10-15.
I have tested with the JPL Horizon data given in https:/
I have also checked satellite times (ISS passage) against heavens-above. Crossing 10° altitude and going into shadow match to the second!
I think we can merge.
- Get this branch:
- bzr branch lp:~stellarium/stellarium/fix-DeltaT
Branch merges
- Alexander Wolf: Approve
-
Diff: 3522 lines (+693/-585)59 files modifiedplugins/AngleMeasure/src/AngleMeasure.hpp (+5/-3)
plugins/ArchaeoLines/src/ArchaeoLines.cpp (+11/-5)
plugins/ArchaeoLines/src/ArchaeoLines.hpp (+1/-1)
plugins/EquationOfTime/src/EquationOfTime.cpp (+12/-10)
plugins/EquationOfTime/src/EquationOfTime.hpp (+2/-2)
plugins/Exoplanets/src/Exoplanet.cpp (+1/-1)
plugins/MeteorShowers/src/MeteorShower.cpp (+3/-3)
plugins/MeteorShowers/src/MeteorShowers.cpp (+4/-3)
plugins/MeteorShowers/src/gui/MeteorShowerDialog.cpp (+2/-1)
plugins/Novae/src/Nova.cpp (+1/-1)
plugins/Novae/src/Nova.hpp (+5/-0)
plugins/Observability/src/Observability.cpp (+121/-99)
plugins/Observability/src/Observability.hpp (+25/-18)
plugins/PointerCoordinates/src/PointerCoordinates.cpp (+2/-2)
plugins/Satellites/src/Satellite.cpp (+2/-3)
plugins/Satellites/src/Satellites.cpp (+1/-1)
plugins/Satellites/src/gSatWrapper.cpp (+1/-1)
plugins/Satellites/src/gsatellite/gVector.cpp (+1/-1)
plugins/Satellites/src/gsatellite/gVector.hpp (+3/-2)
plugins/Scenery3d/src/Scenery3d.cpp (+3/-3)
plugins/Supernovae/src/Supernova.cpp (+1/-1)
plugins/TelescopeControl/src/clients/TelescopeClient.cpp (+4/-2)
plugins/TelescopeControl/src/servers/Socket.cpp (+4/-2)
plugins/TextUserInterface/src/TextUserInterface.cpp (+3/-3)
src/core/StelCore.cpp (+147/-111)
src/core/StelCore.hpp (+54/-26)
src/core/StelMovementMgr.cpp (+3/-3)
src/core/StelMovementMgr.hpp (+1/-1)
src/core/StelObject.cpp (+5/-12)
src/core/StelObserver.cpp (+6/-12)
src/core/StelObserver.hpp (+4/-1)
src/core/StelUtils.hpp (+1/-1)
src/core/TrailGroup.cpp (+3/-3)
src/core/modules/Atmosphere.cpp (+1/-1)
src/core/modules/Comet.cpp (+12/-12)
src/core/modules/Comet.hpp (+2/-6)
src/core/modules/Constellation.cpp (+1/-1)
src/core/modules/LandscapeMgr.cpp (+2/-1)
src/core/modules/MinorPlanet.cpp (+3/-3)
src/core/modules/Orbit.cpp (+17/-26)
src/core/modules/Orbit.hpp (+7/-7)
src/core/modules/Planet.cpp (+61/-58)
src/core/modules/Planet.hpp (+17/-15)
src/core/modules/SolarSystem.cpp (+10/-8)
src/core/modules/SolarSystem.hpp (+3/-3)
src/core/modules/StarWrapper.cpp (+1/-1)
src/core/modules/StarWrapper.hpp (+1/-1)
src/core/modules/ZodiacalLight.cpp (+1/-1)
src/core/modules/ZoneArray.cpp (+2/-2)
src/core/planetsephems/sidereal_time.c (+10/-10)
src/core/planetsephems/sidereal_time.h (+2/-2)
src/gui/ConfigurationDialog.cpp (+4/-2)
src/gui/DateTimeDialog.cpp (+16/-23)
src/gui/SearchDialog.cpp (+1/-1)
src/gui/StelGui.cpp (+1/-1)
src/gui/StelGuiItems.cpp (+20/-22)
src/gui/dateTimeDialogGui.ui (+3/-3)
src/scripting/StelMainScriptAPI.cpp (+37/-26)
src/scripting/StelMainScriptAPI.hpp (+16/-11)
Related bugs
Bug #1380242: Calculation of Delta T is incorrectly applied | High | Fix Released |
Related blueprints
Branch information
Recent revisions
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:stellarium