Idl does simple things [message #2866] |
Wed, 07 September 1994 09:36 |
SAF%MPEBV2
Messages: 1 Registered: September 1994
|
Junior Member |
|
|
idlusers-news-gateway:
id AA10998; Wed, 7 Sep 94 18:36:28 +0200
by gwdu17.gwdg.de with SMTP (PP); Wed, 7 Sep 1994 18:40:58 +0200
by MPE.MPE-GARCHING.MPG.DE (PMDF V4.2-14 #4099)
id <01HGUA2X4DC08WXDG3@MPE.MPE-GARCHING.MPG.DE>;
Wed, 7 Sep 1994 18:41:16 CET
X-Envelope-To: idlusers@maz.sma.ch
X-Vms-To: 28773::IN%"idlusers@maz.sma.ch"
Mime-Version: 1.0
In article <1994Aug24.143231.8722@fys.ruu.nl> hartman@fys.ruu.nl (Jan Willem Hartman) writes:
> ..or rather, probably, why can't I make IDL do simple things..
>
> This is what I want: I have this bunch of data: x,y,z. So I want IDL
> to plot just these points (eventually the points may be connected, but
> let's not get too difficult) in 3D. So just like SURFACE, but with no
> surface. Any idea??? Thanks in advance...
> JanWillem Hartman.
>
try the following:
points=bytarr(nx,ny,nz) ;dimensions of the volume you want to plot in
;your points, maybe (max(x)-min(x))/100. and so on
intensity=200b ;or intensity of each single point
for i=0,n_elements(x)-1 do points(x(i),y(i),z(i))=intensity
common volume_data,a
a=points
slicer
end
the SLICER procedure is very convenient to display in 3d, you can find the
source code in the userlib to modify it for your special application for
instance to use tvrd to get hardcopies
sabine frey
mpe garching
85740 garching
germany
hfr@mpe-garching.mpg.de
|
|
|