swectral.vegeind.pad#
- swectral.vegeind.pad(spec_array, order, padding='edge', axis=0)[source]#
Compute PAD (Derivative Pseudo-Absorption) of a 2D array-like collection of 1D spectral data series. The calculation is based on:
George Alan Blackburn, Quantifying Chlorophylls and Caroteniods at Leaf and Canopy Scales: An Evaluation of Some Hyperspectral Approaches, Remote Sensing of Environment, Volume 66, Issue 3, 1998, Pages 273-285, ISSN 0034-4257, https://doi.org/10.1016/S0034-4257(98)00059-5.
- Parameters:
- spec_array2D array_like,
shape(n_samples,n_features) 2D array-like of 1D spectral data series.
- order
int Order of the derivative.
- padding
intorfloatorstrorNone,optional Boundary padding strategy for derivative arrays. Choose between:
‘nan’ – pad with NaN.
‘edge’ – pad with edge values.
numeric – pad with the specified constant.
None – no padding.
If None is used, or for n-th order derivatives, the output length will be reduced by 2n along the computation axis. The default is ‘edge’.
- axis
int,optional Axis representing the spectral dimension. Must be 0 or 1.
If 0, each row represents a sample spectrum. The default is 0.
- spec_array2D array_like,
- Returns:
np.ndarrayDerivative pseudo-absorptions.
- Return type:
See also