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

Home » Public Forums » archive » idl array question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
idl array question [message #60076] Fri, 02 May 2008 11:09
ikevi10 is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: A problem using IDL?
Next Topic: Re: idl array question

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

Current Time: Wed Oct 08 17:26:37 PDT 2025

Total time taken to generate the page: 0.00409 seconds