makeDense¶
- lsst.ts.wep.utils.makeDense(values: ndarray, nollIndices: ndarray, jmax: int | None = None) ndarray ¶
Inserts sparse values into dense array of Zeroes.
For example, if values=[1, -2, -4], nollIndices=[4, 5, 7], this function returns [1, -2, 0, -4].
Parameters¶
- valuesnp.ndarray
Array of sparse values that will be inserted into the dense array.
- nollIndicesnp.ndarray
Array of Noll indices to select. Must contain only indices >= 4. Note these values must be unique, ascending, and >= 4.
- jmaxint or None, optional
The maximum Noll index of the dense array. If None, the max value of nollIndices is used. (the default is None)
Returns¶
- np.ndarray
A dense array of values, corresponding to Noll indices 4 - jmax. Missing values are zero.