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
spec2
tospec1
.- pixshift
int
, optional If
pixshift
is set to a positive integer,spec2
will be padded withpixshift
zeros on the left side. Ifpixshift
is set to a negative integer,spec1
will 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.ndarray
A new array containing both
spec1
andspec2
.