yt.data_objects.image_array.ImageArray.from_astropy

ImageArray.from_astropy(arr)

Creates a new YTArray with the same unit information from an AstroPy quantity arr.