You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This npm package performs astronomical calculations and conversions. If you are attempting to write an app which has to do with astronomy, this package can be of great help as you don't have to search for formulae or methods to perform a certain astronomical calculation or conversion.
4
+
5
+
## Installing
6
+
7
+
```bash
8
+
npm install astro-calculator
9
+
```
10
+
11
+
## Getting started
12
+
13
+
This package provides following functionalities (all parameters are of type `number`):
14
+
15
+
-`getDaysFromJ2000`: calculates number of days from 2000-01-01 at noon until now
16
+
-`parameters`: year, month, day, hours, minutes
17
+
-`returns`: number
18
+
-`getLocalSiderialTime`: calculates local siderial time
**Note**: When asked for time (hour and minues) in parameters of functions for example (`getAltAz`), remember to provide UTC time, not your local current time. This, of course, doesn't apply to the function `convertToHours` which will convert to hours any value of hours, minutes and seconds you provide it to convert - that's another story because it has nothing to do with calculating siderial time, hour angle or alt/az.
0 commit comments