tensorstore.IndexTransform.translate_to[self, origins: Sequence[int | None] | int | None] IndexTransform

Returns a new view with origin translated to the specified origin.

This is equivalent to self[ts.d[:].translate_to[origins]].

origins: Sequence[int | None] | int | None

The new origin for each dimensions. May also be a scalar, e.g. 5, in which case the same origin is used for all dimensions. If None is specified for a given dimension, the origin of that dimension remains unchanged.

  • IndexError – If the number origins does not match the number of dimensions.

  • IndexError – If any of the selected dimensions has a lower bound of -inf.