Re: A QuerrVizier error? [message #83740] |
Mon, 25 March 2013 00:29 |
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  |
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
|
|
|