NOAA-GFDL / FRE-NCtools

Tools for manipulating and creating netCDF inputs for FMS managed models
GNU Lesser General Public License v3.0
20 stars 28 forks source link

timeaveraging tool should use standard time variables only #273

Closed ceblanton closed 8 months ago

ceblanton commented 9 months ago

Is your feature request related to a problem? Please describe. FMS history output has traditionally included time bounds metadata in a non-standard convention. i.e.

The problem is that there is also a standard way to specify the same time bounds information, specified in the CF standards.

Describe the solution you'd like

  1. The timeaveraging tool should read and use the CF standard time:bounds attribute to find the time bounds variable (and not use the nonstandard average_(T1|T2|DT) variables.
  2. The timeaveraging tool should write output time bounds in the standard convention (and not write the nonstandard variables)

Describe alternatives you've considered Continuing to output duplicate time bounds information is a bad idea, and the diag manager rewrite is a good opportunity to remove unneeded legacy conventions.

Additional context https://cfconventions.org/Data/cf-conventions/cf-conventions-1.11/cf-conventions.html#cell-boundaries