Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Feret Jean-Baptiste
biodivMapR
Commits
8fbadf3b
Commit
8fbadf3b
authored
Jan 17, 2020
by
Jean-Baptiste Feret
Browse files
correct Spectral to SpectralFilter
parent
42f474da
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/Lib_MapSpectralSpecies.R
View file @
8fbadf3b
...
...
@@ -64,7 +64,7 @@ map_spectral_species <- function(Input_Image_File,Output_Dir,PCA_Files,PCA_model
}
print
(
"Apply PCA to subset prior to k-Means"
)
# remove constant bands if needed
if
(
!
length
(
Spectral
$
BandsNoVar
)
==
0
)
{
if
(
!
length
(
Spectral
Filter
$
BandsNoVar
)
==
0
)
{
Subset
$
DataSubset
<-
Subset
$
DataSubset
[,
-
SpectralFilter
$
BandsNoVar
]
}
if
(
TypePCA
==
"PCA"
|
TypePCA
==
"SPCA"
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment