bifrost_stagger
File Purpose: Bifrost Stagger (align inputs to grid)
STAGGER ORDERS DEFINED HERE:
Functions
|
return slice(start_shift, end_shift), but if end_shift is 0 use None instead. |
|
move x (int) axis to the front of array (numpy array), by swapping with 0th axis. |
|
return tuple to pass to np.transpose to swap axis 0 with axis x (int). |
Classes
manages stagger stuff for BifrostCalculator |
|
|
|
|
class to do staggering along 'x', 'y', or 'z', axes. |
|
manages pre-padding for stagger operations in 'x', 'y', 'z' dimensions. |
|
class to do staggering along an axis. |