Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
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
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