We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba62453 commit 29e7a8cCopy full SHA for 29e7a8c
lib/iris/coords.py
@@ -2334,7 +2334,10 @@ def from_regular(
2334
bounds values will be defined. Defaults to False.
2335
2336
"""
2337
- points = (zeroth + step) + step * np.arange(count, dtype=np.float32)
+ start = zeroth + step
2338
+ end = zeroth + (count * step)
2339
+ points = np.linspace(start, end, num=count, dtype=np.float32)
2340
+
2341
_, regular = iris.util.points_step(points)
2342
if not regular:
2343
points = (zeroth + step) + step * np.arange(
0 commit comments