diff --git a/src/Regridder.jl b/src/Regridder.jl index b99fcca78..05eb62573 100644 --- a/src/Regridder.jl +++ b/src/Regridder.jl @@ -703,7 +703,9 @@ function truncate_dataset( truncated_ds = NCDataset(datafile_truncated, "c") println("file made?") - truncated_ds = write(truncated_ds, view(ds, time = start_id:end_id)) + c = view(ds, time = start_id:end_id) + println(c) + truncated_ds = write(truncated_ds, c) #view(ds, time = start_id:end_id)) println("truncated") close(ds)