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

Home » Public Forums » archive » DIST Function - 3D
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: DIST Function - 3D [message #92634 is a reply to message #92624] Wed, 27 January 2016 08:42 Go to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
Le mardi 26 janvier 2016 16:06:18 UTC+1, g.na...@gmail.com a écrit :
> Hi
>
> I wanted to create a 3D array [x,y,t] that when display it I'll see something not simple black images. I found the DIST() function but unfortunately I cannot use it to make a 3D array.
>
> Can anyone help with this?
>
> Thanks!

Maybe, by this:

function dist_3D, nx, ny, nz
x = [rebin(dindgen(1,nx), 1, nx, ny, nz), $
rebin(dindgen(1,1,ny), 1, nx, ny, nz), $
rebin(dindgen(1,1,1,nz), 1, nx, ny, nz)]
return, sqrt(total(x^2, 1))
end

alx.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using histogram (or cghistogram) to get top X percent of distribution?
Next Topic: IDL new graphics mapping issue

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

Current Time: Wed Oct 08 11:39:43 PDT 2025

Total time taken to generate the page: 0.00424 seconds