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
2faeec0d
Commit
2faeec0d
authored
May 28, 2021
by
carstennh
Browse files
optimize processing time in the sampling routine of model_opt.r
parent
c2f0e202
Changes
1
Hide whitespace changes
Inline
Side-by-side
demo/HabitatSampler.r
View file @
2faeec0d
...
...
@@ -73,7 +73,7 @@ shp<-readOGR(paste(dataPath,"Example_Reference_Points.shp", sep=""))
proj4string
(
shp
)
<-
"+proj=utm +zone=33 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0"
shp
<-
spTransform
(
shp
,
CRS
(
"+proj=utm +zone=32 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0"
))
ref
<-
as.data.frame
(
extract
(
a1
,
shp
))
-
##1.c.1##
p
<-
as
(
extent
(
a1
),
'SpatialPolygons'
)
...
...
Write
Preview
Supports
Markdown
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