-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Description
Many of our processes that create netCDF files require templates to set global (and variable) attributes. Currently this is being done in a variety of different ways, from multiple sources, often setting the same basic attributes (project, acknowledgements, etc..):
- the Matlab Toolbox has text files like this for global attributes, and imosParameters.txt for variable attributes
- IMOSnetCDF.py uses text files like this for both global and variable attributes. The format used is consistent with CDL, though the files are not complete CDL files. (It also reads a copy of the imosParameters.txt file from the Toolbox, which is out of date now...)
- Loz has a generate_netcdf_att.py script which reads global and variable attributes from a config file
- the ACORN current_generator code simply sets attributes in a acorn_constants.py file.
There may be others too...
There are two issues here:
- We have redundant code doing the same thing in different ways.
- We have redundant versions of the same standard global attributes in several locations.
It would be helpful to come up with a solution that removes, or at least minimises, both of these issues.
Reactions are currently unavailable