Skip to content

Commit

Permalink
implementing parallel / non parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
CaitlinA committed Dec 13, 2023
1 parent 446550f commit 2cf3e0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions main/implementation/01.1_create-netcdfs.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# ------------------------------------------------------------------------------
# Step 1 -----------------------------------------------------------------------
# ------------------------------------------------------------------------------
Output_folder <- paste0('projects/05-Setup-futureMonthly-netCDFs/Outputs/Test_', format(currDate, "%Y%m%d"), '/')
Output_folder <- paste0('./outputs/', format(currDate, "%Y%m%d"), '/')

if (!file.exists(Output_folder)){
dir.create(Output_folder)
Expand Down Expand Up @@ -186,7 +186,7 @@ time_values_annually_p <- as.numeric(year(c1))
# 3) read in other information ------------------------------------------------
# -----------------------------------------------------------------------------

attributes <- read.csv('projects/05-Setup-futureMonthly-netCDFs/nc_atts-all.csv')
attributes <- read.csv('./main/implementation/nc_atts-all.csv')
names <- attributes$short_name

for(nc in 1:100){
Expand Down Expand Up @@ -286,6 +286,6 @@ for(nc in 1:100){

}

comm.print("creation done")
if(!interactive() & isParallel) comm.print("creation done")


4 changes: 2 additions & 2 deletions main/implementation/01.2_input-values-into-ncdfs.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ for(n in seq_along(netCDFnames)){
}

# ecological variables ----------------------------------------------------------
netCDFnames <- c(attributes$short_name)[97:100]
varName <- c(attributes$var_name)[97:100]
#netCDFnames <- c(attributes$short_name)[97:100]
#varName <- c(attributes$var_name)[97:100]

0 comments on commit 2cf3e0c

Please sign in to comment.