A QuerrVizier error? [message #83743] |
Sun, 24 March 2013 08:56 |
Celeritas
Messages: 2 Registered: March 2013
|
Junior Member |
|
|
Dear all,
I'm having a problem loading data from vizier using the queryvizier.pro. I am thinking it must be new error perhaps due to a new update?
I call the program by:
OC1 = queryvizier('J/A+A/438/1163/','None',/allcolumns)
IDL responds with
%Type conversion error: Unable to convert given STRING to Long.
% Detected at: QUERYVIZIER 339 C:\Users\MS\Desktop\IDL_functions\vizier\QueryVizier.pro
% Conflicting or duplicate structure tag definition: RECNO_2.
Line 339 is within the following loop, see arrow for precise mark.
; Find positions of tab characters
t = t[i0:iend-1]
for j=0,Ntag-1 do begin
x = strtrim( gettok(t,string(9b),/exact ),2)
dtype = size(info[0].(j),/type)
if dtype NE 7 then begin
bad = where(strlen(x) EQ 0, Nbad)
if (Nbad GT 0) then $
if (dtype EQ 4) || (dtype EQ 5) then x[bad] = 'NaN' $
else x[bad] = -1
endif
info.(j) = x ; <--- Line 339.
endfor
Any one have an idea what could be wrong or how to fix it?
Cheers,
\Mads
|
|
|