GithubHelp home page GithubHelp logo

skybright's Introduction

skybright

Sky light, sky bright,
Only sky I'll see tonight,
I wish I may, I wish I might,
Know the sky I'll see tonight.

skybright is a tool for esitamting the sky brightness (in magnitudes/asec^2) of a given set of celestial coordinates, from a given site, at a given time, in a given filter.

It use a simple model with four components:

  1. An airglow shell in the Earth's atmosphere
  2. Rayleigh scattering of moonlight
  3. Mie scattering of moonlight
  4. A very simple algebraic estimation of twilight.

From a shell, it can be executed thus:

$ skybright --help
usage: Estimate the sky brightness [-h] [-m MJD] [-r RA] [-d DEC] [-f FILTER]
                                   [-c CONFIG]

optional arguments:
  -h, --help            show this help message and exit
  -m MJD, --mjd MJD     Modified Julian Date (float) (UTC)
  -r RA, --ra RA        the RA (decimal degrees)
  -d DEC, --dec DEC     the declination (decimal degrees)
  -f FILTER, --filter FILTER
                        the filter
  -c CONFIG, --config CONFIG
                        the configuration file
$ skybright -m 58008.4 -r 40.0 -d -5.0 -f i -c etc/skybright.conf 
Moon zenith distance: 47.645061
Sun zenith distance: 105.734680
Elongation of the moon: 101.444917
Moon brightness: 0.132464
Pointing angle with moon: 35.179739
Pointing zenith distance: 34.326929
Airmass: 1.210294
Sky brightness at pointing: 19.249708

The jupyter notebook in doc/skybright.ipynb shows the use of the python API.

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.