atleast_1d¶
- 
metpy.units.atleast_1d(*arrs)[source]¶
- Convert inputs to arrays with at least one dimension. - Scalars are converted to 1-dimensional arrays, whilst other higher-dimensional inputs are preserved. This is a thin wrapper around - numpy.atleast_1dto preserve units.- Parameters
- arrs (arbitrary positional arguments) – Input arrays to be converted if necessary 
- Returns
- pint.Quantity – A single quantity or a list of quantities, matching the number of inputs.