alpha_lib 1.0.9 copy "alpha_lib: ^1.0.9" to clipboard
alpha_lib: ^1.0.9 copied to clipboard

A database-less library for astronomical calculations.

example/alpha_lib_example.dart

import 'package:alpha_lib/src/deep_sky.dart';

class Example {
  DeepSky vega = DeepSky(latitude: 40.5, longitude: -72.1, raRad: 4.832, decRad: 0.67718, time: DateTime.timestamp(), utcOffset: -5, minAz: 200, maxAz: 300);

  Example () {
    print(vega.altAz); // Get the altitude and azimuth of Vega, at the current time, at coordinates (40.5, -72.1)
    print(vega.peakInfo); // Gets the azimuth, altitude, and time of Vega's peak / transit
    print(vega.sunriseSunset(104)); // Gets the times which at which the Sun is above/below 104° zenith angle
  }
}
1
likes
40
points
57
downloads

Publisher

verified publisherapi.astro-alpha.com

Weekly Downloads

A database-less library for astronomical calculations.

Repository (GitHub)

Topics

#astronomy

License

GPL-3.0 (license)

More

Packages that depend on alpha_lib