If raster contains NaNs, PCA won't be able to run. Maybe it would be possible to - create a mask with nan values - replace those with zeros for the time of inference - replace values with nodata (see how to best define ? maybe add an option ?)
If raster contains NaNs, PCA won't be able to run. Maybe it would be possible to