yt.units.yt_array.YTArray.in_units

YTArray.in_units(units)[source]

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 :