Mercurial > repos > greg > insect_phenology_model
comparison insect_phenology_model.R @ 37:b0126627ade6 draft
Uploaded
author | greg |
---|---|
date | Thu, 09 Nov 2017 13:50:13 -0500 |
parents | c2025ecec509 |
children | b81d2443b1b8 |
comparison
equal
deleted
inserted
replaced
36:c2025ecec509 | 37:b0126627ade6 |
---|---|
199 } | 199 } |
200 | 200 |
201 # Read in the input temperature datafile into a Data Frame object. | 201 # Read in the input temperature datafile into a Data Frame object. |
202 temperature_data <- read.csv(file=opt$input, header=T, sep=",") | 202 temperature_data <- read.csv(file=opt$input, header=T, sep=",") |
203 start_date <- temperature_data[c(1:1), 3] | 203 start_date <- temperature_data[c(1:1), 3] |
204 end_date <- temperature_data[c(opt$num_days:1), 3] | 204 end_date <- temperature_data[c(opt$num_days:opt$num_days), 3] |
205 raw_data_matrix <- matrix(rep(0, opt$num_days * 6), nrow=opt$num_days) | 205 raw_data_matrix <- matrix(rep(0, opt$num_days * 6), nrow=opt$num_days) |
206 temperature_file_path <- convert_csv_to_rdata(temperature_data, raw_data_matrix) | 206 temperature_file_path <- convert_csv_to_rdata(temperature_data, raw_data_matrix) |
207 latitude <- temperature_data[1, 1] | 207 latitude <- temperature_data[1, 1] |
208 | 208 |
209 cat("Number of days: ", opt$num_days, "\n") | 209 cat("Number of days: ", opt$num_days, "\n") |