Skip to content

Commit

Permalink
One typo and modified a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
brianburkenoaa committed May 5, 2024
1 parent fbe6013 commit fe82230
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/get_index.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#source("create_OceanData_Object.R")

get_CMISST_index <- function(response, oceanData=oceanData_ERSST,
years=NA, years.fit=year.fit,
years=NA, years.fit=years.fit,
months=1:12, years.pred=NA,
min.lon=158, max.lon=246,
min.lat=10, max.lat=62,
Expand Down
8 changes: 5 additions & 3 deletions R/run_CMISST.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ input.long= c(158, 246)

# Input: Ocean Years ----
# For salmon, this would be the year of ocean entry
# Years after the most recent year in the response will be predicted
input.years= c(1980, 2023)

# Prediction years (ocean years)
# These years will not be included in calculating the CMISST index,
# but will be in the index output for use in a predictive model
input.years.pred=c(2020)
#input.years.pred=NA
#input.years.pred=c(2020)
input.years.pred=NA

#************************************
# For Leave One Out Cross-validation
Expand Down Expand Up @@ -131,7 +132,8 @@ updateCMISST <- function() {
return(append(cmisst, loocv))
} else return(cmisst)
# Returns index as a list
# cmisst[[1]] contains 6 columns (as one list item): 4 seasonal indices, year, response
# cmisst[[1]] contains 7 columns (as one list item): year, 4 seasonal indices,
# the scaled response, and the original response
# cmisst[[2]] winter spatial covariance values (for maps)
# cmisst[[3]] spring spatial covariance values (for maps)
# cmisst[[4]] summer spatial covariance values (for maps)
Expand Down

0 comments on commit fe82230

Please sign in to comment.