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 3c09651 commit dada6a4Copy full SHA for dada6a4
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