comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » A QuerrVizier error?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
A QuerrVizier error? [message #83743] Sun, 24 March 2013 08:56
Celeritas is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: volume() command
Next Topic: running adn compiling many idl programs in different folders

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:28:24 PDT 2025

Total time taken to generate the page: 0.00541 seconds