IDL programming

  • Thread starter big man
  • Start date
  • #1
253
1

Homework Statement


I'm looking for a function in IDL that will select a certain section of an array.


The Attempt at a Solution


I could technically do this in a loop, but I saw that another student in my lab had a real simple single line function. I'm reading in a .wav file, which has 300000 data points and I'm wanting to select points 20000 to 60000.

For the loop I can do:

data=fltarr(40000)
for i=0, 39999 do data(i) = temp(i+20000)

But yeah I was just wondering if anyone knew what function I'm trying to describe in IDL. The function had this vague format:

..........................(20000:60000)
 

Answers and Replies

Related Threads on IDL programming

  • Last Post
Replies
0
Views
4K
  • Last Post
Replies
5
Views
2K
  • Last Post
Replies
1
Views
936
  • Last Post
Replies
7
Views
2K
  • Last Post
Replies
3
Views
5K
  • Last Post
Replies
6
Views
2K
  • Last Post
Replies
1
Views
3K
  • Last Post
Replies
1
Views
2K
Replies
1
Views
2K
  • Last Post
Replies
7
Views
3K
Top