Skip to content

Implements Astronomical Calculations Found in the Book Practical Astronomy With Your Calculator

Notifications You must be signed in to change notification settings

treker7/practical-astronomy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Practical Astronomy - Algorithms Implemented from the Book Practical Astronomy With Your Calculator

Installation:

npm install --save-dev treker7/practical-astronomy

Examples:

var sun = require('./practical-astronomy/services/sun');
var moon = require('./practical-astronomy/services/moon');
var GeographicCoordinate = require("../models/geographicCoorindate");

const myLocation = new GeographicCoordinate(42.37, -71.05);
const myTime = moment();

var riseAndSetTimes = sun.getRiseAndSetTime(myLocation, myTime);
console.log('The sun will rise at: ' + riseAndSetTimes.riseTime);
console.log('The sun will set at: ' + riseAndSetTimes.setTime);

var moonPhase = moon.getPhase(myTime);
console.log('The current moon phase is: ' + moonPhase);

About

Implements Astronomical Calculations Found in the Book Practical Astronomy With Your Calculator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published