[Yt-svn] yt-commit r880 - trunk/examples

britton at wrangler.dreamhost.com britton at wrangler.dreamhost.com
Wed Nov 5 10:52:36 PST 2008


Author: britton
Date: Wed Nov  5 10:52:36 2008
New Revision: 880
URL: http://yt.spacepope.org/changeset/880

Log:
Adding sample parameter file for HaloProfiler and an example script to run it.

5 November, 2008

Britton Smith



Added:
   trunk/examples/runHaloProfiler.py
   trunk/examples/sample_halo_profiler.par

Added: trunk/examples/runHaloProfiler.py
==============================================================================
--- (empty file)
+++ trunk/examples/runHaloProfiler.py	Wed Nov  5 10:52:36 2008
@@ -0,0 +1,11 @@
+from yt.mods import *
+from HaloProfiler import *
+
+# Instantiate HaloProfiler for this dataset and load parameters from sample_halo_profiles.par.
+q = HaloProfiler("/Users/britton/EnzoRuns/cc_run/DD0232/DD0232","sample_halo_profiles.par")
+
+# Make profiles of all halos in dataset.
+q.makeProfiles()
+
+# Make projections of all halos in dataset.
+q.makeProjections()

Added: trunk/examples/sample_halo_profiler.par
==============================================================================
--- (empty file)
+++ trunk/examples/sample_halo_profiler.par	Wed Nov  5 10:52:36 2008
@@ -0,0 +1,33 @@
+# Sample HaloProfiler parameter file.
+
+ProfileOutputDir = radial_profiles
+
+ProjectionOutputDir = projections
+
+# Name of hop output file
+HopOutputFile = HopAnalysis.out
+
+# Name of output file with virial quantities
+VirialQuantitiesOutputFile = VirialQuantities.out
+
+# Minimum virial mass in solar masses
+VirialMassCutoff = 1e14
+
+# Critical overdensity for virial cutoff.
+VirialOverdensity = 200
+
+n_bins = 64
+
+# 1D radial profiles
+# Syntax is Profile[Field] = Weight_Field,Accumulate (True or False)
+Profile[CellVolume] = None,True
+Profile[TotalMassMsun] = None,True
+
+# Projections of individual halos
+# Syntax is Projection[Field] = Weight_Field
+Projection[Density] = None
+Projection[Temperature] = Density
+
+ProjectionWidth = 8.0 # Mpc
+
+ProjectionResolution = 800
\ No newline at end of file



More information about the yt-svn mailing list