[yt-svn] commit/cookbook: MatthewTurk: Fixing recipe with covering grid

Bitbucket commits-noreply at bitbucket.org
Mon Mar 19 10:51:06 PDT 2012


1 new commit in cookbook:


https://bitbucket.org/yt_analysis/cookbook/changeset/ec107f1da0b0/
changeset:   ec107f1da0b0
user:        MatthewTurk
date:        2012-03-19 18:50:56
summary:     Fixing recipe with covering grid
affected #:  1 file

diff -r 222cfc41bc3ec285500096b9c2c7aeaa13e0c5f6 -r ec107f1da0b0b96fa968a64ff5ac013da367d440 recipes/extract_fixed_resolution_data.py
--- a/recipes/extract_fixed_resolution_data.py
+++ b/recipes/extract_fixed_resolution_data.py
@@ -19,9 +19,10 @@
 # want
 cube = pf.h.covering_grid(2, # The level we are willing to extract to; higher
                              # levels than this will not contribute to the data!
-                          # Now we set our spatial extent...
-                          left_edge=[0.0, 0.0, 0.0], 
-                          right_edge=[1.0, 1.0, 1.0],
+                          # Now we set our spatial extent, which is in integer
+                          # coordinates with respect to the level above (i.e.,
+                          # in terms of left_edge + index*dx)
+                          left_edge=[0, 0, 0], 
                           # How many dimensions along each axis
                           dims=[DIMS,DIMS,DIMS],
                           # And any fields to preload (this is optional!)

Repository URL: https://bitbucket.org/yt_analysis/cookbook/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list