-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild_simbad_file.pro
More file actions
39 lines (32 loc) · 1.05 KB
/
build_simbad_file.pro
File metadata and controls
39 lines (32 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
pro build_simbad_file
;+
;
; Query simbad to get the VJHK magnitudes. This is a test for now to
; see if simbad's archival photometry gives us enough coverage to be
; useful. Initially it appears not to me.
;
;-
; &%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%
; READ THE LEDA DATABASE FILE
; &%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%
infile = "gal_data/leda_vlsr5000.fits"
tab = mrdfits(infile, 1, hdr)
; &%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%
; NOW FOR ALL OF OUR TARGETS, QUERY SIMBAD
; &%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%
list = tab.objname
n_list = n_elements(list)
nan = !values.f_nan
for ii = 0, n_list-1 do begin
name = list[ii]
vmag = nan
jmag = nan
hmag = nan
kmag = nan
querysimbad, name, ra, de, id $
, found = found, errmsg = errmsg $
, vmag=vmag, jmag=jmag, hmag=hmag, kmag=kmag
print, found, vmag, jmag, hmag, kmag, tab[ii].btc, tab[ii].itc
if found eq 0 then stop
endfor
end