Hello Nathan and Matthew,
Thank you for answering, I tried Nathan approach and doing that gives me an array of refinement levels. However, the dimension of this array is the same when I do "index.grid_levels" in the whole computational volume and in the sub-region (or smaller data object). And this dimension is equal to the number of grids I get when I so print_stats() of the whole computational volume. I think this is due to the hierarchy of AMR simulations, in other words, AMR level 5 is inside AMR level 4 and so on.
My goal is to obtain the area of each cell in a data object regardless the fact that they have a different level of refinement, so that is why I've been trying to obtain what is the refinement level of every cell in a data object so I can estimate their size and area. Maybe there is another way to do this, do you know how?
Cheers,
_______________________________________________
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org