NRAO Home > CASA > CASA Toolkit Reference Manual
image.makearray - Function

1.1.1 Construct an initialized multi-dimensional array.


Description

This function takes two arguments. The first argument is the initial value for the new array. The second is a vector giving the lengths of the dimensions of the array.

Arguments





Inputs

v

Value with which to initial array elements

allowed:

double

Default:

0.0

shape

Vector containing array dimensions.

allowed:

intArray

Default:

0

Returns
anyvariant

Example

 
A three dimensional array that is initialized to all zeros. Each of  
the three dimensions of the cube has a length of four.  
 
"""  
#  
print "\t----\t makearray Ex 1 \t----"  
cube = ia.makearray(0,[4,4,4])  
#  
"""  
 

__________________________________________________________________


More information about CASA may be found at the CASA web page

Copyright © 2016 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search