[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
looking for a compile_opt option
- Subject: looking for a compile_opt option
- From: "R.Bauer" <r.bauer(at)fz-juelich.de>
- Date: Thu, 02 Nov 2000 08:42:42 +0100
- Newsgroups: comp.lang.idl-pvwave
- Organization: Forschungszentrum Juelich GmbH
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:21984
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