[Yt-svn] yt-commit r1018 - trunk/examples
britton at wrangler.dreamhost.com
britton at wrangler.dreamhost.com
Tue Dec 16 16:46:46 PST 2008
Author: britton
Date: Tue Dec 16 16:46:46 2008
New Revision: 1018
URL: http://yt.spacepope.org/changeset/1018
Log:
Changed sample script and parameter file to match changes in the light cone.
Modified:
trunk/examples/makeLightCone.py
trunk/examples/sample_lightcone.par
Modified: trunk/examples/makeLightCone.py
==============================================================================
--- trunk/examples/makeLightCone.py (original)
+++ trunk/examples/makeLightCone.py Tue Dec 16 16:46:46 2008
@@ -18,13 +18,11 @@
# Make a density light cone.
# The plot collection is returned so the final image can be
# customized and remade.
-pc = q.ProjectLightCone('Density')
-
-# Save the light cone stack to an hdf5 file.
-q.SaveLightConeStack()
+# Save the data to an hdf5 file and save images of the individual slices.
+pc = q.ProjectLightCone('Density',save_stack=True,save_slice_images=True)
-# Make a weighted light cone projection.
-pc = q.ProjectLightCone('Temperature',weight_field='Density')
+# Make a weighted light cone projection and save the stack to an hdf5 file.
+pc = q.ProjectLightCone('Temperature',weight_field='Density',save_stack=True)
# Save the temperature stack to a different file.
q.SaveLightConeStack(file='light_cone_temperature.h5')
@@ -39,11 +37,11 @@
# Save the recycled solution.
q.SaveLightConeSolution(file='light_cone_recycled.out')
+# Change the file prefix so that new light cones will not over-write the old ones.
+q.lightConeParameters['OutputPrefix'] = "LightCone_NewSeed"
+
# Make new projection with the recycled solution.
pc = q.ProjectLightCone('Density')
-# Save the stack.
-q.SaveLightConeStack(file='light_cone_recycled.h5')
-
# Rerandomize the light cone solution with an entirely new solution.
q.RerandomizeLightConeSolution(8675309,recycle=False)
Modified: trunk/examples/sample_lightcone.par
==============================================================================
--- trunk/examples/sample_lightcone.par (original)
+++ trunk/examples/sample_lightcone.par Tue Dec 16 16:46:46 2008
@@ -7,7 +7,6 @@
RandomSeed = 123456789
UseMinimumNumberOfProjections = 1
-SaveLightConeSlices = 1
OutputDir = LC
OutputPrefix = LightCone
\ No newline at end of file
More information about the yt-svn
mailing list