Coder Social home page Coder Social logo

observerly / nocturnal Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 1.0 145 KB

๐ŸŒ‘ Nocturnal is observerly's Gin Gonic API for Lunar and Solar advanced scheduling, that utilises Dusk.

Home Page: https://nocturnal.observerly.com/

License: GNU General Public License v3.0

Go 98.13% Dockerfile 1.81% Shell 0.07%
amateur-astronomy astronomy dawn dusk lunar night solar twilight

nocturnal's Issues

feat: Provide transit maximum object altitude

Currently, the nocturnal endpoints provide the following details on e.g., https://nocturnal.observerly.com/api/v1/transit?datetime=2021-05-15T00:00:00.000Z&longitude=-155.468094&latitude=19.798484&ra=88.7929583&dec=7.4070639:

{
  "observer": {
    "datetime": "2021-05-15T00:00:00Z",
    "latitude": "19.798484",
    "longitude": "-155.468094"
  },
  "position": {
    "alt": "73.448912",
    "az": "136.917066",
    "dec": "7.407064",
    "ra": "88.792958"
  },
  "transit": {
    "rise": "2021-05-15T08:31:29-10:00",
    "set": "2021-05-15T20:50:55-10:00"
  }
}

It would be incredibly useful that we provide a range of preferred observation, close the maximum transitory altitude and at least +15ยฐ above local observer's horizon (i.e., when the object cross the observer's meridian*).

The following calculation from Meeus, Jean. 1991. Astronomical algorithms. Richmond, Va: Willmann - Bell. on p.104 will be needed:

ObjectTransitCalculation

*The observer's meridian is defined as the line which passes through the zenith and the south point on the horizon.

feat: Provide angular separation between object and the Moon

Currently, the nocturnal endpoints provide the following details on e.g., https://nocturnal.observerly.com/api/v1/transit?datetime=2021-05-15T00:00:00.000Z&longitude=-155.468094&latitude=19.798484&ra=88.7929583&dec=7.4070639:

{
  "observer": {
    "datetime": "2021-05-15T00:00:00Z",
    "latitude": "19.798484",
    "longitude": "-155.468094"
  },
  "position": {
    "alt": "73.448912",
    "az": "136.917066",
    "dec": "7.407064",
    "ra": "88.792958"
  },
  "transit": {
    "rise": "2021-05-15T08:31:29-10:00",
    "set": "2021-05-15T20:50:55-10:00"
  }
}

It would be incredibly useful that we provide various lunar parameters for the duration of the transit, such as the angular separation between the Moon and the object of interest as well as the average lunar illumination, determining an estimated observation quality for the given object.

fix: Incorrect Transit.Rise & Transit.Set for non-zero hour date times.

When passing in a particular datetime to the API that is not 2021-05-14T00:00:00.000Z the API returns incorrect set and rise times.

The correct rise and set times are only for the 2021-05-14T00:00:00.000Z datetime passed in.

The returned date times are offset by the same amount, i.e., 6am adds 6 hours to the final maximum, rise and set times.

Endpoint: https://nocturnal.observerly.com/api/v1/transit?datetime=2022-05-15T00:00:00.000Z&longitude=-155.468094&latitude=19.798484&ra=88.7929583&dec=7.4070639

This is an issue with the downstream dusk.GetObjectRiseObjectSetTimesInUTCForDay() whereby the datetime passed in has not been normalised to the 00:00:00.000 time for the datetime given.

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.