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

Home » Public Forums » archive » Re: 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
Re: A QuerrVizier error? [message #83740] Mon, 25 March 2013 00:29
Celeritas is currently offline  Celeritas
Messages: 2
Registered: March 2013
Junior Member
thank you so much. Works perfect.

\Mads

On Monday, March 25, 2013 4:20:52 AM UTC+1, wlandsman wrote:
> The problem is that there are actually two catalogs - a catalog of open cluster data (cocd) and a notes catalog. queryvizier should be able to figure out how to separate the two catalogs, but meanwhile you can work around this by specifically searching the cocd data.
>
>
>
> OC1 = queryvizier('J/A+A/438/1163/cocd','None',/allcolumns,/verbos e)
>
>
>
> --Wayne
>
>
>
> On Sunday, March 24, 2013 11:56:42 AM UTC-4, Celeritas wrote:
>
>
>
>>
>
>> 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
Re: A QuerrVizier error? [message #83742 is a reply to message #83740] Sun, 24 March 2013 20:20 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
The problem is that there are actually two catalogs - a catalog of open cluster data (cocd) and a notes catalog. queryvizier should be able to figure out how to separate the two catalogs, but meanwhile you can work around this by specifically searching the cocd data.

OC1 = queryvizier('J/A+A/438/1163/cocd','None',/allcolumns,/verbos e)

--Wayne

On Sunday, March 24, 2013 11:56:42 AM UTC-4, Celeritas wrote:

>
> 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: running adn compiling many idl programs in different folders
Next Topic: Re: running adn compiling many idl programs in different folders

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

Current Time: Wed Oct 08 18:39:03 PDT 2025

Total time taken to generate the page: 0.00377 seconds