Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Extract ele...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 5610 of 6256
Post > Topic >>

Re: Extract elements from floating-point array

by "Kenneth P. Bowman" <k-bowman@[EMAIL PROTECTED] > Apr 6, 2008 at 02:20 PM

In article 
<f91355dd-4389-4bf7-abc9-1525b88e8511@[EMAIL PROTECTED]
>,
 moxament@[EMAIL PROTECTED]
 wrote:

> Dear IDL group members,
> 
> I am beginner in the IDL programming and I have a lot of problems :(.
> My question now is the following:
> 
> I have a floating-point array Rdata with 335412 elements. The values
> of the elements are between 5.9e+009 minimum and 3.7e+0013 maximum. I
> want to extract the elements of the array where Rdata(i) > Rdara(i-1)
> and Rdata(i) > Rdata(i+1) and put them in a new array, lets say
> Rdata_new.
> 
> Can anyone help me PLEASE. I tried ptrarr and ptr_new but I could not
> get any result.
> 
> In addition, I do not know why I usually have problems when I deal in
> IDL with arrays like the one I mentioned before??? as I said I am
> beginner and I do not know if IDL has problems with huge arrays like
> mines with such element values.
> 
> any help will be appreciated.
> 
> Mohammed Dabboor

i = WHERE((rdata GT ****FT(rdata, 1)) AND (rdata[1:n-2]: GT ****FT(rdata,
-1)), count)
IF (count GT 0) THEN peaks = rdata[i]

****FT does a circular ****ft, so don't forget to treat the first and last
elements 
separately.

Ken Bowman
 




 3 Posts in Topic:
Extract elements from floating-point array
moxament@[EMAIL PROTECTED  2008-04-06 08:28:17 
Re: Extract elements from floating-point array
Vince Hradil <hradilv@  2008-04-06 13:17:28 
Re: Extract elements from floating-point array
"Kenneth P. Bowman&q  2008-04-06 14:20:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 3:53:56 CDT 2008.