xdas.coordinates.InterpCoordinate.from_block#

classmethod InterpCoordinate.from_block(start, size, step, dim=None, dtype=None)[source]#

Construct a coordinate from a start value, element count, and step size.

Parameters:
  • start (scalar) – Value of the first element.

  • size (int) – Number of elements.

  • step (scalar) – Spacing between consecutive elements.

  • dim (str, optional) – Dimension name.

  • dtype (dtype-like, optional) – Desired dtype for the coordinate values.

Returns:

A new coordinate instance of this subclass.

Return type:

Coordinate