Astroquery

A tool suite for querying online astronomical databases via a common python interface.

Most tools return either astropy.Tables or FITS objects.

Astroquery requires astropy. It will work with v0.2.4 or v0.3 (the latest dev version).

Homepage, including installation instructions: http://www.astropy.org/astroquery/


In [1]:
from IPython.display import Image

In [2]:
# Example: ignore the warnings, they're something wonky with my machine
from astroquery import simbad


/Users/adam/repos/astropy/astropy/tests/helper.py:23: UserWarning: Module argparse was already imported from /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/argparse.pyc, but /Users/adam/virtual-python/lib/python2.7/site-packages is being added to sys.path
  import pkg_resources

In [3]:
result1 = simbad.Simbad.query_object('M31')

In [4]:
result1


/Users/adam/virtual-python/lib/python2.7/site-packages/numpy/ma/core.py:3828: UserWarning: Warning: converting a masked element to nan.
  warnings.warn("Warning: converting a masked element to nan.")
Out[4]:
MAIN_IDRADEC...COO_WAVELENGTHCOO_BIBCODE
M 3100 42 44.330+41 16 07.50...I2006AJ....131.1163S

In [5]:
result1.pprint()


MAIN_ID      RA          DEC      ... COO_WAVELENGTH     COO_BIBCODE    
------- ------------ ------------ ... -------------- -------------------
  M  31 00 42 44.330 +41 16 07.50 ...              I 2006AJ....131.1163S

In [6]:
result1.show_in_browser(jsviewer=True)
Image('figures/showinbrowser1.png')


Out[6]:

In [7]:
from astroquery.vizier import Vizier
result2 = Vizier.query_object('M31')

In [8]:
result2


Out[8]:
TableList with 307 tables:
	'0:ReadMeObj' with 5 column(s) and 8 row(s) 
	'1:I/61B/agk3' with 15 column(s) and 1 row(s) 
	'2:I/71/catalog' with 7 column(s) and 1 row(s) 
	'3:I/122/bd' with 9 column(s) and 2 row(s) 
	'4:I/146/ppm1' with 12 column(s) and 1 row(s) 
	'5:I/171/acrs1' with 14 column(s) and 1 row(s) 
	'6:I/238A/picat' with 15 column(s) and 1 row(s) 
	'7:I/256/stars' with 9 column(s) and 1 row(s) 
	'8:I/256/veronc83' with 11 column(s) and 1 row(s) 
	'9:I/270/cpirss01' with 8 column(s) and 1 row(s) 
	'10:I/280B/ascc' with 12 column(s) and 1 row(s) 
	'11:I/285/gpm' with 13 column(s) and 1 row(s) 
	'12:I/289/out' with 13 column(s) and 1 row(s) 
	'13:I/290/pul3' with 9 column(s) and 1 row(s) 
	'14:I/295/catalog' with 10 column(s) and 1 row(s) 
	'15:I/297/out' with 19 column(s) and 50 row(s) 
	'16:I/306A/stars' with 20 column(s) and 2 row(s) 
	'17:I/312/sample' with 13 column(s) and 1 row(s) 
	'18:I/317/sample' with 13 column(s) and 1 row(s) 
	'19:I/322A/out' with 24 column(s) and 50 row(s) 
	'20:II/2B/catalog' with 16 column(s) and 1 row(s) 
	'21:II/94/main' with 11 column(s) and 1 row(s) 
	'22:II/95/data' with 9 column(s) and 1 row(s) 
	'23:II/97/ans' with 15 column(s) and 1 row(s) 
	'24:II/125/main' with 13 column(s) and 1 row(s) 
	'25:II/126/sources' with 9 column(s) and 3 row(s) 
	'26:II/156A/main' with 12 column(s) and 1 row(s) 
	'27:II/167/catalog' with 8 column(s) and 1 row(s) 
	'28:II/208/bv' with 11 column(s) and 50 row(s) 
	'29:II/225/catalog' with 14 column(s) and 50 row(s) 
	'30:II/225/names' with 5 column(s) and 50 row(s) 
	'31:II/225/psc' with 8 column(s) and 1 row(s) 
	'32:II/246/out' with 15 column(s) and 50 row(s) 
	'33:II/256/sn' with 14 column(s) and 1 row(s) 
	'34:II/262/summary' with 6 column(s) and 1 row(s) 
	'35:II/262/batc' with 13 column(s) and 50 row(s) 
	'36:II/274/iras_r' with 15 column(s) and 1 row(s) 
	'37:II/275/fsr' with 15 column(s) and 1 row(s) 
	'38:II/275/assoc' with 14 column(s) and 12 row(s) 
	'39:II/281/2mass6x' with 15 column(s) and 50 row(s) 
	'40:II/297/irc' with 13 column(s) and 1 row(s) 
	'41:II/298/fis' with 15 column(s) and 2 row(s) 
	'42:II/311/wise' with 22 column(s) and 12 row(s) 
	'43:III/135A/catalog' with 17 column(s) and 1 row(s) 
	'44:III/148A/table1' with 8 column(s) and 3 row(s) 
	'45:III/148A/table3' with 10 column(s) and 1 row(s) 
	'46:V/24/cstar' with 12 column(s) and 1 row(s) 
	'47:V/51/disco' with 10 column(s) and 3 row(s) 
	'48:V/114/msx6_main' with 16 column(s) and 1 row(s) 
	'49:V/134/arxa' with 13 column(s) and 1 row(s) 
	'50:VI/32/data1' with 14 column(s) and 1 row(s) 
	'51:VI/103/hutlist' with 7 column(s) and 2 row(s) 
	'52:VI/110/inescat' with 7 column(s) and 31 row(s) 
	'53:VI/111/isolog' with 7 column(s) and 26 row(s) 
	'54:VI/117/asca' with 10 column(s) and 2 row(s) 
	'55:VI/129/fuse' with 10 column(s) and 4 row(s) 
	'56:VI/139/herschel' with 9 column(s) and 2 row(s) 
	'57:VII/1B/catalog' with 12 column(s) and 1 row(s) 
	'58:VII/2A/master' with 9 column(s) and 5 row(s) 
	'59:VII/26D/catalog' with 10 column(s) and 1 row(s) 
	'60:VII/36/catalog' with 13 column(s) and 1 row(s) 
	'61:VII/51/catalog' with 11 column(s) and 1 row(s) 
	'62:VII/62A/mcg' with 10 column(s) and 1 row(s) 
	'63:VII/64/detect' with 13 column(s) and 8 row(s) 
	'64:VII/70A/data' with 11 column(s) and 21 row(s) 
	'65:VII/73/irassss' with 15 column(s) and 1 row(s) 
	'66:VII/75/table3' with 11 column(s) and 1 row(s) 
	'67:VII/83/catalog' with 15 column(s) and 1 row(s) 
	'68:VII/98A/catalog' with 11 column(s) and 1 row(s) 
	'69:VII/99/catalog' with 11 column(s) and 34 row(s) 
	'70:VII/112/catalog' with 12 column(s) and 1 row(s) 
	'71:VII/113/xcat' with 12 column(s) and 1 row(s) 
	'72:VII/118/ngc2000' with 11 column(s) and 1 row(s) 
	'73:VII/145/catalog' with 13 column(s) and 1 row(s) 
	'74:VII/147/data' with 15 column(s) and 1 row(s) 
	'75:VII/155/rc3' with 11 column(s) and 1 row(s) 
	'76:VII/161/catalog' with 16 column(s) and 1 row(s) 
	'77:VII/185/catalog' with 8 column(s) and 1 row(s) 
	'78:VII/190/zg_ori' with 9 column(s) and 1 row(s) 
	'79:VII/193/zcat' with 8 column(s) and 1 row(s) 
	'80:VII/198/a82file1' with 14 column(s) and 1 row(s) 
	'81:VII/198/a82file2' with 12 column(s) and 1 row(s) 
	'82:VII/198/a82file3' with 13 column(s) and 1 row(s) 
	'83:VII/198/a82_s' with 12 column(s) and 1 row(s) 
	'84:VII/206/table4' with 12 column(s) and 1 row(s) 
	'85:VII/233/xsc' with 13 column(s) and 1 row(s) 
	'86:VII/237/pgc' with 9 column(s) and 1 row(s) 
	'87:VII/238/hidat' with 9 column(s) and 1 row(s) 
	'88:VII/239A/icpos' with 10 column(s) and 1 row(s) 
	'89:VII/239A/icdata' with 14 column(s) and 12 row(s) 
	'90:VII/258/vv10' with 13 column(s) and 1 row(s) 
	'91:VII/267/gwgc' with 21 column(s) and 1 row(s) 
	'92:VIII/13/catalog' with 7 column(s) and 1 row(s) 
	'93:VIII/14/j2000' with 11 column(s) and 1 row(s) 
	'94:VIII/25/6c6' with 9 column(s) and 1 row(s) 
	'95:VIII/37/b3' with 10 column(s) and 1 row(s) 
	'96:VIII/40/gb6' with 18 column(s) and 1 row(s) 
	'97:VIII/56/rbrgals' with 11 column(s) and 24 row(s) 
	'98:VIII/62/wenss' with 11 column(s) and 2 row(s) 
	'99:VIII/64/catalog' with 5 column(s) and 1 row(s) 
	'100:VIII/65/nvss' with 12 column(s) and 2 row(s) 
	'101:VIII/68/catalog' with 15 column(s) and 20 row(s) 
	'102:VIII/84/7c' with 9 column(s) and 1 row(s) 
	'103:VIII/85A/spectra' with 14 column(s) and 9 row(s) 
	'104:VIII/85A/waste' with 11 column(s) and 15 row(s) 
	'105:IX/6/data' with 15 column(s) and 1 row(s) 
	'106:IX/10A/1rxs' with 11 column(s) and 1 row(s) 
	'107:IX/10A/1rxs_cor' with 10 column(s) and 1 row(s) 
	'108:IX/10A/cor_iras' with 6 column(s) and 2 row(s) 
	'109:IX/10A/cor_ned' with 6 column(s) and 24 row(s) 
	'110:IX/10A/cor_nvs' with 6 column(s) and 2 row(s) 
	'111:IX/10A/cor_pri' with 6 column(s) and 7 row(s) 
	'112:IX/10A/cor_ros' with 6 column(s) and 50 row(s) 
	'113:IX/10A/cor_ver' with 6 column(s) and 1 row(s) 
	'114:IX/13/2e' with 10 column(s) and 2 row(s) 
	'115:IX/18/catalog' with 11 column(s) and 1 row(s) 
	'116:IX/24/hrifield' with 10 column(s) and 3 row(s) 
	'117:IX/24/hrisrc' with 11 column(s) and 3 row(s) 
	'118:IX/25/ipcfield' with 8 column(s) and 1 row(s) 
	'119:IX/25/ipcihut' with 9 column(s) and 18 row(s) 
	'120:IX/28A/hricat' with 11 column(s) and 50 row(s) 
	'121:IX/28A/seq' with 8 column(s) and 4 row(s) 
	'122:IX/30/2rxp' with 9 column(s) and 50 row(s) 
	'123:IX/31/wgacat' with 12 column(s) and 50 row(s) 
	'124:IX/41/xmm2ir3s' with 17 column(s) and 50 row(s) 
	'125:B/hst/hstlog' with 10 column(s) and 50 row(s) 
	'126:B/hst/wfpc2' with 8 column(s) and 19 row(s) 
	'127:B/cfht/cfht' with 8 column(s) and 50 row(s) 
	'128:B/chandra/chandra' with 11 column(s) and 50 row(s) 
	'129:B/int/obs' with 7 column(s) and 2 row(s) 
	'130:B/xmm/xmmlog' with 10 column(s) and 42 row(s) 
	'131:B/iram/30m' with 10 column(s) and 50 row(s) 
	'132:B/mk/mktypes' with 11 column(s) and 2 row(s) 
	'133:B/sn/sncat' with 11 column(s) and 1 row(s) 
	'134:B/gcvs/gcvs_cat' with 10 column(s) and 1 row(s) 
	'135:B/gcvs/evs_cat' with 12 column(s) and 31 row(s) 
	'136:B/vsx/vsx' with 19 column(s) and 1 row(s) 
	'137:J/ApJ/339/53/table1' with 12 column(s) and 2 row(s) 
	'138:J/ApJ/339/53/table2' with 10 column(s) and 50 row(s) 
	'139:J/ApJ/414/463/table6' with 9 column(s) and 1 row(s) 
	'140:J/ApJ/504/113/table2' with 9 column(s) and 50 row(s) 
	'141:J/ApJ/533/744/table1' with 14 column(s) and 1 row(s) 
	'142:J/ApJ/543/178/table2' with 11 column(s) and 1 row(s) 
	'143:J/ApJ/543/178/table3' with 11 column(s) and 1 row(s) 
	'144:J/ApJ/543/178/table4' with 11 column(s) and 1 row(s) 
	'145:J/ApJ/554/803/catalog' with 9 column(s) and 1 row(s) 
	'146:J/ApJ/573/306/SNe' with 16 column(s) and 1 row(s) 
	'147:J/ApJ/577/31/table2' with 7 column(s) and 50 row(s) 
	'148:J/ApJ/577/31/table9' with 10 column(s) and 1 row(s) 
	'149:J/ApJ/577/31/table10' with 9 column(s) and 1 row(s) 
	'150:J/ApJ/577/738/table2' with 10 column(s) and 47 row(s) 
	'151:J/ApJ/578/114/table1' with 8 column(s) and 43 row(s) 
	'152:J/ApJ/609/735/table1' with 6 column(s) and 16 row(s) 
	'153:J/ApJ/609/735/table2' with 11 column(s) and 40 row(s) 
	'154:J/ApJ/621/673/galaxies' with 11 column(s) and 1 row(s) 
	'155:J/ApJ/622/217/Data' with 11 column(s) and 1 row(s) 
	'156:J/ApJ/636/721/table1' with 15 column(s) and 1 row(s) 
	'157:J/ApJ/643/356/table1' with 6 column(s) and 16 row(s) 
	'158:J/ApJ/655/790/galaxies' with 9 column(s) and 2 row(s) 
	'159:J/ApJ/668/94/sample' with 20 column(s) and 1 row(s) 
	'160:J/ApJ/669/821/table1' with 15 column(s) and 1 row(s) 
	'161:J/ApJ/675/1459/table1' with 7 column(s) and 1 row(s) 
	'162:J/ApJ/676/184/table1' with 17 column(s) and 1 row(s) 
	'163:J/ApJ/686/948/table1' with 13 column(s) and 1 row(s) 
	'164:J/ApJ/687/230/table1' with 11 column(s) and 11 row(s) 
	'165:J/ApJ/687/230/table2' with 10 column(s) and 1 row(s) 
	'166:J/ApJ/687/230/table4' with 8 column(s) and 11 row(s) 
	'167:J/ApJ/687/471/table2' with 11 column(s) and 4 row(s) 
	'168:J/ApJ/702/955/table1' with 16 column(s) and 1 row(s) 
	'169:J/ApJ/703/420/table1' with 20 column(s) and 2 row(s) 
	'170:J/ApJ/706/516/table1' with 14 column(s) and 1 row(s) 
	'171:J/ApJ/715/277/sample' with 5 column(s) and 1 row(s) 
	'172:J/ApJ/725/200/table1' with 17 column(s) and 19 row(s) 
	'173:J/ApJ/725/200/table5' with 15 column(s) and 4 row(s) 
	'174:J/ApJ/733/87/table1' with 14 column(s) and 1 row(s) 
	'175:J/ApJ/733/L47/table1' with 20 column(s) and 1 row(s) 
	'176:J/ApJ/734/12/table4' with 15 column(s) and 17 row(s) 
	'177:J/ApJ/737/45/table1' with 8 column(s) and 2 row(s) 
	'178:J/ApJS/38/351/table2' with 7 column(s) and 50 row(s) 
	'179:J/ApJS/38/351/refstars' with 7 column(s) and 11 row(s) 
	'180:J/ApJS/65/485/table1' with 11 column(s) and 1 row(s) 
	'181:J/ApJS/65/485/table2' with 12 column(s) and 1 row(s) 
	'182:J/ApJS/80/531/gxfluxes' with 6 column(s) and 1 row(s) 
	'183:J/ApJS/96/123/table4' with 12 column(s) and 1 row(s) 
	'184:J/ApJS/98/477/table2' with 17 column(s) and 5 row(s) 
	'185:J/ApJS/106/1/table3' with 8 column(s) and 1 row(s) 
	'186:J/ApJS/107/215/atlas' with 8 column(s) and 1 row(s) 
	'187:J/ApJS/112/315/table7' with 14 column(s) and 1 row(s) 
	'188:J/ApJS/121/287/cfa2s' with 10 column(s) and 1 row(s) 
	'189:J/ApJS/125/409/table1' with 6 column(s) and 1 row(s) 
	'190:J/ApJS/129/435/table2' with 10 column(s) and 1 row(s) 
	'191:J/ApJS/129/547/table2' with 7 column(s) and 1 row(s) 
	'192:J/ApJS/150/343/table2' with 9 column(s) and 1 row(s) 
	'193:J/ApJS/151/299/table5' with 7 column(s) and 1 row(s) 
	'194:J/ApJS/155/89/table3' with 12 column(s) and 1 row(s) 
	'195:J/ApJS/160/176/table1' with 13 column(s) and 1 row(s) 
	'196:J/ApJS/173/185/galex' with 15 column(s) and 1 row(s) 
	'197:J/ApJS/173/643/table2' with 17 column(s) and 3 row(s) 
	'198:J/ApJS/178/1/galaxies' with 13 column(s) and 1 row(s) 
	'199:J/ApJS/178/247/11Mpc' with 20 column(s) and 1 row(s) 
	'200:J/ApJS/183/1/table1' with 19 column(s) and 1 row(s) 
	'201:J/ApJS/184/138/table3' with 12 column(s) and 1 row(s) 
	'202:J/ApJS/192/6/sample' with 22 column(s) and 1 row(s) 
	'203:J/ApJS/195/9/table3' with 12 column(s) and 1 row(s) 
	'204:J/ApJS/199/26/table3' with 21 column(s) and 1 row(s) 
	'205:J/ApJS/199/37/table1' with 22 column(s) and 11 row(s) 
	'206:J/A+A/278/36/table1' with 5 column(s) and 6 row(s) 
	'207:J/A+A/309/749/tablea1' with 8 column(s) and 25 row(s) 
	'208:J/A+A/310/353/table2' with 8 column(s) and 1 row(s) 
	'209:J/A+A/317/328/table5' with 16 column(s) and 8 row(s) 
	'210:J/A+A/366/68/table1' with 8 column(s) and 1 row(s) 
	'211:J/A+A/373/63/table5' with 12 column(s) and 4 row(s) 
	'212:J/A+A/373/63/table6' with 11 column(s) and 8 row(s) 
	'213:J/A+A/374/394/galaxies' with 6 column(s) and 1 row(s) 
	'214:J/A+A/378/30/table1' with 11 column(s) and 1 row(s) 
	'215:J/A+A/405/5/catalog' with 14 column(s) and 1 row(s) 
	'216:J/A+A/411/L59/catalog' with 9 column(s) and 1 row(s) 
	'217:J/A+A/412/633/table1' with 12 column(s) and 1 row(s) 
	'218:J/A+A/414/825/table1' with 10 column(s) and 1 row(s) 
	'219:J/A+A/416/917/table2' with 9 column(s) and 25 row(s) 
	'220:J/A+A/421/509/table3' with 6 column(s) and 50 row(s) 
	'221:J/A+A/434/483/table1' with 9 column(s) and 4 row(s) 
	'222:J/A+A/434/483/table2' with 11 column(s) and 26 row(s) 
	'223:J/A+A/445/423/table2' with 10 column(s) and 50 row(s) 
	'224:J/A+A/445/423/cep' with 11 column(s) and 5 row(s) 
	'225:J/A+A/447/89/agb' with 7 column(s) and 1 row(s) 
	'226:J/A+A/456/985/table5' with 12 column(s) and 25 row(s) 
	'227:J/A+A/465/375/tablea1' with 10 column(s) and 50 row(s) 
	'228:J/A+A/468/49/table2' with 11 column(s) and 50 row(s) 
	'229:J/A+A/471/127/m31rbc' with 16 column(s) and 27 row(s) 
	'230:J/A+A/477/67/novae' with 12 column(s) and 2 row(s) 
	'231:J/A+A/480/599/table3' with 14 column(s) and 7 row(s) 
	'232:J/A+A/480/599/table5' with 10 column(s) and 33 row(s) 
	'233:J/A+A/480/611/xmmsl1t' with 10 column(s) and 5 row(s) 
	'234:J/A+A/493/339/obs' with 8 column(s) and 4 row(s) 
	'235:J/A+A/493/339/target' with 10 column(s) and 8 row(s) 
	'236:J/A+A/508/1285/tablea2' with 21 column(s) and 3 row(s) 
	'237:J/A+A/532/A104/catalog' with 15 column(s) and 2 row(s) 
	'238:J/A+A/533/A33/table6' with 6 column(s) and 1 row(s) 
	'239:J/A+A/533/A52/table9' with 22 column(s) and 12 row(s) 
	'240:J/A+A/534/A55/table5' with 17 column(s) and 26 row(s) 
	'241:J/A+A/537/A99/lqac2' with 13 column(s) and 1 row(s) 
	'242:J/A+A/538/A120/usc' with 15 column(s) and 1 row(s) 
	'243:J/A+A/544/A81/snsdss' with 24 column(s) and 1 row(s) 
	'244:J/A+A/547/A65/galaxies' with 4 column(s) and 1 row(s) 
	'245:J/A+A/549/A27/m31-1aof' with 7 column(s) and 36 row(s) 
	'246:J/A+A/549/A60/M31glcl' with 11 column(s) and 1 row(s) 
	'247:J/A+A/551/A142/1swxrt' with 14 column(s) and 2 row(s) 
	'248:J/A+A/555/A65/table1' with 12 column(s) and 50 row(s) 
	'249:J/A+AS/41/151/table3' with 14 column(s) and 1 row(s) 
	'250:J/A+AS/61/451/table3' with 13 column(s) and 2 row(s) 
	'251:J/A+AS/99/545/miyun232' with 10 column(s) and 1 row(s) 
	'252:J/A+AS/100/47/table2' with 10 column(s) and 1 row(s) 
	'253:J/A+AS/122/235/table2' with 8 column(s) and 1 row(s) 
	'254:J/A+AS/127/117/table1' with 8 column(s) and 50 row(s) 
	'255:J/A+AS/131/73/opdata' with 8 column(s) and 1 row(s) 
	'256:J/A+AS/131/77/table1a' with 10 column(s) and 1 row(s) 
	'257:J/A+AS/132/255/table1' with 13 column(s) and 8 row(s) 
	'258:J/A+AS/132/255/table4' with 10 column(s) and 1 row(s) 
	'259:J/AJ/109/2318/table1' with 15 column(s) and 1 row(s) 
	'260:J/AJ/109/2318/table2' with 15 column(s) and 1 row(s) 
	'261:J/AJ/110/1993/table1a' with 13 column(s) and 1 row(s) 
	'262:J/AJ/116/1626/table1' with 13 column(s) and 1 row(s) 
	'263:J/AJ/122/2458/table1' with 5 column(s) and 6 row(s) 
	'264:J/AJ/122/2458/table3' with 5 column(s) and 1 row(s) 
	'265:J/AJ/123/2490/table3' with 10 column(s) and 1 row(s) 
	'266:J/AJ/124/2990/table5' with 6 column(s) and 1 row(s) 
	'267:J/AJ/126/1607/table1' with 18 column(s) and 1 row(s) 
	'268:J/AJ/127/2031/LV' with 13 column(s) and 1 row(s) 
	'269:J/AJ/131/1416/table2' with 13 column(s) and 17 row(s) 
	'270:J/AJ/131/2478/table4' with 11 column(s) and 50 row(s) 
	'271:J/AJ/133/2393/photo' with 12 column(s) and 50 row(s) 
	'272:J/AJ/133/2764/table1' with 15 column(s) and 4 row(s) 
	'273:J/AJ/134/706/m31cl' with 13 column(s) and 2 row(s) 
	'274:J/AJ/134/1508/table1' with 14 column(s) and 1 row(s) 
	'275:J/AJ/134/2474/tables' with 15 column(s) and 50 row(s) 
	'276:J/AJ/137/94/table1' with 13 column(s) and 11 row(s) 
	'277:J/AJ/137/94/stars' with 13 column(s) and 13 row(s) 
	'278:J/AJ/141/61/table1' with 14 column(s) and 7 row(s) 
	'279:J/AJ/142/199/table2' with 8 column(s) and 3 row(s) 
	'280:J/AJ/143/14/table9' with 14 column(s) and 6 row(s) 
	'281:J/AJ/143/87/table1' with 21 column(s) and 2 row(s) 
	'282:J/AJ/144/4/catalog' with 32 column(s) and 1 row(s) 
	'283:J/PASP/111/438/catalog' with 12 column(s) and 1 row(s) 
	'284:J/MNRAS/313/469/table3' with 10 column(s) and 1 row(s) 
	'285:J/MNRAS/315/839/table1' with 5 column(s) and 1 row(s) 
	'286:J/MNRAS/321/277/table1' with 12 column(s) and 1 row(s) 
	'287:J/MNRAS/328/1181/table3' with 13 column(s) and 1 row(s) 
	'288:J/MNRAS/330/547/galaxy' with 13 column(s) and 1 row(s) 
	'289:J/MNRAS/351/1071/table23' with 9 column(s) and 50 row(s) 
	'290:J/MNRAS/369/97/tablea1' with 10 column(s) and 23 row(s) 
	'291:J/MNRAS/369/120/table3' with 11 column(s) and 50 row(s) 
	'292:J/MNRAS/382/1552/table1' with 10 column(s) and 1 row(s) 
	'293:J/MNRAS/382/1552/table5' with 7 column(s) and 1 row(s) 
	'294:J/MNRAS/402/803/table1' with 16 column(s) and 14 row(s) 
	'295:J/MNRAS/404/1639/table2' with 18 column(s) and 2 row(s) 
	'296:J/MNRAS/407/2399/table1' with 15 column(s) and 1 row(s) 
	'297:J/MNRAS/412/1419/table2' with 14 column(s) and 1 row(s) 
	'298:J/MNRAS/413/813/atlas3d' with 16 column(s) and 1 row(s) 
	'299:J/MNRAS/416/1680/atlas3d' with 14 column(s) and 1 row(s) 
	'300:J/MNRAS/416/2840/catalog' with 16 column(s) and 1 row(s) 
	'301:J/AZh/78/675/catalog' with 13 column(s) and 1 row(s) 
	'302:J/PAZh/24/93/table2' with 6 column(s) and 6 row(s) 
	'303:J/PAZh/31/332/table1' with 14 column(s) and 1 row(s) 
	'304:J/other/RMxAA/45.261/galaxies' with 8 column(s) and 1 row(s) 
	'305:J/other/NewA/5.137/table1' with 9 column(s) and 1 row(s) 
	'306:J/other/A+ARV/15.289/table1' with 17 column(s) and 1 row(s) 

In [9]:
result2[63].show_in_browser(jsviewer=True)
Image('figures/showinbrowser2.png')


Out[9]:

In [10]:
from astropy import coordinates as coord
C = coord.ICRS.from_name('NGC 2366')
print(C)


<ICRS RA=112.21604 deg, Dec=69.20864 deg>

In [11]:
from astroquery.ned import Ned

In [12]:
result3 = Ned.query_region(C, radius='5 arcmin')

In [13]:
result3


Out[13]:
No.Object NameRA(deg)...Diameter PointsAssociations
12XMM J072756.9+691150111.98727...00
22XMM J072802.3+691321112.00971...00
32XMM J072808.0+691029112.03342...00
42XMM J072811.0+691217112.04605...00
52XMM J072825.0+691543112.10425...00
6NGC 2366:[HK83] 125112.10637...00
7NGC 2366:[HK83] 123112.10973...01
8NGC 2366:[HK83] 124112.11004...00
9NVSS J072826+691124112.11137...033
10NGC 2366:[HK83] 122112.11314...00
11NGC 2366:[ST74a] V1112.11375...01
..................
190NGC 2366:[HK83] 003112.26786...00
191NGC 2366:[HK83] 002112.26937...00
192NGC 2366:[HK83] 001112.27085...00
1932XMM J072915.9+691528112.31655...00
1942XMM J072917.3+690905112.32214...00
1952XMM J072921.5+690826112.33965...00
1962XMM J072927.2+691229112.36352...00
1972XMM J072927.7+691002112.36568...00
1982XMM J072929.5+691401112.37317...00
1992XMM J072933.2+691235112.38848...00
2002XMM J072934.2+691203112.39288...00

In [14]:
img_list = Ned.get_images_async('NGC 2366')
img_list


Out[14]:
[Downloaded object from URL http://ned.ipac.caltech.edu/dss1B2/Be/NGC_2366:I:103aE:dss1.fits.gz with ID 4435757840,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2008AJ....136.2563W/NGC_2366_RO_MOM1:I:HI:wbb2008.fits.gz with ID 4435757584,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2008AJ....136.2563W/NGC_2366_RO_MOM0:I:HI:wbb2008.fits.gz with ID 4435758544,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2008AJ....136.2563W/NGC_2366_RO_CUBE:I:HI:wbb2008.fits.gz with ID 4468801872,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2008AJ....136.2563W/NGC_2366_NA_MOM2:I:HI:wbb2008.fits.gz with ID 4436967696,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2008AJ....136.2563W/NGC_2366_NA_MOM1:I:HI:wbb2008.fits.gz with ID 4436970128,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2008AJ....136.2563W/NGC_2366_NA_MOM0:I:HI:wbb2008.fits.gz with ID 4436967632,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2008AJ....136.2563W/NGC_2366_NA_CUBE:I:HI:wbb2008.fits.gz with ID 4436968080,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2012AJ....144..134H/NGC_2366_R_M2:I:HI:h2012.fits.gz with ID 4436970256,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2008AJ....136.2563W/NGC_2366_RO_MOM2:I:HI:wbb2008.fits.gz with ID 4436970384,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2012AJ....144..134H/NGC_2366_R_M0:I:HI:h2012.fits.gz with ID 4436968720,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2012AJ....144..134H/NGC_2366_R_CL:I:HI:h2012.fits.gz with ID 4434111824,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2012AJ....144..134H/NGC_2366_NA_M2:I:HI:h2012.fits.gz with ID 4434111888,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2012AJ....144..134H/NGC_2366_NA_M1:I:HI:h2012.fits.gz with ID 4434112144,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2012AJ....144..134H/NGC_2366_NA_M0:I:HI:h2012.fits.gz with ID 4434112336,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2012AJ....144..134H/NGC_2366_NA_CL:I:HI:h2012.fits.gz with ID 4434112464,
 Downloaded object from URL http://ned.ipac.caltech.edu/img11/1995A+AS..114..409B/NGC_2366:I:6cm:b1995.fits.gz with ID 4434110928,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2012AJ....144..134H/NGC_2366_R_M1:I:HI:h2012.fits.gz with ID 4434111760,
 Downloaded object from URL http://ned.ipac.caltech.edu/img1/1987ApJS...65..485C/NGC_2366:I:20cm:c1987.fits.gz with ID 4434110992,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2012MNRAS.423..197B/NGC_2366:I:MIPS160:bgm2012.fits.gz with ID 4434111056,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2009ApJ...703..517D/NGC_2366:I:MIPS160:d2009.fits.gz with ID 4434111568,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2009ApJ...703..517D/NGC_2366:I:MIPS70:d2009.fits.gz with ID 4434111632,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2012MNRAS.423..197B/NGC_2366:I:MIPS70:bgm2012.fits.gz with ID 4434111312,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2012MNRAS.423..197B/NGC_2366:I:MIPS24:bgm2012.fits.gz with ID 4434111440,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2009ApJ...703..517D/NGC_2366:I:MIPS24:d2009.fits.gz with ID 4434110672,
 Downloaded object from URL http://ned.ipac.caltech.edu/img5/2000AJ....120..583D/NGC_2366:I:LW3:dsh2000:final.fits.gz with ID 4434110608,
 Downloaded object from URL http://ned.ipac.caltech.edu/img5/2000AJ....120..583D/NGC_2366:I:LW3:dsh2000.fits.gz with ID 4434110416,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2009ApJ...703..517D/NGC_2366:I:IRAC_8.0:d2009.fits.gz with ID 4434110544,
 Downloaded object from URL http://ned.ipac.caltech.edu/img5/2000AJ....120..583D/NGC_2366:I:LW2:dsh2000.fits.gz with ID 4434110096,
 Downloaded object from URL http://ned.ipac.caltech.edu/img5/2000AJ....120..583D/NGC_2366:I:LW2:dsh2000:final.fits.gz with ID 4434110032,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2009ApJ...703..517D/NGC_2366:I:IRAC_5.8:d2009.fits.gz with ID 4434110160,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2009ApJ...703..517D/NGC_2366:I:IRAC_4.5:d2009.fits.gz with ID 4434109776,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2009ApJ...703..517D/NGC_2366:I:IRAC_3.6:d2009.fits.gz with ID 4434109712,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2006ApJS..162...49H/NGC_2366:I:K:he2006.fits.gz with ID 4434109520,
 Downloaded object from URL http://ned.ipac.caltech.edu/img8/LGA/2MASS_NGC_2366_K.fits.gz with ID 4434109392,
 Downloaded object from URL http://ned.ipac.caltech.edu/img2/1999ApJS..124...95B/NGC_2366:I:F187N:bcs1999.fits.gz with ID 4434109200,
 Downloaded object from URL http://ned.ipac.caltech.edu/img8/LGA/2MASS_NGC_2366_H.fits.gz with ID 4434109008,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2006ApJS..162...49H/NGC_2366:I:H:he2006.fits.gz with ID 4434108880,
 Downloaded object from URL http://ned.ipac.caltech.edu/img2/1999ApJS..124...95B/NGC_2366:I:F160W:bcs1999.fits.gz with ID 4434108688,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2006ApJS..162...49H/NGC_2366:I:J:he2006.fits.gz with ID 4434108496,
 Downloaded object from URL http://ned.ipac.caltech.edu/img8/LGA/2MASS_NGC_2366_J.fits.gz with ID 4400111184,
 Downloaded object from URL http://ned.ipac.caltech.edu/img12/2004AJ....128.2205H/NGC_2366:I:Ha:he2004.fits.gz with ID 4433730448,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2009ApJ...703..517D/NGC_2366:I:Ha:d2009.fits.gz with ID 4433731024,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2009ApJ...703..517D/NGC_2366:I:R:d2009.fits.gz with ID 4433731472,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2006ApJS..162...49H/NGC_2366:I:V:he2006.fits.gz with ID 4433731216,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2006ApJS..162...49H/NGC_2366:I:B:he2006.fits.gz with ID 4433731344,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2006ApJS..162...49H/NGC_2366:I:U:he2006.fits.gz with ID 4433730960,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2010AJ....139..447H/NGC_2366:I:NUV:hel2010.fits.gz with ID 4433730832,
 Downloaded object from URL http://ned.ipac.caltech.edu/img15/GALEX_Atlas/NGC_2366:I:NUV:g2006.fits.gz with ID 4433730576,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2009ApJ...703..517D/NGC_2366:I:NUV:d2009.fits.gz with ID 4433730384,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2010AJ....139..447H/NGC_2366:I:FUV:hel2010.fits.gz with ID 4433730192,
 Downloaded object from URL http://ned.ipac.caltech.edu/img15/GALEX_Atlas/NGC_2366:I:FUV:g2006.fits.gz with ID 4433727632,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2009ApJ...703..517D/NGC_2366:I:FUV:d2009.fits.gz with ID 4433730064,
 Downloaded object from URL http://ned.ipac.caltech.edu/img18/2008MNRAS.390..466E/UGC_03851:I:Ha:e2008.fits.gz with ID 4433729104]

The old way

from astropy.io import fits
with img_list[0] as f:
    filedata = f.read()
ffile = fits.HDUList.fromstring(filedata)

is now obsolete


In [15]:
ffile = img_list[0].get_fits()


Downloading http://ned.ipac.caltech.edu/dss1B2/Be/NGC_2366:I:103aE:dss1.fits.gz [Done]

In [16]:
import aplpy

In [17]:
F = aplpy.FITSFigure(ffile)
F.show_grayscale()


WARNING: No WCS information found in header - using pixel coordinates [aplpy.header]
WARNING: FITSFixedWarning: 'datfix' made the change 'Changed '11/02/53          ' to '1953-02-11''. [pyfits.core]
INFO: Auto-setting vmin to  9.871e+02 [aplpy.aplpy]
INFO: Auto-setting vmax to  1.057e+04 [aplpy.aplpy]