Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
manuscript_code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maria Voigt
manuscript_code
Commits
bab45ae2
Commit
bab45ae2
authored
8 years ago
by
Maria Voigt
Browse files
Options
Downloads
Patches
Plain Diff
adding option to vary ESW
parent
fd294da8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/model_fitting/abundance_model.R
+11
-1
11 additions, 1 deletion
src/model_fitting/abundance_model.R
with
11 additions
and
1 deletion
src/model_fitting/abundance_model.R
+
11
−
1
View file @
bab45ae2
...
@@ -30,6 +30,10 @@ option_list <- list (
...
@@ -30,6 +30,10 @@ option_list <- list (
make_option
(
c
(
"-o"
,
"--output-directory"
),
dest
=
"output_directory"
,
make_option
(
c
(
"-o"
,
"--output-directory"
),
dest
=
"output_directory"
,
type
=
"character"
,
help
=
"directory with output files"
,
type
=
"character"
,
help
=
"directory with output files"
,
metavar
=
"/path/to/output-dir"
),
metavar
=
"/path/to/output-dir"
),
make_option
(
"--ESW-aerial-index"
,
dest
=
"ESW_aerial_index"
,
type
=
"double"
,
help
=
"index aerial effective strip width"
),
make_option
(
"--exclude-year"
,
dest
=
"exclude_year"
,
type
=
"integer"
,
make_option
(
"--exclude-year"
,
dest
=
"exclude_year"
,
type
=
"integer"
,
default
=
NA
,
help
=
"year to exclude"
,
metavar
=
"2015"
),
default
=
NA
,
help
=
"year to exclude"
,
metavar
=
"2015"
),
make_option
(
"--include-aerial"
,
make_option
(
"--include-aerial"
,
...
@@ -74,6 +78,9 @@ if(is_verbose){print(paste("indir", indir))}
...
@@ -74,6 +78,9 @@ if(is_verbose){print(paste("indir", indir))}
outdir
<-
options
$
output_directory
outdir
<-
options
$
output_directory
if
(
is_verbose
){
print
(
paste
(
"outdir"
,
outdir
))}
if
(
is_verbose
){
print
(
paste
(
"outdir"
,
outdir
))}
ESW_aerial_index
<-
options
$
ESW_aerial_index
if
(
is_verbose
){
print
(
paste
(
"Aerial ESW index"
,
ESW_aerial_index
))}
do_stability
<-
options
$
stability
do_stability
<-
options
$
stability
if
(
is_verbose
){
print
(
paste
(
"stability"
,
do_stability
))}
if
(
is_verbose
){
print
(
paste
(
"stability"
,
do_stability
))}
...
@@ -102,7 +109,10 @@ source(file.path(indir_fun, "roger_functions/get_conf_set.r"))
...
@@ -102,7 +109,10 @@ source(file.path(indir_fun, "roger_functions/get_conf_set.r"))
#define offset ground
#define offset ground
ESW
<-
0.01595
#effective strip width in km
ESW
<-
0.01595
#effective strip width in km
ESW_aerial
<-
0.075
# effective strip width for aerial transects
ESW_aerial_options
<-
seq
(
from
=
0.01
,
to
=
0.15
,
by
=
0.01
)
ESW_aerial
<-
ESW_aerial_options
[
ESW_aerial_index
]
print
(
paste
(
"this is ESW aerial:"
,
ESW_aerial
))
NCS
<-
1.12
#nest construction rate from Spehar et al. 2010
NCS
<-
1.12
#nest construction rate from Spehar et al. 2010
PNB
<-
0.88
# proportion of nest builders from Spehar et al. 2010
PNB
<-
0.88
# proportion of nest builders from Spehar et al. 2010
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment