nrel-spa-dart/lib/nrel_spa.dart
Aric Camarata d59e1dec32 feat: gap-fill API surface parity with nrel-spa JS (v1.0.1)
Add formatTime, calcSpa, SpaFormattedResult, SpaFormattedAnglesResult,
functionCode parameter for getSpa (spaZa/spaZaInc/spaZaRts/spaAll),
incidence field on SpaResult, and export all function code constants.

All 48 tests pass including numerical cross-validation against the NREL
SPA reference date (Golden CO, 2003-10-17) and surface incidence angle.
2026-05-25 18:11:27 -04:00

9 lines
316 B
Dart

/// NREL Solar Position Algorithm for Dart.
///
/// Pure Dart implementation of the NREL SPA (Reda & Andreas, 2004).
/// Accurate to ±0.0003° for solar zenith angle over years -2000 to 6000.
/// Zero external dependencies.
library;
export 'src/types.dart';
export 'src/spa.dart' show getSpa, calcSpa, formatTime;