-
Notifications
You must be signed in to change notification settings - Fork 270
Description
ACCESS-NRI would like the capability to embed global metadata attributes into diagnostic ouput files.
Specifically we want to add unique tracking IDs to model diagnostic (and tracer) outputs to create a full experiment provenance chain that would enable users to discover experiment metadata.
Ideally there would be a config file where any global attribute could be set. A fallback option would be dedicated namelist options for setting specific global metadata attributes.
For background see this related issue for the tool we're using to run our models:
From the docs it appears quite straightforward:
For MOM6 Global attributes can be written by calling register_global_attribute. Scalar and 1d real and integers (32 and 64 bit) and scalar string values are supported
call register_global_attribute(fileobj, "global_attribute_name", value)
Is it already possible? If not has anyone done anything of this nature before so there is a design pattern we could follow?