Code Monkey home page Code Monkey logo

astro.jl's People

Contributors

cormullion avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

astro.jl's Issues

Something wrong with equation_time around the equinox

using Astro, Dates

d = DateTime(2015,3,20, 22,39,0):Minute(1):DateTime(2015,3,22,19,49,0)

for day in d
    eq = equation_time(Dates.datetime2julian(day)) # in fractions of day
    println(day, " ", eq)
end

minutes -7.433569 eq return -0.032435 asc 0.000007 2015-03-20T22:40:00
minutes 1432.566635 eq return 6.250751 asc 0.000018 2015-03-20T22:41:00
minutes 1432.566839 eq return 6.250752 asc 0.000029 2015-03-20T22:42:00
...
minutes 1433.123109 eq return 6.253179 asc 0.029916 2015-03-22T19:47:00
minutes 1433.123316 eq return 6.253180 asc 0.029927 2015-03-22T19:48:00
minutes -6.876478 eq return -0.030004 asc 0.029938 2015-03-22T19:49:00
minutes -6.876271 eq return -0.030003

Some rounding error or something.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.