Skip to content

Commit

Permalink
Updates to compile functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
natgeo-wong committed Feb 15, 2024
1 parent 91e9e44 commit 1c2d746
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/compile/hourly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function save(
)

@info "$(modulelog()) - Saving compiled $(e5ds.name) $(evar.name) data in $(ereg.geo.name) (Horizontal Resolution: $(ereg.resolution)) ..."
fnc = e5dcnc(e5ds,evar)
fnc = e5dcnc(e5ds,evar,ereg)
fol = dirname(fnc); if !isdir(fol); mkpath(fol) end
if isfile(fnc)
@info "$(modulelog()) - Stale NetCDF file $(fnc) detected. Overwriting ..."
Expand Down
4 changes: 2 additions & 2 deletions src/compile/monthly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function save(
)

@info "$(modulelog()) - Saving compiled $(e5ds.name) $(evar.name) data in $(ereg.geo.name) (Horizontal Resolution: $(ereg.resolution)) ..."
fnc = e5dcnc(e5ds,evar)
fnc = e5dcnc(e5ds,evar,ereg)
fol = dirname(fnc); if !isdir(fol); mkpath(fol) end
if isfile(fnc)
@info "$(modulelog()) - Stale NetCDF file $(fnc) detected. Overwriting ..."
Expand Down Expand Up @@ -210,7 +210,7 @@ function save(
)

@info "$(modulelog()) - Saving compiled $(e5ds.name) $(evar.name) data in $(ereg.geo.name) (Horizontal Resolution: $(ereg.resolution)) ..."
fnc = e5dcnc(e5ds,evar)
fnc = e5dcnc(e5ds,evar,ereg)
fol = dirname(fnc); if !isdir(fol); mkpath(fol) end
if isfile(fnc)
@info "$(modulelog()) - Stale NetCDF file $(fnc) detected. Overwriting ..."
Expand Down

0 comments on commit 1c2d746

Please sign in to comment.