yt.units.yt_array.YTQuantity.in_units

YTQuantity.in_units(units)

Creates a copy of this array with the data in the supplied units, and returns it.

Parameters:

units : Unit object or string

The units you want to get a new quantity in.

Returns:

YTArray :