[yt-users] Odd array size issue

Elizabeth Tasker tasker at astro1.sci.hokudai.ac.jp
Fri Jun 1 07:26:46 PDT 2012


Hi, 

I have a smoothed covering grid object:

In [2]: print scg
AMRSmoothedCoveringGrid (GR_Enzo2_128amr5_zeus_turb_psupp_rr_0001): level=3, left_edge=[  0.  31.   0.], right_edge=[ 64.  33.  64.], ActiveDimensions=[2048   64 2048]

which should have dims [2048, 64, 2048] as it claims above. Yet:

In [5]: print scg["Density"].shape
(256, 8, 256)

Any idea why it's downsized? 

Oddly,  this code (that creates the above) worked fine on a different machine but unfortunately, I inadvertently trashed it's OS earlier in the week. Both systems (i.e. this system that did the above and the one that is now a deadman) are linux.

Any ideas?

Elizabeth


More information about the yt-users mailing list