generated from SEFSC/SEFSC-Template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Gulf-IEA/Caribbean-ESR
- Loading branch information
Showing
17 changed files
with
261 additions
and
174 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# | ||
# script to update ALL indicators for report | ||
# M. Karnauskas Mar 3 2024 | ||
|
||
# load libraries --------------------------------- | ||
rm(list = ls()) | ||
|
||
library(plotTimeSeries) | ||
|
||
# find root directory for project --------------- | ||
|
||
directory <- rprojroot::find_rstudio_root_file() | ||
|
||
# first process automated downloads -------------- | ||
|
||
setwd(directory) | ||
setwd("indicator_processing/automated_download/") | ||
dir() | ||
|
||
# run all scripts in folder --------------------- | ||
|
||
plot(1) | ||
|
||
source("ACE_index_Carib.R") # hurricane energy index | ||
source("chl_caribbean.R") # primary productivity | ||
source("DHW.R") # degree heating weeks | ||
source("earthquakes.R") # earthquakes | ||
source("kd490.R") # turbidity from Kd490 | ||
source("sst.R") # sea surface temperature | ||
|
||
|
||
############################################################### | ||
|
||
# Notes for standardizing scripts: | ||
|
||
# Top: | ||
|
||
# specification file and libraries ----------------------------- | ||
rm(list = ls()) | ||
dev.off() | ||
|
||
library(maps) | ||
library(plotTimeSeries) | ||
|
||
load("spec_file.RData") | ||
|
||
# define years -------------------------------- | ||
styear <- 1961 | ||
enyear <- terminal_year | ||
|
||
|
||
# Bottom: | ||
# save all indicators as "ind" object | ||
|
||
save(ind, file = "../../indicator_objects/INDICATOR_NAME.RData") | ||
|
||
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.