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

Home » Public Forums » archive » looking for a compile_opt option
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
looking for a compile_opt option [message #22308] Wed, 01 November 2000 23:42
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Hi!

Who knows a compile_opt option to copy an array with the last dimension
1 ?

e.g.

IDL> a=reform(make_array(4,3),4,3,1)
IDL> help,a
A FLOAT = Array[4, 3, 1]


now copy the variable

IDL> b=a
IDL> help,b
B FLOAT = Array[4, 3]

the last dimension is missing!



At the moment I am using a function like this.

FUNCTION arr_copy,value
sz=SIZE(value,/dim)
RETURN,REFORM(value,sz)
END



regards
Reimar



--
R.Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Old Timers ??
Next Topic: IDL 5.4 and SHADE_SURF

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

Current Time: Fri Oct 10 08:15:05 PDT 2025

Total time taken to generate the page: 1.36091 seconds