Giter Club home page Giter Club logo

gsoc's Introduction

Google Summer of Code with OpenAstronomy

This repository documents my endeavors as a 2019 GSoC student working with OpenAstronomy (specifically the Astropy Project and its affiliated package synphot), mentored by B. Morris, P. L. Lim and E. Tollerud.

Initially, this project intended to develop a package for simulating astronomical observations (dubbed "telescopy"), but before we began we found that much of this functionality already existed in synphot - a Python package for synthetic photometry. In lieu of creating a whole new package, we have instead decided to extend the functionality of synphot and other astropy affiliated packages.

If you're interested in the code I've been working on, you can switch between branches to view the different sub-projects, or you can browse this repository's pull requests.

For a more journal-like view of my progress on these projects, visit my blog!

gsoc's People

Contributors

tcjansen avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

bmorris3

gsoc's Issues

Enhancement: Gaia queries for stellar properties

Enhancement proposal: use astroquery to get the stellar distance and radius like I do in this example, rather than hard-coding the answers into the notebook. You'll need to come up with a more clever way of selecting the correct answer from the query response than choosing the first row, as I did in the example. You might find that the answer is the star closest to the input coordinates. You can measure distances between coordinates using SkyCoord.separation(). 📐

To investigate: skycalc_cli

I don’t know if this is a better long-term solution than pwv_kpno, but there’s a python package on PyPI called skycalc_cli which queries the Cerro Paranal sky model for transmission spectra among other things, and I found the source code for the Python query that it sets up, which I’ve posted here

In principle, Tiffany could pare down this code and design small algorithmic queries for the atmospheric transmission spectrum as a function of airmass (among other things). Perhaps that code might even make up enough substance for an astroquery PR.

Enhancement: download queries for SDSS filters

Enhancement proposal: ultimately you'll be making a PR to astroquery which queries the VO service from the SVO Filter Profile Service 🌈 , but for now, you can do something simpler to retrieve the filter response curves for Sloan filters. Use the astropy.utils.data.download_file function to grab the response curves for each filter from the following links (and remove the step in the tutorial which says 'you can download the filter response curves here...'). The goal here is to avoid including any data files in the PR or requiring the user to manually download something which can be done in the code.

Enhancement: Adding Kepler to tutorial

Since we'll have PHOENIX model spectra of HAT-P-11 and TRAPPIST-1, it would be fun to model their count rates through a second telescope 🔭 . I'm thinking perhaps we can use Kepler, since (1) Kepler observed both HAT-P-11 (Kepler) and TRAPPIST-1 (K2); (2) it's a space telescope and therefore shouldn't depend on our atmosphere model, making it a good sanity check.

Here's some of the info you'll need to do Kepler:

Use tynt in NB 1

I suppose before #12 gets addressed, it'd be natural to request that you use tynt in the notebook.

While the destiny of the tynt package is under consideration (affiliated package vs. PR to synphot) , it should be sufficient to install tynt locally (pip install tynt) and to add a requirements.txt file to the notebook's directory which simply contains the name tynt, like in this tutorial.

Enhancement: final sanity check plot

Let's make a final cell which compares the synphot expected count rate (y) with the measured count rate (x), with a 1:1 line over plotted; perhaps with two subplots – one for APO, another for Kepler.

Enhancement: Add a second target to NB2

Try adding a boring elliptical galaxy to the tutorial to see if its synthetic photometry is also biased in the same direction as the emission line galaxy example. This will be diagnostic: if the boring elliptical is similarly biased, then we might be doing something wrong; if the elliptical falls on the other side of the 1:1 line then we might be seeing the effect of weather, for example.

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.