Right now in functions that generates organized datasets (e.g., compute_Sv, compute_MVBS, etc), we add attributes in an ad-hoc way and missed many of them. It seems a good idea to just have a YAML or similar to list the corresponding long_name, units, and other attributes for specific variables, and in functions that generates organized datasets, always pass the dataset through a function that calls the YAML to add attributes -- so like a decorator?
Right now in functions that generates organized datasets (e.g.,
compute_Sv,compute_MVBS, etc), we add attributes in an ad-hoc way and missed many of them. It seems a good idea to just have a YAML or similar to list the corresponding long_name, units, and other attributes for specific variables, and in functions that generates organized datasets, always pass the dataset through a function that calls the YAML to add attributes -- so like a decorator?