idl array question [message #60076] |
Fri, 02 May 2008 11:09 |
ikevi10
Messages: 4 Registered: May 2008
|
Junior Member |
|
|
Is there an easy method to basically removing an index in an array.
So lets say I make an array (original) that has an indexs of x, y,
direction (a left or right), and voltage bias. (I am basically
reading in this data.)
Now I decide to make two new arrays since I want to just split the
right and left direction data.
I know if I wanted to ignore the voltage bias I could just say:
arrayleft=original(*,*,0)
arrayright=original(*,*,1)
which would then return my array if I called help as:
arrayleft Float =array[# of x, # of y]
arrayright Float = array[# of x, # of y]
But of course the problem is that want to keep my voltage bias data:
So if I define my arrayleft:
arrayleft=original(*,*,0,*)
arrayright=original(*,*,1,*)
I am still left with an 4 index array (one index is 1 though... which
I just want to get rid of)
In other words help will return:
arrayleft Float = Array[# of x, # of y, 1, # of bias]
arrayright Float = Array[ # of x, # of y, 1, # of bias]
And I would like it to return:
arrayleft Float = Array[# of x, # of y, # of bias]
arrayright Float = Array[ # of x, # of y, # of bias]
Is there an method to do this?
Thanks for any help.
|
|
|