Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCA4CD dá erro quando rodo #15

Open
HelderJardim opened this issue Nov 12, 2024 · 7 comments
Open

PCA4CD dá erro quando rodo #15

HelderJardim opened this issue Nov 12, 2024 · 7 comments

Comments

@HelderJardim
Copy link

PCA4CD está dando erro quando rodo e não calcula as PCA's. Este é o texto que aparece como erro:
Traceback (most recent call last):
File "C:\Users/HelderJardim/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pca4cd\utils\system_utils.py", line 36, in wrapper
return func(*args, **kwargs)
File "C:\Users/HelderJardim/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\pca4cd\gui\pca4cd_dialog.py", line 216, in generate_principal_components
pca_files, pca_stats = pca(path_layer_A, path_layer_B, n_pc, estimator_matrix, pca4cd.tmp_dir,
TypeError: cannot unpack non-iterable NoneType object
image

@HelderJardim
Copy link
Author

image

@XavierCLL
Copy link
Member

Hi @HelderJardim thanks for reporting the error, english (or spanish) please.

That error seems that something happened in the PCA almost sure it is a data issue, could you share your raster (or small part of it)? To reproduce the error locally. (I think you closed it by error?)

@XavierCLL XavierCLL reopened this Nov 12, 2024
@HelderJardim
Copy link
Author

Do you want me to send the image? It is a Landsat 9 image (LC09_L2SP_218074_20241002_20241003_02_T1)

@XavierCLL
Copy link
Member

I'm almost sure that is due that one band in that stack is empty (with nodata or zeros), compute a PCA in that situation is impossible, so check your data carefully

@HelderJardim
Copy link
Author

Sorry for my English. It's not very good. But when I calculated the mosaic histogram, all the bands appear, as shown in the figure.
image

@HelderJardim
Copy link
Author

image

@XavierCLL
Copy link
Member

Ok, then the error could be due to another reason, I don't have time to download it, could you clip it in a small area and send it to me please? The only way to understand what is happening is reproducing the error locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants