Skip to content

Remove unnecessary netcdf variable attributes in favor of cf-compliant ones #529

Description

@cbegeman

As noted in E3SM-Project/polaris#727, Omega currently writes both Units and units as attributes but only the latter should be retained as it is the cf-compliant case.

e.g., ncinfo -v "time" output.nc:

<class 'netCDF4.Variable'>
float64 time(time)
    Description: time
    Name: time
    StdName: time
    Units: seconds since 0001-01-01 00:00:00
    ValidMax: 1e+20
    ValidMin: 0.0
    _FillValue: 9.969209968386869e+36
    calendar: noleap
    long_name: time
    name: time
    standard_name: time
    units: seconds since 0001-01-01 00:00:00
    valid_max: 1e+20
    valid_min: 0.0
unlimited dimensions: time
current shape = (3,)
filling on

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions