From 96afdf32f75ef04bf3e736ea53d562a3ad55761e Mon Sep 17 00:00:00 2001 From: Gabriele Bozzola Date: Tue, 6 Feb 2024 16:13:40 -0800 Subject: [PATCH] Add start date to NetCDF files --- src/diagnostics/netcdf_writer.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diagnostics/netcdf_writer.jl b/src/diagnostics/netcdf_writer.jl index da19677c5c..695ce1edd5 100644 --- a/src/diagnostics/netcdf_writer.jl +++ b/src/diagnostics/netcdf_writer.jl @@ -665,9 +665,9 @@ function write_field!( ) v.attrib["short_name"] = var.short_name v.attrib["long_name"] = diagnostic.output_long_name - v.attrib["short_name"] = var.short_name v.attrib["units"] = var.units v.attrib["comments"] = var.comments + v.attrib["start_date"] = string(integrator.p.start_date) temporal_size = 0 end