Comments (2)
Seems like phaseValue > angle changes from negative to +
const phaseValue = 0.5 + 0.5 * inc * (angle < 0 ? -1 : 1) / Math.PI;`
Needs different calculation?
from suncalc3.
my test shows
2023-01-06T20:01:00.000Z :: 0.4871753060126663 : inc= 0.08057992883028949 : angle= -0.006864309966472515 phi 3.060794777247738
2023-01-06T20:02:00.000Z :: 0.4871768596219541 : inc= 0.0805701672152393 : angle= -0.0051863596624214855 phi 3.060804564707265
2023-01-06T20:03:00.000Z :: 0.48717838016861714 : inc= 0.08056061333878714 : angle= -0.0035080388833727575 phi 3.0608141438679413
2023-01-06T20:04:00.000Z :: 0.48717986764162136 : inc= 0.08055126727026235 : angle= -0.0018293557850178684 phi 3.060823514660245
2023-01-06T20:05:00.000Z :: 0.4871813220302154 : inc= 0.08054212907721703 : angle= -0.00015031851512667426 phi 3.060832677016437
2023-01-06T20:06:00.000Z :: 0.5128172566761461 : inc= 0.08053319882591041 : angle= 0.0015290647419691848 phi 3.060841630870074
2023-01-06T20:07:00.000Z :: 0.5128158684877107 : inc= 0.08052447658072927 : angle= 0.0032087858174714625 phi 3.0608503761565897
2023-01-06T20:08:00.000Z :: 0.5128145134145109 : inc= 0.08051596240471047 : angle= 0.004888836510851489 phi 3.0608589128127726
2023-01-06T20:09:00.000Z :: 0.5128131914662997 : inc= 0.080507656359133 : angle= 0.006569208629383839 phi 3.060867240777173
2023-01-06T20:10:00.000Z :: 0.5128119026517515 : inc= 0.08049955849849981 : angle= 0.008249895078669037 phi 3.0608753599951353
from suncalc3.
Related Issues (9)
- How to find the days of phase Moon HOT 2
- Error in documentation getSolarTime
- getSunTimes time results are slightly off
- The npm package lacks the types definition
- Incorrect getSunTimes data with negative coordinates
- Different days for moonset and moonrise result
- Geocentric position of the Moon (decimal degrees)
- README.md
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from suncalc3.