[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

looking for a compile_opt option



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