Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not merge: Modify server #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
#Ignore csv files in the inputs folder
simple/*.csv
RFR/inputs_gcc/*.csv
RFR/inputs_weather/*/*.csv
RFR/inputs_weather/**/*.csv
RFR/PEG_RFR/**/*.csv
RFR/PEG_RFR0/**/*.csv
RFR/PEG_RFR2/**/*.csv
RFR/PEG_FUSION_0/**/*.csv
RFR/PEG_FUSION_1/**/*.csv

3 changes: 1 addition & 2 deletions RFR/06_submit_fusion.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,5 @@ for(v in version){
"AWS_S3_ENDPOINT" = "ecoforecast.org")

aws.s3::put_object(file = file.path(".", v, "submissions", pred_filename),
bucket = "submissions")

bucket = "submissions")
}
3 changes: 2 additions & 1 deletion RFR/forecast_gcc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ Rscript 01_pull_gcc_weather.R
# python3 03_PEG_RFR_gcc_predictions_with_interpolation.py
# python3 04_PEG_RFR2_gcc_predictions_with_weather_variables.py
python3 05_PEG_FUSION_0_future_predictions.py
Rscript 06_submit_fusion.R
python3 05_PEG_FUSION_1_future_predictions.py
Rscript 06_submit_fusion.R
16 changes: 16 additions & 0 deletions RFR/test_submit.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.libPaths(c("/home/kristinariemer/r_libs/", .libPaths()))
### Submission script for the Fall 2021 EFI Challenge: Phenology
# remotes::install_github("eco4cast/neon4cast")
library(readr)
library(tidyr)
library(dplyr)

# loop to read, clean, score, validate, and submit prediction
version <- c("PEG_FUSION_0", "PEG_FUSION_1")

# Submit
Sys.setenv("AWS_DEFAULT_REGION" = "data",
"AWS_S3_ENDPOINT" = "ecoforecast.org")

aws.s3::put_object(file = file.path(".", version[1], "submissions", "phenology-2022-05-05-PEG_FUSION_0.csv"),
bucket = "submissions")