Principle component Analysis in SNAP


#1

Hi all,
When I use Principle component analysis in SNAP, the result is including components (PC1, PC2, PC3, PC4) and some files such as error, response and flag. What do they mean ? When I analyse PCA in Envi, there is no files like this. Anyone can explain?
Thank you.


#2

Unfortunately it is a bit of a mess with the PCA. There are two implementations of it. And they are not accessible from everywhere. Sometimes it’s the one, sometimes the other.
But if your result contains the bands response, error and flags I know which one you have used

flags
Contains a flag which marks the pixels which where covered by the ROI mask you can specify.
error
The membership error for a sample. The error is computed by projecting the sample into eigenspace then projecting it back into sample space
response
The dot product of each basis vector against the sample. Can be used as a measure for membership in the training sample set. High values correspond to a better fit.

The other PCA can be found if you use the Graph Builder.
However, we need to clean up the mess and document the PCA.
Actually it is already known since a while. We have it in our issue tracker
(SNAP-393, SNAP-692).


#3

Thank you very much for explaining. Marpet


#4

Hello,

Could you maybe explain again what are the bands “response” and “error” in a way understandable for a remote sensing newbie? :slight_smile: Also, is it good to have all zeros in the “error” band?


#5

I have also not much knowledge of this matter.
Maybe Wikipedia helps a bit?