Hi Reju,When you say (grid size), do you mean the number of cells in a single grid? If so, that may be a bit tricky. When you create a data container, a field isn't necessarily evaluated on a grid object, but on the cells contained within the container. Can you explain what it is you are trying to accomplish? There may be another way to do it.BrittonOn Wed, Nov 26, 2014 at 11:20 AM, Reju Sam John <rejusamjohn@gmail.com> wrote:Thanks Britton.If I want to define a field like (grid size)*x , where 'x' is another user defined field, is it possible with the above method?Thank you--On Wed, Nov 26, 2014 at 4:42 PM, Britton Smith <brittonsmith@gmail.com> wrote:Hi Reju,If what you want is to get the size of each AMR grid, then for a given dataset, ds, you can access the list of all AMR grids as ds.index.grids. Then, for example, you can get the shape of the first grid with ds.index.grids[0].shape.BrittonOn Wed, Nov 26, 2014 at 10:45 AM, Reju Sam John <rejusamjohn@gmail.com> wrote:_______________________________________________Dear all,Is it possible to take grid size from an enzo AMR data?Thanks--Reju Sam John
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Reju Sam John
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org