splm fails in some cases
In some cases, example for S2B_MSIL2A_20231213T090259_N0510_R007_T33NXC_20231213T122736, the process stops on the following warning and error at view angle raster computation, :
Warning: rankMatrix(x, method='qr'): computing t(x) as nrow(x) < ncol(x)
Warning: There are perfect collinearities detected in X (the matrix of explanatory variables). This may make the model fit unreliable or may cause an error while model fitting. Consider removing redundant explanatory variables and refitting the model.
Error: Error: The number of fixed effects is at least as large as the number of observations (p >= n). Consider reducing the number of fixed effects and rerunning splm().
In other cases, example S2B_MSIL2A_20220123T083139_N0510_R021_T35NNF_20240504T161553, similar error is:
Warning: There are perfect collinearities detected in X (the matrix of explanatory variables). This may make the model fit unreliable or may cause an error while model fitting. Consider removing redundant explanatory variables and refitting the model.
Error: Error in `backsolve(R_val, qr.qty(qr_val, y))`: singular matrix in 'backsolve'. First zero in diagonal [3]