podpac.coordinates.clinspace

podpac.coordinates.clinspace(start, stop, size, name=None, ctype=None)[source]

Create uniformly-spaced 1d or stacked coordinates with a start, stop, and size.

For numerical coordinates, the start and stop are converted to float. For time coordinates, the start and stop are converted to numpy datetime64. For convenience, podpac automatically converts datetime strings such as '2018-01-01' to datetime64.

Parameters
  • start (float, datetime64, datetime, str, tuple) – Start coordinate for 1d coordinates, or tuple of start coordinates for stacked coordinates.

  • stop (float, datetime64, datetime, str, tuple) – Stop coordinate for 1d coordinates, or tuple of stop coordinates for stacked coordinates.

  • size (int) – Number of coordinates.

  • name (str, optional) – Dimension name.

  • ctype (str, optional) – Coordinate type (point, midpoint, left, or right)

Returns

Uniformly-spaced 1d coordinates.

Return type

UniformCoordinates1d

Raises

ValueError – If the start and stop are not the same size.