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

Home » Public Forums » archive » How come? Weird subarray problem...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
How come? Weird subarray problem... [message #85208] Fri, 12 July 2013 13:07 Go to previous message
stefan.meingast is currently offline  stefan.meingast
Messages: 30
Registered: June 2012
Member
Hey

I have been wondering why a specific part of my code does not work and I discovered this:

a = findgen(10,10,10)
help, a
FLOAT = Array[10, 10, 10]
help, a[*,*,0]
FLOAT = Array[10, 10]
help, a[*,0,*]
FLOAT = Array[10, 1, 10]
help, a[0,*,*]
FLOAT = Array[1, 10, 10]


IDL only recognises a subarray correctly if the given index is at the last position...is this normal or maybe is there a way around this?

cheers
:)
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: localising IDL programs
Next Topic: Barplot

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

Current Time: Wed Oct 08 15:06:25 PDT 2025

Total time taken to generate the page: 0.00422 seconds