Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from astropy.io import ascii
import astropy.units as u
from astropy.coordinates import SkyCoord
from astroquery.gaia import Gaia
def find_one(ra, dec, mag):
coord = SkyCoord(ra=ra, dec=dec, unit=(u.deg, u.deg))
radius = 5 * u.arcsec
j = Gaia.cone_search_async(coord, radius)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/Users/dforeman/miniconda3/envs/alpha-mlt-grids/lib/python3.7/site-packages/tables/attributeset.py:464: NaturalNameWarning: object name is not a valid Python identifier: 'axis1_name[Fe/H]'; it does not match the pattern ``^[a-zA-Z_][a-zA-Z0-9_]*$``; you will not be able to use natural naming to access this object; using ``getattr()`` will still work, though
check_attribute_name(name)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-2-18ca68e08527> in <module>
2 bands = ['G', 'BP', 'RP', 'J', 'H', 'K']
3
----> 4 amlt.interp_mag(pars, bands)
~/src/timothydmorton/alpha-mlt-grids/alpha_mlt/models.py in interp_mag(self, pars, bands)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dfm
dfm / eb.ipynb
Last active April 30, 2020 12:27
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.