I am trying to do a PCA on ASTER satellite data using bands 4 through 9 (all
30 m pixel size). I have tried using the Processing Toolbox > Grass >
Imagery>i.pca but it continually fails.

 

I get this at the end of processing.

____________________________________________________________________________
_________________________________

Traceback (most recent call last):
File
"C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\algs\grass7\Gra
ss7Algorithm.py", line 395, in processAlgorithm
if isinstance(out, QgsProcessingOutputHtml):
NameError: name 'QgsProcessingOutputHtml' is not defined

Execution failed after 16.32 seconds

 

Loading resulting layers

Algorithm 'i.pca - Principal components analysis (PCA) for image
processing.' finished

____________________________________________________________________________
_________________________________

When using the SemiAutomatic Classification PCA calculator I get the
following error message.

 

2018-04-11T14:51:00 WARNING Traceback (most recent call last):

File
"C:/Users/Grant/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\S
emiAutomaticClassificationPlugin\maininterface\pcaTab.py", line 46, in
calculatePCAAction

self.calculatePCA()

File
"C:/Users/Grant/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\S
emiAutomaticClassificationPlugin\maininterface\pcaTab.py", line 97, in
calculatePCA

self.PCACalculation(rD, bL, outF, numbComp, None, batch)

File
"C:/Users/Grant/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\S
emiAutomaticClassificationPlugin\maininterface\pcaTab.py", line 140, in
PCACalculation

comp, totalVariance, totalVarianceCumulative, eigenValues =
self.calculateEigenVectors(covM)

File
"C:/Users/Grant/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\S
emiAutomaticClassificationPlugin\maininterface\pcaTab.py", line 264, in
calculateEigenVectors

val, vect = cfg.np.linalg.eigh(matrix)

File
"C:\PROGRA~1\QGIS3~1.0\apps\Python36\lib\site-packages\numpy\linalg\linalg.p
y", line 1291, in eigh

w, vt = gufunc(a, signature=signature, extobj=extobj)

File
"C:\PROGRA~1\QGIS3~1.0\apps\Python36\lib\site-packages\numpy\linalg\linalg.p
y", line 96, in _raise_linalgerror_eigenvalues_nonconvergence

raise LinAlgError("Eigenvalues did not converge")

numpy.linalg.linalg.LinAlgError: Eigenvalues did not converge

____________________________________________________________________________
_________________________________

Can anyone shed any light on what is happening here?

 

Cheers Grant

 

Grant Boxer (FAIG RPGeo)

Maylands, Western Australia, 6931

 

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to