Skip to content
Snippets Groups Projects
Commit 12665841 authored by Maria Voigt's avatar Maria Voigt
Browse files

replacing aerial index with value for ESW

parent 6ba20b13
Branches
No related tags found
No related merge requests found
...@@ -30,10 +30,10 @@ option_list <- list ( ...@@ -30,10 +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", make_option("--ESW-aerial",
dest = "ESW_aerial_index", dest = "ESW_aerial",
type = "double", type = "double",
help = "index aerial effective strip width"), help = "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",
...@@ -78,8 +78,8 @@ if(is_verbose){print(paste("indir", indir))} ...@@ -78,8 +78,8 @@ 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 ESW_aerial <- options$ESW_aerial
if(is_verbose){print(paste("Aerial ESW index", ESW_aerial_index))} if(is_verbose){print(paste("Aerial ESW", ESW_aerial))}
do_stability <- options$stability do_stability <- options$stability
if(is_verbose){print(paste("stability", do_stability))} if(is_verbose){print(paste("stability", do_stability))}
...@@ -109,9 +109,7 @@ source(file.path(indir_fun, "roger_functions/get_conf_set.r")) ...@@ -109,9 +109,7 @@ 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 already defined
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)) 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment