-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
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
Labels
No labels