[yt-users] covering grids

Nathan Goldbaum nathan12343 at gmail.com
Tue Nov 10 15:16:57 PST 2015


On Tue, Nov 10, 2015 at 4:16 PM, Dave Semeraro <semeraro at tacc.utexas.edu>
wrote:

> Hi YT,
>
>
>
> I have an enormous Enzo file that I want to volume render. It takes way
> too long to render it at full resolution. I have extracted a covering grid
> and dumped the raw data to a file. Then I read that data into another
> rendering engine (Boo) and rendered it.
>

You could also do this in yt by reloading the data using load_uniform_grid
or by volume rendering a subvolume.


> What I want to do is volume render the covering grid. I generate the
> covering grid like this:
>
>
>
> max_level=1
>
>
>
> lowerleft = [0.,0.,0.]
>
> datasetname = "/work/01197/semeraro/Cooldata"
>
>
>
> ds = yt.load(datasetname)
>
>
>
> cg =
> ds.covering_grid(max_level,lowerleft,ds.domain_dimensions*2**max_level)
>
>
>
> Then I try to do something like this:
>
>
>
> min,max = cg.quantities.extrema(‘Density’)
>
>
>
> and I get a stack trace ending in
>
>
>
>   File
> "/work/01197/semeraro/maverick/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py",
> line 578, in selector
>
>     raise YTDataSelectorNotImplemented(self._type_name)
>
> yt.utilities.exceptions.YTDataSelectorNotImplemented: Data selector
> 'covering_grid' not implemented.
>

Can you just do cg['Density'].min(), cg['Density'].max()? covering_grid is
a construction data container compared to a selection data container, so I
think it's actually an inconsistency in the yt data object API that we're
exposing the derived quantities like this.


>
>
> Obviously I cant do that. So what am I doing wrong here?
>
>
>
> Thanks, Dave
>
>
>
> Oh and I am making a movie for SC15 and if I get this figured out it will
> run in the TACC booth.
>

Cool, I will be there as well. I'll have to check it out :)


>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20151110/c50d148d/attachment.html>


More information about the yt-users mailing list