Commit 6477ec11 authored by Richard Cornes's avatar Richard Cornes
Browse files

Create ouput directory if missing

parent 37ffb159
......@@ -163,6 +163,7 @@ for ( year in my_args[1]:my_args[2] ) {
}
}
if(!dir.exists(out_grid_dir)) dir.create(out_grid_dir)
saveRDS(op.ht,paste0(out_grid_dir,"deg5_ht_",year,".Rda"))
saveRDS(op.sd,paste0(out_grid_dir,"deg5_sd_",year,".Rda"))
saveRDS(op.num,paste0(out_grid_dir,"deg5_sd_",year,".Rda"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment