Skip to content

Add night sky brightness calculator #29

Open

Description

@cdeil

This is similar to #27 by @ejeschke, but I'm making a new issue because what I propose here is a larger and probably post-GSoC project.

What really matters for observing is the night-sky brightness in the target direction, not just the moon phase or separation to the moon.

There's models for the contribution from scattered moonlight:

It would be great to have some night sky brightness calculator implemented in astroplan.
I don't know if there's a really simple model that can be implemented in a day, or if they are all complex.

Activity

  1. added this to the milestone on Jul 15, 2015
  2. eteq commented on Jul 21, 2015

    @eteq
    Member

    👍 to this in principal.

    This is a pretty big job to do right, though, because it's highly wavelength-dependent. For example at CTIO, the sky varies by ~2 mag from the blue to red sides of just the optical, but on the blue end it can easily be 5 mags from new to full moon.

    More broadly, it might be useful to make this a part of a full sky brightness calculator that includes both moon and site-specific sky brightness (which would need to be provided/customizable by the user).

  3. bmorris3 commented on Mar 23, 2016

    @bmorris3
    Contributor

    I hear that @yoachim has suggestions for how to do this, since he has implemented similar functionality for LSST. Any comments @yoachim?

  4. yoachim commented on Mar 23, 2016

    @yoachim

    Did someone say sky brightness model?
    Here's the model for LSST: https://github.com/lsst/sims_skybrightness
    hHere's a notebook showing it in action: https://github.com/lsst/sims_skybrightness/blob/master/doc/Sky_Model_demo.ipynb

    It's mostly interpolating a set of spectra from the ESO calculator, plus an analytic model I made for twilight.

  5. cdeil commented on Mar 24, 2016

    @cdeil
    MemberAuthor

    I guess no-one wants to duplicate this in astroplan, right?

    In that case, how about adding a section "related packages" to the astroplan docs and pointing people to the LSST code?

  6. yoachim commented on Mar 24, 2016

    @yoachim

    What we really need is for ESO to open source the code behind this web page:
    http://www.eso.org/observing/etc/bin/gen/form?INS.MODE=swspectr+INS.NAME=SKYCALC

    I'm pretty sure the code was written in a way that it could be modified to other locations (and elevations), but they haven't exposed that on the web API.

    It wouldn't be too painful to just use the ESO calculator for a few select pointings and fit some simple functions to the sky brightness for a set of filters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions