Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Habitat Sampler
HabitatSampler
Commits
cea37de3
Commit
cea37de3
authored
Sep 20, 2021
by
Romulo Pereira Goncalves
Browse files
The NaNs should be masked out at the time rast is defined, and not in each classification round.
parent
ed1d5377
Changes
2
Hide whitespace changes
Inline
Side-by-side
R-package/R/inner_procedure.r
View file @
cea37de3
...
...
@@ -71,6 +71,7 @@ sample_nb <- function(raster,
}
else
{
rast
<-
raster
}
rast
<-
raster
::
mask
(
rast
,
raster
::
calc
(
rast
,
fun
=
sum
))
###
l
<-
1
###6. opt=260
pbtn1
<-
matrix
(
1
,
nrow
=
1
,
ncol
=
1
)
...
...
R-package/R/model_opt.r
View file @
cea37de3
...
...
@@ -42,7 +42,6 @@ model_opt_r <- function(k,
points
<-
NULL
models
<-
NULL
oobe
<-
matrix
(
NA
,
nrow
=
n
,
ncol
=
1
)
rast
<-
raster
::
mask
(
raster
,
raster
::
calc
(
raster
,
fun
=
sum
))
for
(
j
in
1
:
n
)
{
###Vorbereitung Klassifizierung
if
(
j
==
1
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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