Skip to content

Commit

Permalink
Add short_name to NetCDF attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbozzolo committed Dec 13, 2023
1 parent f1bdbac commit b292770
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/diagnostics/netcdf_writer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ function write_field!(
("time", dim_names...),
deflatelevel = writer.compression_level,
)
v.attrib["short_name"] = var.short_name
v.attrib["long_name"] = diagnostic.output_long_name
v.attrib["units"] = var.units
v.attrib["comments"] = var.comments
Expand Down

0 comments on commit b292770

Please sign in to comment.