Skip to content
Discussion options

You must be logged in to vote

The mask that you specify here is only limitting the training samples for the PCA.

In the Transform step, only those areas are masked, which are already masked in the raster:

Note that instead of transforming the original raster, you could transform any other Landsat raster with the fitted PCA model. For those other rasters, the original mask would have no meaning.

Long story short. You could a) mask your original landsat_data.tif before drawing the samples, or b) mask the output PCA raster.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by janzandr
Comment options

You must be logged in to vote
1 reply
@janzandr
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants