Skip to content

Stacker requires vertical levels are [0, ..., n] #808

@brianhenn

Description

@brianhenn

Enforced here. This prevents training ACE on data where the levels indices start at 1, or are an arbitrary sequence of consecutive integers. For example, taking our current vertically-coarsened atmosphere datasets like ERA5 and training on levels 1-7 (removing stratosphere) is not possible without fully reprocessing the dataset.

This is probably because when establishing the vertical coordinate from the dataset we also assume that eg a_ks and b_ks are zero-indexed, so that the coordinates and integrands align in vertical integrals.

We could relax these requirements and allow increasing sequences of integers for the level names in the stacker, and index-based getters of a_ks and b_k values in the vertical coordinate.

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