mom-ocean / MOM5

The Modular Ocean Model
https://mom-ocean.github.io/
GNU Lesser General Public License v3.0
82 stars 95 forks source link

Add global metadata attributes to diagnostic output files #396

Open aidanheerdegen opened 1 month ago

aidanheerdegen commented 1 month ago

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:

https://github.com/payu-org/payu/issues/510

FMS1 has the mpp_write_meta routine that could be used for this purpose.

Has anyone done anything of this nature before?