Skip to content

Commit 17441ed

Browse files
committed
Make directory to save ILAMB files first
1 parent 98e90d4 commit 17441ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

experiments/ilamb/ilamb_conversion.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ Given the directory `output_dir` with NetCDF files produced by ClimaDiagnostics,
381381
create NetCDF files compatible with ILAMB in the directory `save_dir`.
382382
"""
383383
function make_compatible_with_ILAMB(output_dir, save_dir)
384+
!ispath(save_dir) && mkpath(save_dir)
384385
nc_filepaths = find_netcdf_files_for_ilamb(output_dir)
385386
for nc_filepath in nc_filepaths
386387
make_ilamb_netcdf_file(nc_filepath, save_dir)

0 commit comments

Comments
 (0)