Skip to content
GitLab
Menu
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
0dc5580b
Commit
0dc5580b
authored
Jun 21, 2021
by
Johannes Knoch
Browse files
the functions from save_files.r are now used in outer_procedure.r
parent
f7e7de27
Changes
1
Hide whitespace changes
Inline
Side-by-side
R-package/R/outer_procedure.r
View file @
0dc5580b
...
...
@@ -493,32 +493,31 @@ multi_Class_Sampling <- function(in.raster,
if
(
save_runs
==
TRUE
)
{
run1
<-
maFo_rf
save
(
run1
,
file
=
paste
(
outPath
,
paste
(
"Run"
,
ni
,
sep
=
""
),
sep
=
""
))
save_run
(
outPath
,
ni
,
run1
)
remove
(
run1
)
}
###rgdal version issue
not_good_workaround
<-
comment
(
dummy
@
crs
)
comment
(
dummy
@
crs
)
<-
""
#
not_good_workaround <- comment(dummy@crs)
#
comment(dummy@crs) <- ""
###
raster
::
writeRaster
(
dummy
,
filename
=
paste
(
outPath
,
paste
(
"step_"
,
ni
,
paste
(
"_"
,
classNames
[
index
],
sep
=
""
),
".tif"
,
sep
=
""
),
sep
=
""
),
format
=
"GTiff"
,
overwrite
=
overwrite
)
save_class_tiff
(
outPath
,
ni
,
classNames
,
index
,
dummy
,
overwrite
)
###rgdal version issue
comment
(
dummy
@
crs
)
<-
not_good_workaround
#
comment(dummy@crs) <- not_good_workaround
###
kml
<-
raster
::
projectRaster
(
dummy
,
crs
=
"+proj=longlat +datum=WGS84"
,
method
=
'ngb'
)
raster
::
KML
(
kml
,
paste
(
outPath
,
paste
(
"step_"
,
ni
,
sep
=
""
),
sep
=
""
),
overwrite
=
overwrite
,
zip
=
FALSE
)
save_kml
(
outPath
,
ni
,
dummy
,
overwrite
)
print
(
paste
(
wkt
(
maFo_rf
@
layer
[[
1
]])))
thres
<-
as.numeric
(
decision
)
thres
<-
thres
+
num_models
...
...
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