Commits

Matthew Turk committed 9e663b3

Adding more scripts.

Comments (0)

Files changed (5)

scripts/create_sphere.py

 sp = pf.h.sphere('max', 1.0/pf["mpc"])
 
 print sp["Density"]
+print sp["Density"].max(), sp["Density"].min()

scripts/halo_plotting.py

+from yt.mods import *
+
+pf = load("DD0023/DD0023") # load data
+halos = HaloFinder(pf)
+
+pc = PlotCollection(pf, [0.5, 0.5, 0.5])
+p = pc.add_projection("Density", 1, "Density")
+p.modify["hop_circles"](halos)
+
+pc.save()

scripts/sphere_angular_momentum.py

+from yt.mods import *
+pf = load("DD0087/DD0087")
+sp = pf.h.sphere("max", 100.0/pf['au'])
+L = sp.quantities["AngularMomentumVector"]()
+print "Angular Momentum Vector:", L

scripts/sphere_quantities.py

+from yt.mods import *
+pf = load("DD0023/DD0023")
+sp = pf.h.sphere('max', 1.0/pf["mpc"])
+
+print sp.quantities.keys()
 \end{frame}
 
 \bigsimple{What \textit{can} \yt{} support?}
-\bigsimple{What \textit{can} \yt{} support?\\\smaller{(right now)}}}
 
 \begin{frame}[fragile]{Starting Up \yt{}}
 \begin{itemize}
 \fullimage{DD0023_Slice_z_Density.png}
 
 \begin{frame}[fragile,t]{}
+\small
+<<d['scripts/halo_plotting.py|fn|pyg|l']>>
+\tiny
+<<d['scripts/halo_plotting.py|fn|py|pyg|l']>>
+\end{frame}
+
+\fullimage{DD0023_Projection_y_Density_Density.png}
+
+\begin{frame}[fragile,t]{}
 \tiny
 <<d['scripts/inspect_grids.py|fn|pyg|l']>>
 \hline
 
 \begin{frame}[fragile,t]{}
 \tiny
+<<d['scripts/create_sphere.py|fn|pyg|l']>>
+\hline
+<<d['scripts/create_sphere.py|fn|py|pyg|l']>>
+\end{frame}
+
+\begin{frame}[fragile,t]{}
+\tiny
 <<d['scripts/sphere_mass.py|fn|pyg|l']>>
 \hline
 <<d['scripts/sphere_mass.py|fn|py|pyg|l']>>
 \end{frame}
 
+\begin{frame}[fragile,t]{}
+\tiny
+<<d['scripts/sphere_quantities.py|fn|pyg|l']>>
+\hline
+<<d['scripts/sphere_quantities.py|fn|py|pyg|l']>>
+\end{frame}
+
+\begin{frame}[fragile,t]{}
+\tiny
+<<d['scripts/sphere_angular_momentum.py|fn|pyg|l']>>
+\hline
+<<d['scripts/sphere_angular_momentum.py|fn|py|pyg|l']>>
+\end{frame}
+
+\begin{frame}[fragile,t]{}
+\end{frame}
+
 \end{document}