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

Home » Public Forums » archive » Re: For loop avoidance - getting indices of real space
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: For loop avoidance - getting indices of real space [message #81157 is a reply to message #81155] Fri, 24 August 2012 07:42 Go to previous messageGo to previous message
simulana is currently offline  simulana
Messages: 15
Registered: August 2012
Junior Member
On Friday, August 24, 2012 5:32:05 AM UTC-4, alx wrote:
> Le jeudi 23 août 2012 22:58:48 UTC+2, simu...@gmail.com a écrit :

> If I understand well your problem, a solution might be:
>
>
>
> IDL> coord = [ [lindgen(xcells)#replicate(1,ycells*zcells)], $
>
> IDL> [lindgen(ycells)#replicate(1,xcells*zcells)], $
>
> IDL> [lindgen(zcells)#replicate(1,xcells*ycells)] ]
>
> IDL> coord = reform(coord,ncells,3,/OVER)
>
> alain.


Although it may not work exactly as described here, I think I can see a version that would work, albeit less elegantly.

If I just go for each of them individually, like so:

coordx=lindgen(xcells)#replicate(1,ycells*zcells)
coord(ncells,0)=reform(coordx,ncells,1,/OVER)

etc., I think it does work! Thanks!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How would you measure the range of density on a graph using IDL?
Next Topic: Re: image interplate and overlay lat/lon?

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

Current Time: Thu Oct 09 23:15:00 PDT 2025

Total time taken to generate the page: 0.48047 seconds