Skip to content

Rolling along all Dimension #28

@leanderloew

Description

@leanderloew

Hey, first of all thanks for this implementation! I noticed a small issue:

shifted_x = torch.roll(x, shifts=(-shift_pl, -shift_lat, -shift_lon), dims=(1, 2, 3))

We are rolling along all dimensions, depending on the exact window / shift configuration without padding. Thus it can happen that we "wrap" around not only on longitudes (where it makes sense), but also on latitudes or on pressure levels (where it doesn't make sense). We can fix this by guaranteeing a padding of at least shift size for lat/pl dims.

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