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

Home » Public Forums » archive » Inserting pointer results in an array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Inserting pointer results in an array [message #49853] Tue, 22 August 2006 10:35 Go to previous message
nolan.smith1 is currently offline  nolan.smith1
Messages: 12
Registered: June 2005
Junior Member
Hello,

I was wondering if anyone has a suggestion about a problem that I have.
I have an array of star positions (ra,dec) that I want to know whether
they satisfy specific criteria. The number of specific criteria is 40.
I am using pointers to find which stars satisfy the criteria each time.

find=ptrarr(40)
FOR i=0,39 DO BEGIN
find(i)=ptr_new(where(CRITERIA))
ENDFOR

I want to store the results of all the different criteria in one array:
final_array=[*find[0],*find[1],*find[2],.......,*find[38],*f ind[39]]

Is there any other way to do that using a loop?

Thank you for the help,
NS
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Adding shapefiles to globe model
Next Topic: Re: Reading HDF5 signed bytes gives strange results [resolved]

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

Current Time: Fri Oct 10 09:14:59 PDT 2025

Total time taken to generate the page: 2.39853 seconds