{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "from isochrones.query import Query, TwoMASS, WISE, Tycho2" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": true }, "outputs": [], "source": [ "ra=45.03433035439128; dec=0.23539164875137225;\n", "pmra=43.75231341609215; pmdec=-7.6419899883511482;\n", "epoch=2015." ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": true }, "outputs": [], "source": [ "q = Query(ra, dec, pmra=pmra, pmdec=pmdec, epoch=epoch)" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "collapsed": true }, "outputs": [], "source": [ "tm = TwoMASS(q)\n", "w = WISE(q)\n", "tyc = Tycho2(q)" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "b'03000819+0014074'" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "tm.get_id()" ] }, { "cell_type": "code", "execution_count": 6, "metadata": { "collapsed": true }, "outputs": [], "source": [ "from astroquery.vizier import Vizier\n" ] }, { "cell_type": "code", "execution_count": 20, "metadata": { "collapsed": true }, "outputs": [], "source": [ "from astropy.coordinates import SkyCoord\n", "import astropy.units as u\n", "c = SkyCoord(ra, dec, unit='deg')\n", "table = Vizier(columns=['*', '_r', '_RAJ2000', '_DEJ2000']).query_region(c, \n", " catalog='2mass', radius=1*u.arcsec)[0]" ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [ { "data": { "text/html": [ "<Table masked=True length=1>\n", "
_r | _RAJ2000 | _DEJ2000 | RAJ2000 | DEJ2000 | _2MASS | Jmag | e_Jmag | Hmag | e_Hmag | Kmag | e_Kmag | Qflg | Rflg | Bflg | Cflg | Xflg | Aflg |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arcs | deg | deg | deg | deg | mag | mag | mag | mag | mag | mag | |||||||
float64 | float64 | float64 | float64 | float64 | bytes17 | float32 | float32 | float32 | float32 | float32 | float32 | bytes3 | bytes3 | bytes3 | bytes3 | uint8 | uint8 |
0.636 | 45.034161 | 0.235408 | 45.034161 | 0.235408 | 03000819+0014074 | 6.606 | 0.023 | 6.133 | 0.024 | 6.019 | 0.020 | AAA | 111 | 111 | 000 | 0 | 0 |