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

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

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

Parameters:
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.

Raises:
  • 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.