Skip to content

Use as a look up table #110

@znichollscr

Description

@znichollscr

One of the proposed uses of the variable registry is to use it as a look up table. For example, given a branded variable name, I would like to look up the cell methods and dimensions.

At first this seems innocuous. In practice, it introduces a uniqueness constraint (I think): for a given branded variable name, there must be only one valid value of cell methods and dimensions (i.e. the combination of branded variable name, cell methods and dimensions must be unique). With the current branding algorithm, this is not necessarily true because cell methods can have stuff in brackets which the algorithm doesn't look at, so we may run into issues if we don't do a bit more thinking about this (fortunately, with the current data request, this uniqueness is there by coincidence, as confirmed here znicholls/CMIP-branded-variable-mapper#34 (comment)).

So, if we do want to support such look up table use, then we need:

  1. identify the look ups which should be unique i.e. provide unambiguous answers
  2. add tests to ensure that this uniqueness constraint is respected as we add new information to the registry

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