podpac.coordinates.clinspace
- podpac.coordinates.clinspace(start, stop, size, name=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 numpydatetime64
. For convenience, podpac automatically converts datetime strings such as'2018-01-01'
todatetime64
.- 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.
- Returns:
Uniformly-spaced 1d coordinates.
- Return type:
- Raises:
ValueError – If the start and stop are not the same size.