3.2.2 Concatenating Data Arrays


next up previous contents
Next: 3.3 Routines for Data Up: 3.2 Concatenation of Datasets Previous: STR_CONCAT_TAGS

3.2.2 Concatenating Data Arrays

   

A sample command for concatenating two 3-D arrays is: IDL> out = [[[in1]],[[in2]]]If in1 is 1002004 and in2 is 1002003, then out would be 1002007. The first two dimensions of in1 and in2 must be identical. It is possible to have in2 be 100200, in which case out would be 1002005.

A sample command for concatenating two 2-D arrays is: IDL> out = [[in1],[in2]]If in1 was 10010 and in2 was 10020, then out would be 10030. In this case, the first dimension of in1 and in2 must match.


ydac@mssly1.mssl.ucl.ac.uk