Commits

J.S. Oishi committed 959185f

added allsky test from the website

  • Participants
  • Parent commits 57c5626

Comments (0)

Files changed (1)

File scripts/allsky.py

+from yt.mods import *
+import yt.visualization.volume_rendering.camera as camera
+pf  = load("data/enzo_tiny_cosmology/DD0042/DD0042")
+
+# Centered at [0.5, 0.5, 0.5], out to 50 Mpc.
+cam = camera.HEALpixCamera([0.5, 0.5, 0.5], 50./pf['mpc'], 
+                           nside = 64, pf = pf,
+                           log_fields = [False])
+bitmap = cam.snapshot("allsky.png")