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

Home » Public Forums » archive » Re: Converting data
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
Re: Converting data [message #9590] Fri, 25 July 1997 00:00
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
Neil Winrow <ncw@dl.ac.uk> writes:

> Can anyone please help me!
> I have written a small program to output a 3D graphical image from a set
> of data. The data represents the values in the positive quadrant (x=0,20
> and y=0,20 etc), but the complete output is symetrical(or so I'm told).
> Is there anyway that I can output the complete data set by creating a
> new array of the values. This would be a great help, and save alot of
> grief.

Try this:

SZ = SIZE(IMAGE)
SYM_IMAGE = FLTARR(2*SZ(1)-1,2*SZ(2)-1)
SYM_IMAGE(SZ(1)-1,SZ(2)-1) = IMAGE
SYM_IMAGE(0,SZ(2)-1) = REVERSE(IMAGE,1)
SYM_IMAGE(SZ(1)-1,0) = REVERSE(IMAGE,2)
SYM_IMAGE(0,0) = REVERSE(REVERSE(IMAGE,1),2)

William Thompson
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: FINDFILE problem
Next Topic: Re: problem with program code area full in VMS IDL 4.0.1

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

Current Time: Sat Oct 11 08:48:47 PDT 2025

Total time taken to generate the page: 0.16114 seconds