diff --git a/artifacts/artifact_funcs.jl b/artifacts/artifact_funcs.jl index 7ae063fdf..15d078920 100644 --- a/artifacts/artifact_funcs.jl +++ b/artifacts/artifact_funcs.jl @@ -73,13 +73,14 @@ end function artifact_data(datapath_full, name, datapath_trunc, date0, time_start, time_end, comms_ctx) datafile = joinpath(datapath_full, string(name, ".nc")) - println(date0) + println(date0) println(time_start) - println(time_end) - println(datafile) - println(datapath_trunc) - println(name) + println(time_end) + println(datafile) + println(datapath_trunc) + println(name) println(comms_ctx) - datafile_truncated = Regridder.truncate_dataset(date0, time_start, time_end, datafile, datapath_trunc, name, comms_ctx) + datafile_truncated = + Regridder.truncate_dataset(date0, time_start, time_end, datafile, datapath_trunc, name, comms_ctx) return datafile_truncated end diff --git a/src/Regridder.jl b/src/Regridder.jl index 77bec9579..4395dae14 100644 --- a/src/Regridder.jl +++ b/src/Regridder.jl @@ -704,7 +704,7 @@ function truncate_dataset( println("----------------------------") ds_truncated = NCDataset(datafile_truncated, "c") - ds_truncated = write(truncated_ds, view(ds, time = start_id:end_id)) + ds_truncated = write(ds_truncated, view(ds, time = start_id:end_id)) println("truncated") close(ds)