yt.units.yt_array.YTArray.convert_to_units

YTArray.convert_to_units(units)[source]

Convert the array and units to the given units.

Parameters:

units : Unit object or str

The units you want to convert to.