Created
July 11, 2013 05:14
-
-
Save jdnc/5972690 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "vizier-examples" | |
}, | |
"name": "vizier-examples", | |
"nbformat": 2, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "from astroquery.vizier import Vizier\nimport astropy.units as u\nimport astropy.coordinates as coord", | |
"language": "python", | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": "WARNING: ConfigurationDefaultMissingWarning: Requested default configuration file /home/rk7/astropy/astropy/astropy.cfg is not a file. Cannot install default profile. If you are importing from source, this is expected. [astropy]" | |
} | |
], | |
"prompt_number": 1 | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": "**These are some examples for Vizier - a new ```TableList``` object is now returned\nas a result of all the queries, as discussed.**" | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": "Query all catalogs for Sirius without specifying any keywords or catalogs\n---------------------------------------------------------------------------" | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "result = Vizier.query_object(\"sirius\")", | |
"language": "python", | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": "WARNING: W27: /tmp/tmpo2Cwhu:33:2: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions]\nWARNING: W50: /tmp/tmpo2Cwhu:41:4: W50: Invalid unit string '\"h:m:s\"' [astropy.io.votable.exceptions]\nWARNING: W50: /tmp/tmpo2Cwhu:44:4: W50: Invalid unit string '\"d:m:s\"' [astropy.io.votable.exceptions]\nWARNING: W27: /tmp/tmpo2Cwhu:69:2: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions]\nWARNING: W27: /tmp/tmpo2Cwhu:70:2: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions]\nWARNING: W50: /tmp/tmpo2Cwhu:91:4: W50: Invalid unit string '\"h:m:s\"' [astropy.io.votable.exceptions]\nWARNING: W50: /tmp/tmpo2Cwhu:94:4: W50: Invalid unit string '\"d:m:s\"' [astropy.io.votable.exceptions]\nWARNING: W50: /tmp/tmpo2Cwhu:118:4: W50: Invalid unit string '\"h:m:s\"' [astropy.io.votable.exceptions]\nWARNING: W50: /tmp/tmpo2Cwhu:122:4: W50: Invalid unit string '\"d:m:s\"' [astropy.io.votable.exceptions]\nWARNING: W50: /tmp/tmpo2Cwhu:156:4: W50: Invalid unit string '\"h:m:s\"' [astropy.io.votable.exceptions]\nWARNING: W50: /tmp/tmpo2Cwhu:159:4: W50: Invalid unit string '\"d:m:s\"' [astropy.io.votable.exceptions]\nWARNING: W50: /tmp/tmpo2Cwhu:183:4: W50: Invalid unit string '\"h:m:s\"' [astropy.io.votable.exceptions]\nWARNING: W50: /tmp/tmpo2Cwhu:187:4: W50: Invalid unit string '\"d:m:s\"' (suppressing further warnings of this type...) [astropy.io.votable.exceptions]\nWARNING: W27: /tmp/tmpo2Cwhu:202:2: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions]\nWARNING: W27: /tmp/tmpo2Cwhu:256:2: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions]\nWARNING: W27: /tmp/tmpo2Cwhu:314:2: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions]\nWARNING: W27: /tmp/tmpo2Cwhu:373:2: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions]\nWARNING: W03: /tmp/tmpo2Cwhu:386:4: W03: Implictly generating an ID from a name 'dRAms(i)' -> 'dRAms_i_' [astropy.io.votable.exceptions]\nWARNING: W03: /tmp/tmpo2Cwhu:389:4: W03: Implictly generating an ID from a name 'o_dRAms(i)' -> 'o_dRAms_i_' [astropy.io.votable.exceptions]\nWARNING: W03: /tmp/tmpo2Cwhu:392:4: W03: Implictly generating an ID from a name 'e_dRAms(i)' -> 'e_dRAms_i_' [astropy.io.votable.exceptions]\nWARNING: W03: /tmp/tmpo2Cwhu:396:4: W03: Implictly generating an ID from a name 'dRAms(FK4)' -> 'dRAms_FK4_' [astropy.io.votable.exceptions]\nWARNING: W03: /tmp/tmpo2Cwhu:431:4: W03: Implictly generating an ID from a name 'dRAms(i)' -> 'dRAms_i_' [astropy.io.votable.exceptions]\nWARNING: W03: /tmp/tmpo2Cwhu:434:4: W03: Implictly generating an ID from a name 'o_dRAms(i)' -> 'o_dRAms_i_' [astropy.io.votable.exceptions]\nWARNING: W03: /tmp/tmpo2Cwhu:437:4: W03: Implictly generating an ID from a name 'e_dRAms(i)' -> 'e_dRAms_i_' [astropy.io.votable.exceptions]\nWARNING: W03: /tmp/tmpo2Cwhu:441:4: W03: Implictly generating an ID from a name 'dRAms(FK4)' -> 'dRAms_FK4_' [astropy.io.votable.exceptions]\nWARNING" | |
}, | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": ": W27: /tmp/tmpo2Cwhu:467:2: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions]\nWARNING: W27: /tmp/tmpo2Cwhu:610:2: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions]\nWARNING: W27: /tmp/tmpo2Cwhu:791:2: W27: COOSYS deprecated in VOTable 1.2 (suppressing further warnings of this type...) [astropy.io.votable.exceptions]\nWARNING" | |
}, | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": ": W06: /tmp/tmpo2Cwhu:1715:4: W06: Invalid UCD 'phot.color;em.opt.B;em.opt.V': Unknown word 'phot.color' [astropy.io.votable.exceptions]\nWARNING: W49: /tmp/tmpo2Cwhu:1775:33: W49: Empty cell illegal for integer fields. [astropy.io.votable.exceptions]\nWARNING: W06: /tmp/tmpo2Cwhu:1794:4: W06: Invalid UCD 'obs.field': Secondary word 'obs.field' is not valid as a primary word [astropy.io.votable.exceptions]\nWARNING: W49: /tmp/tmpo2Cwhu:1951:120: W49: Empty cell illegal for integer fields. [astropy.io.votable.exceptions]\nWARNING: W03: /tmp/tmpo2Cwhu:1980:4: W03: Implictly generating an ID from a name 'RA(ICRS)' -> 'RA_ICRS_' [astropy.io.votable.exceptions]\nWARNING: W03: /tmp/tmpo2Cwhu:1984:4: W03: Implictly generating an ID from a name 'DE(ICRS)' -> 'DE_ICRS_' (suppressing further warnings of this type...) [astropy.io.votable.exceptions]\nWARNING: W06: /tmp/tmpo2Cwhu:2004:4: W06: Invalid UCD 'phot.color;em.opt.B;em.opt.V': Unknown word 'phot.color' [astropy.io.votable.exceptions]\nWARNING: W06: /tmp/tmpo2Cwhu:2150:4: W06: Invalid UCD 'phot.color;em.opt.B;em.opt.V': Unknown word 'phot.color' [astropy.io.votable.exceptions]\nWARNING: W06: /tmp/tmpo2Cwhu:2365:4: W06: Invalid UCD 'obs.field': Secondary word 'obs.field' is not valid as a primary word [astropy.io.votable.exceptions]\nWARNING" | |
}, | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": ": W49: /tmp/tmpo2Cwhu:2947:109: W49: Empty cell illegal for integer fields. [astropy.io.votable.exceptions]\nWARNING: W49: /tmp/tmpo2Cwhu:2948:51: W49: Empty cell illegal for integer fields. [astropy.io.votable.exceptions]\nWARNING: W49: /tmp/tmpo2Cwhu:2948:60: W49: Empty cell illegal for integer fields. [astropy.io.votable.exceptions]\nWARNING: W49: /tmp/tmpo2Cwhu:2949:71: W49: Empty cell illegal for integer fields. [astropy.io.votable.exceptions]\nWARNING: W06: /tmp/tmpo2Cwhu:3081:4: W06: Invalid UCD 'phot.color;em.opt.B;em.opt.R': Unknown word 'phot.color' [astropy.io.votable.exceptions]\nWARNING: W06: /tmp/tmpo2Cwhu:3120:4: W06: Invalid UCD 'phot.color': Unknown word 'phot.color' [astropy.io.votable.exceptions]\nWARNING: W49: /tmp/tmpo2Cwhu:3242:114: W49: Empty cell illegal for integer fields. [astropy.io.votable.exceptions]\nWARNING: W06: /tmp/tmpo2Cwhu:3685:4: W06: Invalid UCD 'phot.color;em.opt.B;em.opt.V': Unknown word 'phot.color' [astropy.io.votable.exceptions]\nWARNING" | |
}, | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": ": W06: /tmp/tmpo2Cwhu:4053:4: W06: Invalid UCD 'phot.color;em.opt.B;em.opt.V': Unknown word 'phot.color' [astropy.io.votable.exceptions]\nWARNING: W06: /tmp/tmpo2Cwhu:4383:4: W06: Invalid UCD 'phot.color;em.opt.B;em.opt.V': Unknown word 'phot.color' (suppressing further warnings of this type...) [astropy.io.votable.exceptions]\nWARNING: W46: /tmp/tmpo2Cwhu:4945:139: W46: char value is too long for specified length of 6 [astropy.io.votable.exceptions]\nWARNING: W46: /tmp/tmpo2Cwhu:4946:149: W46: char value is too long for specified length of 6 [astropy.io.votable.exceptions]\nWARNING: W46: /tmp/tmpo2Cwhu:4947:139: W46: char value is too long for specified length of 6 [astropy.io.votable.exceptions]\nWARNING" | |
}, | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": ": W46: /tmp/tmpo2Cwhu:4948:150: W46: char value is too long for specified length of 6 [astropy.io.votable.exceptions]\nWARNING: W46: /tmp/tmpo2Cwhu:4949:151: W46: char value is too long for specified length of 6 [astropy.io.votable.exceptions]\nWARNING: W46: /tmp/tmpo2Cwhu:4950:151: W46: char value is too long for specified length of 6 [astropy.io.votable.exceptions]\nWARNING: W46: /tmp/tmpo2Cwhu:4951:140: W46: char value is too long for specified length of 6 [astropy.io.votable.exceptions]\nWARNING: W46: /tmp/tmpo2Cwhu:4952:151: W46: char value is too long for specified length of 6 [astropy.io.votable.exceptions]\nWARNING: W46: /tmp/tmpo2Cwhu:5127:175: W46: char value is too long for specified length of 7 [astropy.io.votable.exceptions]\nWARNING: W46: /tmp/tmpo2Cwhu:5127:193: W46: char value is too long for specified length of 6 (suppressing further warnings of this type...) [astropy.io.votable.exceptions]\nWARNING" | |
}, | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": ": W49: /tmp/tmpo2Cwhu:5824:155: W49: Empty cell illegal for integer fields. [astropy.io.votable.exceptions]\nWARNING: W49: /tmp/tmpo2Cwhu:5827:141: W49: Empty cell illegal for integer fields. [astropy.io.votable.exceptions]\nWARNING: W49: /tmp/tmpo2Cwhu:6183:4: W49: Empty cell illegal for integer fields. (suppressing further warnings of this type...) [astropy.io.votable.exceptions]\nWARNING" | |
}, | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": ": W07: /tmp/tmpo2Cwhu:16318:2: W07: Invalid astroYear in equinox: 'E1601' [astropy.io.votable.exceptions]\nWARNING: W07: /tmp/tmpo2Cwhu:16486:2: W07: Invalid astroYear in equinox: 'E1661' [astropy.io.votable.exceptions]" | |
} | |
], | |
"prompt_number": 2 | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": "**The result is a TableList object as seen below**" | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "print result", | |
"language": "python", | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": "< TableList with 231 tables:\n\t'ReadMeObj' with 5 rows\n\t'I/34/greenw2a' with 1 rows\n\t'I/40/catalog' with 1 rows\n\t'I/80/n30' with 1 rows\n\t'I/82/catalog' with 1 rows\n\t'I/87B/catalog' with 1 rows\n\t'I/98A/catalog' with 1 rows\n\t'I/98A/remarks' with 1 rows\n\t'I/100A/w10' with 1 rows\n\t'I/100A/w25' with 1 rows\n\t'I/100A/w50' with 5 rows\n\t'I/113A/catalog' with 1 rows\n\t'I/131A/sao' with 1 rows\n\t'I/143/fk4_1950' with 1 rows\n\t'I/149A/catalog' with 1 rows\n\t'I/193/ppm2' with 1 rows\n\t'I/196/main' with 1 rows\n\t'I/196/annex1' with 4 rows\n\t'I/197A/tic' with 1 rows\n\t'I/238A/picat' with 1 rows\n\t'I/239/hip_main' with 1 rows\n\t'I/239/tyc_main' with 1 rows\n\t'I/246/act' with 1 rows\n\t'I/248/catalog' with 1 rows\n\t'I/252/out' with 1 rows\n\t'I/254/out' with 2 rows\n\t'I/256/fk5u' with 4 rows\n\t'I/259/suppl_1' with 1 rows\n\t'I/260/ccdmhipn' with 4 rows\n\t'I/270/cpirss01' with 1 rows\n\t'I/274/ccdm' with 4 rows\n\t'I/275/ac2002' with 2 rows\n\t'I/276/supplem' with 1 rows\n\t'I/279/catalog' with 1 rows\n\t'I/280B/ascc' with 1 rows\n\t'I/284/out' with 1 rows\n\t'I/294A/ucac2bss' with 1 rows\n\t'I/297/out' with 8 rows\n\t'I/305/out' with 15 rows\n\t'I/311/hip2' with 1 rows\n\t'I/312/sample' with 3 rows\n\t'I/317/sample' with 3 rows\n\t'I/322A/out' with 3 rows\n\t'II/2B/catalog' with 1 rows\n\t'II/5A/data' with 1 rows\n\t'II/7A/catalog' with 5 rows\n\t'II/50/ubv' with 1 rows\n\t'II/59B/catalog' with 1 rows\n\t'II/62/catalog' with 1 rows\n\t'II/94/main' with 1 rows\n\t'II/125/main' with 1 rows\n\t'II/126/sources' with 3 rows\n\t'II/134/data' with 8 rows\n\t'II/167/catalog' with 3 rows\n\t'II/168/ubvmeans' with 2 rows\n\t'II/169/main' with 1 rows\n\t'II/199A/stars' with 1 rows\n\t'II/215/catalog' with 2 rows\n\t'II/224/cadars' with 24 rows\n\t'II/225/catalog' with 50 rows\n\t'II/225/names' with 11 rows\n\t'II/225/psc' with 1 rows\n\t'II/235/deltam' with 4 rows\n\t'II/237/colors' with 1 rows\n\t'II/246/out' with 7 rows\n\t'II/275/fsr' with 1 rows\n\t'II/275/assoc' with 9 rows\n\t'II/297/irc' with 1 rows\n\t'II/298/fis' with 1 rows\n\t'II/311/wise' with 19 rows\n\t'III/18B/mkclass' with 9 rows\n\t'III/21/gcrv' with 1 rows\n\t'III/39A/catalog' with 1 rows\n\t'III/42/catalog' with 1 rows\n\t'III/45/stars' with 1 rows\n\t'III/47B/catalog' with 1 rows\n\t'III/77/stars' with 1 rows\n\t'III/78/mkext' with 4 rows\n\t'III/126/stars' with 1 rows\n\t'III/133/vol4' with 1 rows\n\t'III/135A/catalog' with 1 rows\n\t'III/148A/table1' with 4 rows\n\t'III/148A/table3' with 2 rows\n\t'III/184/catalog' with 2 rows\n\t'III/190B/web' with 1 rows\n\t'III/193/catalog' with 1 rows\n\t'III/197/lrs' with 1 rows\n\t'III/201/stars' with 1 rows\n\t'III/202/catalog' with 1 rows\n\t'III/213/catalog' with 1 rows\n\t'III/223/mk12' with 2 rows\n\t'III/235B/catalog' with 1 rows\n\t'III/244/catalog' with 16 rows\n\t'III/244/mean' with 1 rows\n\t'III/244/standard' with 1 rows\n\t'III/249/catalog' with 7 rows\n\t'III/252/table8' with 1 rows\n\t'III/254/crvad2' with 1 rows\n\t'III/260/catalog' with 1 rows\n\t'IV/22/index' with 1 rows\n\t'IV/25/tyc2_hd' with 1 rows\n\t'IV/27A/catalog' with 1 rows\n\t'V/14/catalog' with 1 rows\n\t'V/15/catalog' with 1 rows\n\t'V/24/cstar' with 1 rows\n\t'V/32A/catalog' with 2 rows\n\t'V/50/catalog' with 1 rows\n\t'V/51/disco' with 10 rows\n\t'V/53A/catalog' with 1 rows\n\t'V/68A/table1' with 1 rows\n\t'V/70A/catalog' with 2 rows\n\t'V/85A/catalog' with 2 rows\n\t'V/98/msx' with 1 rows\n\t'V/101/catalog' with 2 rows\n\t'V/109/sky2kv4' with 1 rows\n\t'V/134/arxa' with 1 rows\n\t'V/135/catalog' with 1 rows\n\t'V/137D/XHIP' with 1 rows\n\t'VI/32/data1' with 1 rows\n\t'VI/110/inescat' with 50 rows\n\t'VI/111/isolog' with 24 rows\n\t'VI/129/fuse' with 4 rows\n\t'VIII/65/nvss' with 1 rows\n\t'IX/6/data' with 1 rows\n\t'IX/8/catalog' with 2 rows\n\t'IX/10A/1rxs' with 1 rows\n\t'IX/10A/1rxs_cor' with 1 rows\n\t'IX/10A/cor_iras' with 1 rows\n\t'IX/10A/cor_nvs' with 1 rows\n\t'IX/10A/cor_pri' with 13 rows\n\t'IX/10A/cor_hst' with 1 rows\n\t'IX/10A/cor_wfc' with 1 rows\n\t'IX/10A/cor_ros' with 3 rows\n\t'IX/13/2e' with 5 rows\n\t'IX/24/hrifield' with 2 rows\n\t'IX/24/hrisrc' with 1 rows\n\t'IX/25/ipcfield' with 1 rows\n\t'IX/25/ipcihut' with 1 rows\n\t'IX/28A/hricat' with 33 rows\n\t'IX/28A/seq' with 1 rows\n\t'IX/35/survey' with 1 rows\n\t'IX/35/faint' with 1 rows\n\t'B/denis/denis' with 50 rows\n\t'B/hst/hstlog' with 50 rows\n\t'B/cfht/cfht' with 50 rows\n\t'B/chandra/chandra' with 5 rows\n\t'B/eso/eso_arc' with 50 rows\n\t'B/sb9/main' with 1 rows\n\t'B/mk/mktypes' with 17 rows\n\t'B/gcvs/nsv_cat' with 2 rows\n\t'B/wds/wds' with 5 rows\n\t'B/vsx/vsx' with 2 rows\n\t'B/pastel/pastel' with 17 rows\n\t'J/ApJ/351/492/st_uma_1' with 1 rows\n\t'J/ApJ/508/397/stars' with 2 rows\n\t'J/ApJ/571/512/table1' with 1 rows\n\t'J/ApJ/582/1011/table2' with 1 rows\n\t'J/ApJ/616/562/vsini' with 1 rows\n\t'J/ApJ/620/1010/table1' with 1 rows\n\t'J/ApJ/629/507/Pecc' with 1 rows\n\t'J/ApJ/652/1554/table4' with 1 rows\n\t'J/ApJ/653/675/table1' with 1 rows\n\t'J/ApJ/660/1556/table4' with 1 rows\n\t'J/ApJ/700/1299/table2' with 2 rows\n\t'J/ApJ/734/13/table1' with 1 rows\n\t'J/ApJ/737/45/table1' with 1 rows\n\t'J/ApJ/743/138/table5' with 1 rows\n\t'J/ApJS/94/127/table1' with 6 rows\n\t'J/ApJS/111/445/table1' with 1 rows\n\t'J/ApJS/112/557/table1' with 1 rows\n\t'J/ApJS/119/207/table1' with 1 rows\n\t'J/ApJS/119/207/table6' with 1 rows\n\t'J/ApJS/150/343/table2' with 2 rows\n\t'J/ApJS/151/299/table5' with 1 rows\n\t'J/ApJS/154/673/DIRBE' with 1 rows\n\t'J/ApJS/154/673/table5' with 1 rows\n\t'J/ApJS/184/138/table3' with 1 rows\n\t'J/ApJS/190/203/table3' with 1 rows\n\t'J/ApJS/199/8/table1' with 12 rows\n\t'J/ApJS/199/8/table2' with 2 rows\n\t'J/A+A/281/161/radiostars' with 1 rows\n\t'J/A+A/281/161/table9' with 1 rows\n\t'J/A+A/316/147/table1' with 1 rows\n\t'J/A+A/348/897/tablea6' with 1 rows\n\t'J/A+A/352/555/table1' with 1 rows\n\t'J/A+A/381/105/table4' with 1 rows\n\t'J/A+A/381/446/table2a' with 1 rows\n\t'J/A+A/386/492/charm' with 1 rows\n\t'J/A+A/390/1033/table1' with 1 rows\n\t'J/A+A/393/897/table9' with 1 rows\n\t'J/A+A/407/631/tablea1' with 2 rows\n\t'J/A+A/420/183/table3' with 1 rows\n\t'J/A+A/420/507/MWDCat' with 1 rows\n\t'J/A+A/431/773/charm2' with 8 rows\n\t'J/A+A/434/1201/table4' with 1 rows\n\t'J/A+A/475/677/stars' with 1 rows\n\t'J/A+A/489/1271/table2' with 2 rows\n\t'J/A+A/510/A54/table1' with 1 rows\n\t'J/A+A/531/A143/table1' with 1 rows\n\t'J/A+A/533/A107/stars' with 1 rows\n\t'J/A+A/541/A52/table1' with 1 rows\n\t'J/A+A/546/A61/tablea1' with 1 rows\n\t'J/A+A/546/A69/table1' with 1 rows\n\t'J/A+AS/101/551/table1' with 1 rows\n\t'J/A+AS/114/465/table2' with 1 rows\n\t'J/A+AS/114/465/table4' with 1 rows\n\t'J/A+AS/119/547/table5' with 1 rows\n\t'J/A+AS/119/547/table7' with 1 rows\n\t'J/A+AS/135/503/table8' with 1 rows\n\t'J/AJ/107/751/table2' with 1 rows\n\t'J/AJ/115/2587/table1' with 5 rows\n\t'J/AJ/115/2587/table2' with 5 rows\n\t'J/AJ/121/2189/table1' with 2 rows\n\t'J/AJ/126/2048/table1' with 1 rows\n\t'J/AJ/127/477/table1' with 1 rows\n\t'J/AJ/135/1225/localWD' with 1 rows\n\t'J/AJ/138/1681/WD20pc' with 1 rows\n\t'J/AJ/141/129/table6' with 3 rows\n\t'J/AJ/143/28/iuestars' with 1 rows\n\t'J/PASP/109/998/table1' with 1 rows\n\t'J/PASP/120/1128/catalog' with 1 rows\n\t'J/PASP/122/885/table1' with 1 rows\n\t'J/MNRAS/260/77/table1' with 4 rows\n\t'J/MNRAS/274/1165/catalog' with 1 rows\n\t'J/MNRAS/389/869/table2' with 1 rows\n\t'J/MNRAS/394/1338/tablea2' with 1 rows\n\t'J/MNRAS/403/1089/table4' with 2 rows\n\t'J/AZh/72/495/table5' with 2 rows\n\t'J/AZh/83/821/osaca' with 1 rows\n\t'J/PAZh/31/437/table' with 1 rows\n\t'J/BaltA/10/481/table1' with 1 rows\n>" | |
} | |
], | |
"prompt_number": 3 | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": "**To read a particular table from the TableList object do:**" | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "result['I/297/out']", | |
"language": "python", | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": "WARNING: Warning: converting a masked element to nan. [numpy.ma.core]" | |
}, | |
{ | |
"html": "<table><tr><th>NOMAD1</th><th>YM</th><th>RAJ2000</th><th>DEJ2000</th><th>r</th><th>...</th><th>r_Rmag</th><th>Jmag</th><th>Hmag</th><th>Kmag</th><th>R</th></tr><tr><td>0732-0129908</td><td>.M</td><td>101.2871553</td><td>-16.7161158</td><td>H</td><td>...</td><td></td><td>-1.391</td><td>-1.391</td><td>-1.390</td><td></td></tr><tr><td>0732-0129909</td><td>..</td><td>101.2885389</td><td>-16.7131444</td><td>B</td><td>...</td><td>B</td><td>nan</td><td>nan</td><td>nan</td><td></td></tr><tr><td>0732-0129919</td><td>.M</td><td>101.3151019</td><td>-16.7345353</td><td>M</td><td>...</td><td></td><td>10.631</td><td>10.339</td><td>10.185</td><td></td></tr><tr><td>0732-0129920</td><td>.M</td><td>101.3162139</td><td>-16.7027681</td><td>M</td><td>...</td><td></td><td>10.147</td><td>10.339</td><td>10.364</td><td></td></tr><tr><td>0732-0129923</td><td>.M</td><td>101.3199769</td><td>-16.7160761</td><td>M</td><td>...</td><td></td><td>12.163</td><td>11.960</td><td>12.944</td><td></td></tr><tr><td>0732-0129924</td><td>.M</td><td>101.3210589</td><td>-16.7162172</td><td>M</td><td>...</td><td></td><td>12.522</td><td>12.092</td><td>12.506</td><td></td></tr><tr><td>0732-0129926</td><td>.M</td><td>101.3218908</td><td>-16.7161481</td><td>M</td><td>...</td><td></td><td>12.566</td><td>10.891</td><td>13.147</td><td></td></tr><tr><td>0733-0116951</td><td>.M</td><td>101.2792950</td><td>-16.6899242</td><td>M</td><td>...</td><td></td><td>10.932</td><td>10.205</td><td>10.070</td><td></td></tr></table>", | |
"output_type": "pyout", | |
"prompt_number": 6, | |
"text": "<Table rows=8 names=('NOMAD1','YM','RAJ2000','DEJ2000','r','pmRA','e_pmRA','pmDE','e_pmDE','Bmag','r_Bmag','Vmag','r_Vmag','Rmag','r_Rmag','Jmag','Hmag','Kmag','R')>\nmasked_array(data = [ ('0732-0129908', '.M', 101.2871553, -16.7161158, 'H', -546.0, 1.2999999523162842, -1223.0, 1.2000000476837158, -1.0880000591278076, 'T', -1.440000057220459, 'T', --, '', -1.3910000324249268, -1.3910000324249268, -1.3899999856948853, '')\n ('0732-0129909', '..', 101.2885389, -16.7131444, 'B', -546.0, 20.0, -1224.0, 0.0, --, 'B', --, '', --, 'B', --, --, --, '')\n ('0732-0129919', '.M', 101.3151019, -16.7345353, 'M', 0.0, 0.0, 0.0, 0.0, --, '', --, '', --, '', 10.630999565124512, 10.33899974822998, 10.1850004196167, '')\n ('0732-0129920', '.M', 101.3162139, -16.7027681, 'M', 0.0, 0.0, 0.0, 0.0, --, '', --, '', --, '', 10.147000312805176, 10.33899974822998, 10.36400032043457, '')\n ('0732-0129923', '.M', 101.3199769, -16.7160761, 'M', 0.0, 0.0, 0.0, 0.0, --, '', --, '', --, '', 12.163000106811523, 11.960000038146973, 12.944000244140625, '')\n ('0732-0129924', '.M', 101.3210589, -16.7162172, 'M', 0.0, 0.0, 0.0, 0.0, --, '', --, '', --, '', 12.522000312805176, 12.092000007629395, 12.505999565124512, '')\n ('0732-0129926', '.M', 101.3218908, -16.7161481, 'M', 0.0, 0.0, 0.0, 0.0, --, '', --, '', --, '', 12.565999984741211, 10.890999794006348, 13.147000312805176, '')\n ('0733-0116951', '.M', 101.279295, -16.6899242, 'M', 0.0, 0.0, 0.0, 0.0, --, '', --, '', --, '', 10.932000160217285, 10.204999923706055, 10.069999694824219, '')],\n mask = [ (False, False, False, False, False, False, False, False, False, False, False, False, False, True, False, False, False, False, False)\n (False, False, False, False, False, False, False, False, False, True, False, True, False, True, False, True, True, True, False)\n (False, False, False, False, False, False, False, False, False, True, False, True, False, True, False, False, False, False, False)\n (False, False, False, False, False, False, False, False, False, True, False, True, False, True, False, False, False, False, False)\n (False, False, False, False, False, False, False, False, False, True, False, True, False, True, False, False, False, False, False)\n (False, False, False, False, False, False, False, False, False, True, False, True, False, True, False, False, False, False, False)\n (False, False, False, False, False, False, False, False, False, True, False, True, False, True, False, False, False, False, False)\n (False, False, False, False, False, False, False, False, False, True, False, True, False, True, False, False, False, False, False)],\n fill_value = ('N/A', 'N/', 1e+20, 1e+20, 'N', 1e+20, 1.0000000200408773e+20, 1e+20, 1.0000000200408773e+20, 1.0000000200408773e+20, 'N', 1.0000000200408773e+20, 'N', 1.0000000200408773e+20, 'N', 1.0000000200408773e+20, 1.0000000200408773e+20, 1.0000000200408773e+20, 'N'),\n dtype = [('NOMAD1', 'S12'), ('YM', 'S2'), ('RAJ2000', '<f8'), ('DEJ2000', '<f8'), ('r', 'S1'), ('pmRA', '<f8'), ('e_pmRA', '<f4'), ('pmDE', '<f8'), ('e_pmDE', '<f4'), ('Bmag', '<f4'), ('r_Bmag', 'S1'), ('Vmag', '<f4'), ('r_Vmag', 'S1'), ('Rmag', '<f4'), ('r_Rmag', 'S1'), ('Jmag', '<f4'), ('Hmag', '<f4'), ('Kmag', '<f4'), ('R', 'S1')])" | |
} | |
], | |
"prompt_number": 6 | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": "Now seach only the STScI Guide Star Catalog for 3C 273\n-------------------------------------------------------" | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "result = Vizier.query_object(\"3c 273\", catalog=\"GSC\")", | |
"language": "python", | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": "WARNING: W27: /tmp/tmpOBz3rY:34:2: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions]\nWARNING: W06: /tmp/tmpOBz3rY:63:4: W06: Invalid UCD 'obs.field': Secondary word 'obs.field' is not valid as a primary word [astropy.io.votable.exceptions]\nWARNING: W03: /tmp/tmpOBz3rY:93:4: W03: Implictly generating an ID from a name 'RA(ICRS)' -> 'RA_ICRS_' [astropy.io.votable.exceptions]\nWARNING: W03: /tmp/tmpOBz3rY:96:4: W03: Implictly generating an ID from a name 'DE(ICRS)' -> 'DE_ICRS_' [astropy.io.votable.exceptions]" | |
} | |
], | |
"prompt_number": 7 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "print result", | |
"language": "python", | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": "< TableList with 3 tables:\n\t'I/254/out' with 5 rows\n\t'I/271/out' with 8 rows\n\t'I/305/out' with 25 rows\n>" | |
} | |
], | |
"prompt_number": 8 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "print result['I/254/out']", | |
"language": "python", | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": " GSC RAJ2000 DEJ2000 PosErr Pmag e_Pmag n_Pmag Class Plate Epoch \n-------- --------- --------- ------ ----- ------ ------ ----- ----- --------\n28201090 187.26177 2.03780 0.3 14.17 0.40 6 0 01UQ 1985.051\n28200202 187.27794 2.05234 0.3 12.80 0.40 0 0 00BB 1984.242\n28200202 187.27777 2.05235 0.3 12.25 0.40 6 0 01UQ 1985.051\n28200337 187.26332 2.05510 0.3 12.88 0.40 6 0 01UQ 1985.051\n28200337 187.26346 2.05512 0.3 13.84 0.40 0 0 00BB 1984.242" | |
} | |
], | |
"prompt_number": 9 | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": "Set keywords, column names and constraints to be retrieved before querying \n-------------------------------------------------------------\nIf the keyword is unknown emit warning, if the columns to be constrained are not a subset of\nthe output columns, raise an exception." | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "v = Vizier(columns=['_RAJ2000', 'DEJ2000','B-V', 'Vmag', 'Plx'],\n column_filters={\"Vmag\":\">10\"}, keywords=[\"optical\", \"xry\"])", | |
"language": "python", | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": "WARNING: xry : No such keyword [astroquery.vizier.core]" | |
} | |
], | |
"prompt_number": 11 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "result = v.query_object(\"HD 226868\", catalog=[\"NOMAD\", \"UCAC\"])", | |
"language": "python", | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": "WARNING: W27: /tmp/tmpY0Mygn:35:2: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions]\nWARNING: W27: /tmp/tmpY0Mygn:36:2: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions]" | |
} | |
], | |
"prompt_number": 13 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "print result", | |
"language": "python", | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": "< TableList with 2 tables:\n\t'I/289/out' with 18 rows\n\t'I/322A/out' with 10 rows\n>" | |
} | |
], | |
"prompt_number": 14 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "result['I/322A/out']", | |
"language": "python", | |
"outputs": [ | |
{ | |
"html": "<table><tr><th>_RAJ2000</th><th>DEJ2000</th><th>Vmag</th><th>_DEJ2000</th></tr><tr><td>299.572419</td><td>35.1942342</td><td>15.986</td><td>35.194234</td></tr><tr><td>299.580291</td><td>35.1768889</td><td>13.274</td><td>35.176889</td></tr><tr><td>299.582571</td><td>35.1852253</td><td>14.863</td><td>35.185225</td></tr><tr><td>299.594172</td><td>35.1799948</td><td>14.690</td><td>35.179995</td></tr><tr><td>299.601402</td><td>35.1981078</td><td>14.644</td><td>35.198108</td></tr><tr><td>299.617669</td><td>35.1869987</td><td>14.394</td><td>35.186999</td></tr><tr><td>299.561498</td><td>35.2016928</td><td>15.687</td><td>35.201693</td></tr><tr><td>299.570217</td><td>35.2256634</td><td>14.878</td><td>35.225663</td></tr><tr><td>299.601081</td><td>35.2333378</td><td>13.170</td><td>35.233338</td></tr><tr><td>299.617995</td><td>35.2058637</td><td>13.946</td><td>35.205864</td></tr></table>", | |
"output_type": "pyout", | |
"prompt_number": 15, | |
"text": "<Table rows=10 names=('_RAJ2000','DEJ2000','Vmag','_DEJ2000')>\nmasked_array(data = [(299.572419, 35.1942342, 15.986000061035156, 35.194234)\n (299.580291, 35.1768889, 13.27400016784668, 35.176889)\n (299.582571, 35.1852253, 14.86299991607666, 35.185225)\n (299.594172, 35.1799948, 14.6899995803833, 35.179995)\n (299.601402, 35.1981078, 14.644000053405762, 35.198108)\n (299.617669, 35.1869987, 14.394000053405762, 35.186999)\n (299.561498, 35.2016928, 15.687000274658203, 35.201693)\n (299.570217, 35.2256634, 14.878000259399414, 35.225663)\n (299.601081, 35.2333378, 13.170000076293945, 35.233338)\n (299.617995, 35.2058637, 13.946000099182129, 35.205864)],\n mask = [(False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)],\n fill_value = (1e+20, 1e+20, 1.0000000200408773e+20, 1e+20),\n dtype = [('_RAJ2000', '<f8'), ('DEJ2000', '<f8'), ('Vmag', '<f4'), ('_DEJ2000', '<f8')])" | |
} | |
], | |
"prompt_number": 15 | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": "**Can use the same keyword and constraints to query a region around HD 226868**" | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "result = v.query_region(\"HD 226868\", radius=5 * u.deg, catalog=[\"NOMAD\", \"UCAC\"])", | |
"language": "python", | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": "WARNING: W27: /tmp/tmpBk5jE5:36:2: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions]\nWARNING: W27: /tmp/tmpBk5jE5:37:2: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions]" | |
} | |
], | |
"prompt_number": 17 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "print result", | |
"language": "python", | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": "< TableList with 2 tables:\n\t'I/289/out' with 50 rows\n\t'I/322A/out' with 50 rows\n>" | |
} | |
], | |
"prompt_number": 18 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "result['I/322A/out']", | |
"language": "python", | |
"outputs": [ | |
{ | |
"html": "<table><tr><th>_RAJ2000</th><th>DEJ2000</th><th>Vmag</th><th>_DEJ2000</th></tr><tr><td>298.180808</td><td>30.3565673</td><td>11.913</td><td>30.356567</td></tr><tr><td>298.181249</td><td>30.3510895</td><td>13.219</td><td>30.351090</td></tr><tr><td>298.231285</td><td>30.3518053</td><td>10.513</td><td>30.351805</td></tr><tr><td>298.275038</td><td>30.3984156</td><td>12.004</td><td>30.398416</td></tr><tr><td>298.279472</td><td>30.3355259</td><td>11.242</td><td>30.335526</td></tr><tr><td>298.286117</td><td>30.3961689</td><td>12.309</td><td>30.396169</td></tr><tr><td>298.446819</td><td>30.3714531</td><td>12.074</td><td>30.371453</td></tr><tr><td>298.459935</td><td>30.3282653</td><td>10.405</td><td>30.328265</td></tr><tr><td>298.683660</td><td>30.3563337</td><td>11.970</td><td>30.356334</td></tr><tr><td>298.724333</td><td>30.3022834</td><td>12.194</td><td>30.302283</td></tr><tr><td>298.793618</td><td>30.3374384</td><td>11.311</td><td>30.337438</td></tr><tr><td>...</td><td>...</td><td>...</td><td>...</td></tr><tr><td>299.385953</td><td>30.3349953</td><td>13.971</td><td>30.334995</td></tr><tr><td>299.387454</td><td>30.3034695</td><td>15.543</td><td>30.303470</td></tr><tr><td>299.388376</td><td>30.2962717</td><td>14.826</td><td>30.296272</td></tr><tr><td>299.391482</td><td>30.2262159</td><td>14.025</td><td>30.226216</td></tr><tr><td>299.393331</td><td>30.3796517</td><td>14.586</td><td>30.379652</td></tr><tr><td>299.398764</td><td>30.3637784</td><td>14.564</td><td>30.363778</td></tr><tr><td>299.402758</td><td>30.2942548</td><td>13.502</td><td>30.294255</td></tr><tr><td>299.402964</td><td>30.2105992</td><td>15.086</td><td>30.210599</td></tr><tr><td>299.405768</td><td>30.3822070</td><td>14.835</td><td>30.382207</td></tr><tr><td>299.406338</td><td>30.3153695</td><td>13.910</td><td>30.315369</td></tr><tr><td>299.407348</td><td>30.3627920</td><td>13.880</td><td>30.362792</td></tr></table>", | |
"output_type": "pyout", | |
"prompt_number": 19, | |
"text": "<Table rows=50 names=('_RAJ2000','DEJ2000','Vmag','_DEJ2000')>\nmasked_array(data = [(298.180808, 30.3565673, 11.913000106811523, 30.356567)\n (298.181249, 30.3510895, 13.218999862670898, 30.35109)\n (298.231285, 30.3518053, 10.512999534606934, 30.351805)\n (298.275038, 30.3984156, 12.003999710083008, 30.398416)\n (298.279472, 30.3355259, 11.241999626159668, 30.335526)\n (298.286117, 30.3961689, 12.309000015258789, 30.396169)\n (298.446819, 30.3714531, 12.074000358581543, 30.371453)\n (298.459935, 30.3282653, 10.404999732971191, 30.328265)\n (298.68366, 30.3563337, 11.970000267028809, 30.356334)\n (298.724333, 30.3022834, 12.194000244140625, 30.302283)\n (298.793618, 30.3374384, 11.310999870300293, 30.337438)\n (298.800117, 30.3691989, 11.920000076293945, 30.369199)\n (298.822279, 30.3184584, 10.407999992370605, 30.318458)\n (298.840924, 30.351135, 10.031999588012695, 30.351135)\n (298.895489, 30.264337, 12.131999969482422, 30.264337)\n (298.971413, 30.3369306, 12.63700008392334, 30.336931)\n (298.990964, 30.2314217, 11.5600004196167, 30.231422)\n (299.075966, 30.3156617, 11.815999984741211, 30.315662)\n (299.13007, 30.2750884, 11.670000076293945, 30.275088)\n (299.15577, 30.3561423, 11.696999549865723, 30.356142)\n (299.169403, 30.3120878, 10.982000350952148, 30.312088)\n (299.170978, 30.2211434, 11.857000350952148, 30.221143)\n (299.173132, 30.271365, 12.678999900817871, 30.271365)\n (299.180462, 30.3492295, 11.34000015258789, 30.34923)\n (299.200996, 30.2769167, 12.168999671936035, 30.276917)\n (299.273762, 30.2309462, 11.798999786376953, 30.230946)\n (299.287197, 30.3113823, 10.229000091552734, 30.311382)\n (299.298454, 30.3197564, 10.838000297546387, 30.319756)\n (299.336764, 30.3379262, 12.376999855041504, 30.337926)\n (299.363122, 30.3132903, 10.342000007629395, 30.31329)\n (299.372579, 30.2940692, 12.967000007629395, 30.294069)\n (299.374253, 30.3923689, 14.206999778747559, 30.392369)\n (299.374733, 30.2465848, 13.682000160217285, 30.246585)\n (299.374783, 30.3359723, 14.458999633789062, 30.335972)\n (299.375541, 30.3812456, 13.067999839782715, 30.381246)\n (299.378847, 30.2108839, 14.442999839782715, 30.210884)\n (299.382445, 30.222552, 12.668999671936035, 30.222552)\n (299.382782, 30.2243734, 12.668999671936035, 30.224373)\n (299.384396, 30.3604612, 13.934000015258789, 30.360461)\n (299.385953, 30.3349953, 13.970999717712402, 30.334995)\n (299.387454, 30.3034695, 15.543000221252441, 30.30347)\n (299.388376, 30.2962717, 14.826000213623047, 30.296272)\n (299.391482, 30.2262159, 14.024999618530273, 30.226216)\n (299.393331, 30.3796517, 14.586000442504883, 30.379652)\n (299.398764, 30.3637784, 14.564000129699707, 30.363778)\n (299.402758, 30.2942548, 13.501999855041504, 30.294255)\n (299.402964, 30.2105992, 15.086000442504883, 30.210599)\n (299.405768, 30.382207, 14.835000038146973, 30.382207)\n (299.406338, 30.3153695, 13.90999984741211, 30.315369)\n (299.407348, 30.362792, 13.880000114440918, 30.362792)],\n mask = [(False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)],\n fill_value = (1e+20, 1e+20, 1.0000000200408773e+20, 1e+20),\n dtype = [('_RAJ2000', '<f8'), ('DEJ2000', '<f8'), ('Vmag', '<f4'), ('_DEJ2000', '<f8')])" | |
} | |
], | |
"prompt_number": 19 | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": "**Region may also be specified using coordinates and using a box rather than a radius**\n\nNote if only a height or width are specified, the box is treated as a square rather than a rectangle\nIf none of height/width or radius are specified, an exception is raised" | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "result = v.query_region(coord.ICRSCoordinates(ra=299.590, dec=35.201, unit=(u.deg, u.deg)),\n width=\"5d0m0s\", height=\"3d0m0s\",\n catalog=[\"NOMAD\", \"UCAC\"]\n )", | |
"language": "python", | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": "WARNING: W27: /tmp/tmpQdK9em:36:2: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions]\nWARNING: W27: /tmp/tmpQdK9em:37:2: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions]" | |
} | |
], | |
"prompt_number": 20 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "print result", | |
"language": "python", | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": "< TableList with 2 tables:\n\t'I/289/out' with 50 rows\n\t'I/322A/out' with 50 rows\n>" | |
} | |
], | |
"prompt_number": 22 | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": "**A particular constraint or keyword may be removed at any time:**" | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "del v.column_filters", | |
"language": "python", | |
"outputs": [], | |
"prompt_number": 24 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "result = v.query_object(\"HD 226868\", catalog=[\"NOMAD\", \"UCAC\"])", | |
"language": "python", | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": "WARNING: W27: /tmp/tmpKpnN6e:34:2: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions]\nWARNING: W27: /tmp/tmpKpnN6e:35:2: W27: COOSYS deprecated in VOTable 1.2 [astropy.io.votable.exceptions]" | |
} | |
], | |
"prompt_number": 25 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "print result", | |
"language": "python", | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"stream": "stdout", | |
"text": "< TableList with 3 tables:\n\t'I/297/out' with 50 rows\n\t'I/289/out' with 18 rows\n\t'I/322A/out' with 28 rows\n>" | |
} | |
], | |
"prompt_number": 26 | |
}, | |
{ | |
"cell_type": "markdown", | |
"source": "**Now the Vmag constraint no longer applies**" | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": "result['I/322A/out']", | |
"language": "python", | |
"outputs": [ | |
{ | |
"html": "<table><tr><th>_RAJ2000</th><th>DEJ2000</th><th>Vmag</th><th>_DEJ2000</th></tr><tr><td>299.560073</td><td>35.1847709</td><td>nan</td><td>35.184771</td></tr><tr><td>299.572419</td><td>35.1942342</td><td>15.986</td><td>35.194234</td></tr><tr><td>299.579956</td><td>35.1965673</td><td>nan</td><td>35.196567</td></tr><tr><td>299.580291</td><td>35.1768889</td><td>13.274</td><td>35.176889</td></tr><tr><td>299.582553</td><td>35.1801528</td><td>nan</td><td>35.180153</td></tr><tr><td>299.582571</td><td>35.1852253</td><td>14.863</td><td>35.185225</td></tr><tr><td>299.594172</td><td>35.1799948</td><td>14.690</td><td>35.179995</td></tr><tr><td>299.601402</td><td>35.1981078</td><td>14.644</td><td>35.198108</td></tr><tr><td>299.606413</td><td>35.1871734</td><td>nan</td><td>35.187173</td></tr><tr><td>299.606698</td><td>35.1920009</td><td>nan</td><td>35.192001</td></tr><tr><td>299.608171</td><td>35.1994889</td><td>nan</td><td>35.199489</td></tr><tr><td>...</td><td>...</td><td>...</td><td>...</td></tr><tr><td>299.590162</td><td>35.2168664</td><td>9.992</td><td>35.216866</td></tr><tr><td>299.590315</td><td>35.2016062</td><td>8.996</td><td>35.201606</td></tr><tr><td>299.590446</td><td>35.2153614</td><td>nan</td><td>35.215361</td></tr><tr><td>299.592838</td><td>35.2291506</td><td>nan</td><td>35.229151</td></tr><tr><td>299.597615</td><td>35.2271000</td><td>nan</td><td>35.227100</td></tr><tr><td>299.597652</td><td>35.2342487</td><td>nan</td><td>35.234249</td></tr><tr><td>299.601081</td><td>35.2333378</td><td>13.170</td><td>35.233338</td></tr><tr><td>299.615751</td><td>35.2229892</td><td>nan</td><td>35.222989</td></tr><tr><td>299.617995</td><td>35.2058637</td><td>13.946</td><td>35.205864</td></tr><tr><td>299.620861</td><td>35.2124506</td><td>nan</td><td>35.212451</td></tr><tr><td>299.623687</td><td>35.2105187</td><td>nan</td><td>35.210519</td></tr></table>", | |
"output_type": "pyout", | |
"prompt_number": 27, | |
"text": "<Table rows=28 names=('_RAJ2000','DEJ2000','Vmag','_DEJ2000')>\nmasked_array(data = [(299.560073, 35.1847709, --, 35.184771)\n (299.572419, 35.1942342, 15.986000061035156, 35.194234)\n (299.579956, 35.1965673, --, 35.196567)\n (299.580291, 35.1768889, 13.27400016784668, 35.176889)\n (299.582553, 35.1801528, --, 35.180153)\n (299.582571, 35.1852253, 14.86299991607666, 35.185225)\n (299.594172, 35.1799948, 14.6899995803833, 35.179995)\n (299.601402, 35.1981078, 14.644000053405762, 35.198108)\n (299.606413, 35.1871734, --, 35.187173)\n (299.606698, 35.1920009, --, 35.192001)\n (299.608171, 35.1994889, --, 35.199489)\n (299.612142, 35.1839075, --, 35.183908)\n (299.617669, 35.1869987, 14.394000053405762, 35.186999)\n (299.561498, 35.2016928, 15.687000274658203, 35.201693)\n (299.570217, 35.2256634, 14.878000259399414, 35.225663)\n (299.587434, 35.2032023, --, 35.203202)\n (299.589158, 35.2301031, --, 35.230103)\n (299.590162, 35.2168664, 9.991999626159668, 35.216866)\n (299.590315, 35.2016062, 8.996000289916992, 35.201606)\n (299.590446, 35.2153614, --, 35.215361)\n (299.592838, 35.2291506, --, 35.229151) (299.597615, 35.2271, --, 35.2271)\n (299.597652, 35.2342487, --, 35.234249)\n (299.601081, 35.2333378, 13.170000076293945, 35.233338)\n (299.615751, 35.2229892, --, 35.222989)\n (299.617995, 35.2058637, 13.946000099182129, 35.205864)\n (299.620861, 35.2124506, --, 35.212451)\n (299.623687, 35.2105187, --, 35.210519)],\n mask = [(False, False, True, False) (False, False, False, False)\n (False, False, True, False) (False, False, False, False)\n (False, False, True, False) (False, False, False, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, True, False) (False, False, True, False)\n (False, False, True, False) (False, False, True, False)\n (False, False, False, False) (False, False, False, False)\n (False, False, False, False) (False, False, True, False)\n (False, False, True, False) (False, False, False, False)\n (False, False, False, False) (False, False, True, False)\n (False, False, True, False) (False, False, True, False)\n (False, False, True, False) (False, False, False, False)\n (False, False, True, False) (False, False, False, False)\n (False, False, True, False) (False, False, True, False)],\n fill_value = (1e+20, 1e+20, 1.0000000200408773e+20, 1e+20),\n dtype = [('_RAJ2000', '<f8'), ('DEJ2000', '<f8'), ('Vmag', '<f4'), ('_DEJ2000', '<f8')])" | |
} | |
], | |
"prompt_number": 27 | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment