spectrochempy.arange
- arange(start=0, stop=None, step=None, dtype=None, **kwargs)[source]
Return evenly spaced values within a given interval.
Values are generated within the half-open interval [start, stop).
- Parameters:
start (number, optional) – Start of interval. The interval includes this value. The default start value is 0.
stop (number) – End of interval. The interval does not include this value, except in some cases where step is not an integer and floating point round-off affects the length of out. It might be prefereble to use inspace in such case.
step (number, optional) – Spacing between values. For any output out, this is the distance between two adjacent values, out[i+1] - out[i]. The default step size is 1. If step is specified as a position argument, start must also be given.
dtype (dtype) – The type of the output array. If dtype is not given, infer the data type from the other input arguments.
**kwargs – Keywords argument used when creating the returned object, such as units, name, title, …
- Returns:
arange – Array of evenly spaced values.
See also
linspace
Evenly spaced numbers with careful handling of endpoints.
Examples
>>> scp.arange(1, 20.0001, 1, units='s', name='mycoord') NDDataset: [float64] s (size: 20)