In [ ]:
from __future__ import print_function
import yt
import numpy as np
1. Load the `"virgo_novisc.0054.gdf"` dataset from the `"data"` directory.
In [ ]:
2. Create a sphere object centered on the domain center. Use the shorthand `"c"` for the center. Give it a radius of 200 kpc.
In [ ]:
3. Create a second sphere object at the location ``[0.1, -0.2, 0.3]``. Give it a radius of 0.4 Mpc.
In [ ]:
4. Query the sphere object for the density and calculate the mean using `np.mean`.
In [ ]: