[ART] Trying to See Highest Resolution Regions
Hello all! I am trying to find the highest resolution regions in an ART simulation. I have tried using the method outlined here http://yt-project.org/doc/analyzing/filtering.html under cut regions. I have attempted to used a filter of the 'level', 'grid_level' field to find only regions where the grid level is 12, and apply it. I have a feeling I am making a mistake with the yt plotting functions. Here is my sample code I am using, which I just modified from the filtering page. https://bpaste.net/show/1c58d3137d7f And here is the error I am getting: https://bpaste.net/show/8cb6c1c61f49 Now the grid_ad is filled with a bunch of 12 level grids, so I am not sure how the full of nan is happening. Is it something I am doing wrong? I can attach the generated images as well, but am not sure the best way to do that. Thanks!
Hi Sean, What I *think* is happening is this -- 1) You're filtering but then that doesn't turn anything up for some reason 2) The image buffer is filled with NaNs initially, and then nothing gets deposited What I'd suggest is to do something slightly different. First, check that the levels are the way they seem: print(obj.min("grid_level"), obj.max("grid_level")) Then you can create a new object and set the min_level and max_level attributes: new_obj = ds.all_data() new_obj.min_level = new_obj.max_level = obj.max("grid_level") and then use new_obj as input to your projection. On Mon, Feb 18, 2019 at 2:13 PM Sean Larkin via yt-users < yt-users@python.org> wrote:
Hello all!
I am trying to find the highest resolution regions in an ART simulation. I have tried using the method outlined here http://yt-project.org/doc/analyzing/filtering.html under cut regions. I have attempted to used a filter of the 'level', 'grid_level' field to find only regions where the grid level is 12, and apply it. I have a feeling I am making a mistake with the yt plotting functions.
Here is my sample code I am using, which I just modified from the filtering page. https://bpaste.net/show/1c58d3137d7f
And here is the error I am getting: https://bpaste.net/show/8cb6c1c61f49
Now the grid_ad is filled with a bunch of 12 level grids, so I am not sure how the full of nan is happening. Is it something I am doing wrong? I can attach the generated images as well, but am not sure the best way to do that.
Thanks! _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
participants (2)
-
Matthew Turk
-
sflarkin@ucsc.edu