grow in expand stapix endpix size=? out=?
This routine increases the number of axes of a data set by duplicating pixels along some axes while retaining other axes. A simple and common example is turning a single row into a set of identical rows or a set of identical columns. This routine copies an N-dimensional cube into (part of) an (N+M)-dimensional one. The input cube is in general copied several times into the output, but need not fill the output cube. If the output file is new, its size has to be given. If it is an existing file, it cannot be reshaped, the axes of input and output have to be consistent.
grow spectrum [0,1] [0,1] [0,5] size=[0,5] out=image new=t info=f Grows a spectrum into an image of 5 identical rows. It forces the creation of a new output file even if IMAGE exists. Informational messages are suppressed. grow spectrum [1,0] [2,0] [4,0] out=image Grows a spectrum into an image of 3 identical columns. Column 1 and columns beyond 4 in IMAGE remain unchanged. Since NEW is not specified, IMAGE must already exist. Its second axis must match the first axis of SPECTRUM, and its first axis must be at least 4 pixels long. grow spectrum [0,1,1] [0,1,1] [0,2,4] out=cube size=[0,4,8] new=t Grow the spectrum into a cube with the spectral axis the 1st cube axis. grow spectrum [1,0,1] [1,0,1] [2,0,4] out=cube size=[4,0,8] new=t Grow the spectrum into a cube with the spectral axis the 2nd cube axis. grow spectrum [1,0,1] [1,1,0] [2,4,0] out=cube size=[4,8,0] new=t Grow the spectrum into a cube with the spectral axis the 3rd cube axis. grow image [0,0,1] [0,0,1] [0,0,5] out=cube size=[0,0,5] new=t Grow an image into a cube, using the image as an xy-plane. grow image [0,1,0] [0,1,0] [0,5,0] out=cube size=[0,5,0] new=t Grow an image into a cube, using the image as an xt-plane. grow image [1,0,0] [1,0,0] [5,0,0] out=cube size=[5,0,0] new=t Grow an image into a cube, using the image as a yt-plane.
This routine may work in situ on an existing output file.
When IN is given as a subset of lower actual dimensionality than its base NDF, the dimensionality will formally be the same as that of the base NDF with interspersed dimensions (axis lengths) of 1. If this is inconvenient, use the application SUBSET to create the subset in advance and without degenerate axes.
FIGARO A general data reduction system