mirror of
https://github.com/acamarata/nrel-spa.git
synced 2026-06-30 19:04:25 +00:00
No description
| .DS_Store | ||
| .gitignore | ||
| CHANGELOG.md | ||
| index.js | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| test.js | ||
nrel-spa
NREL SPA (Solar Position Algorithm) native implementation in JavaScript. This package allows for precise calculations of solar positions and phases based on geographical coordinates and time.
Installation
npm install nrel-spa
Usage
Basic usage examples:
const { calcSpa } = require('nrel-spa');
const myLat = 40.7128; // Latitude for New York City
const myLng = -74.006; // Longitude for New York City
const myDate = new Date(); // Current date
const solarData = calcSpa(myDate, myLat, myLng);
console.log(solarData);
API
Describe the functions and their parameters briefly.
Contributing
Contributions are welcome! Please read our contributing guidelines.
License
This project is licensed under the ISC License - see the LICENSE file for details.