spec_append¶
- pydl.pydlspec2d.spec1d.spec_append(spec1, spec2, pixshift=0)[source]¶
Append the array spec2 to the array spec1 & return a new array.
If the dimension of these arrays is the same, then append as [spec1,spec2]. If not, increase the size of the smaller array & fill with zeros.
- Parameters:
- spec1, spec2
numpy.ndarray Append
spec2tospec1.- pixshift
int, optional If
pixshiftis set to a positive integer,spec2will be padded withpixshiftzeros on the left side. Ifpixshiftis set to a negative integer,spec1will be padded withabs(pixshift)zeros on the left side. If not set, all zeros will be padded on the right side.
- spec1, spec2
- Returns:
numpy.ndarrayA new array containing both
spec1andspec2.