Skip to content

addmeta and numerical attributes #97

@joshuatorrance

Description

@joshuatorrance

Numerical attributes (i.e. not strings) are allowed in netCDF files and work fine in yaml files with addmeta but do not work with addmeta's templating.

With the incoming addition of geospatial bounds to the ACCESS data spec we need a solution for numbers.

Since we don't do any jinja preprocessing any templated attribute must be specified in yaml files as a string.

The best solution I've thought of so far is adding some more magic for addmeta. We could add a bogus jinja filter | number - number is not a valid jinja filter so it won't collide with any other jinja expressions. addmeta can check for this 'filter' and turn the result into a number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions