[yt-users] PPV cube

David Collins dcollins4096 at gmail.com
Thu Mar 3 06:16:23 PST 2016


Hi, John-

When I get the PPVCube object, one can index it like a 3d numpy array.  I
realize now that it's more than just a simple 3d numpy array, but that's
the behavior I'm looking for.  When I load it with yt.load, I get all the
more general yt objects like all_data, but those are harder to slice up if
I have, say, a 2d boolean mask.

d.



>
> Best,
>
> John
>
> John ZuHone
> Harvard-Smithsonian Center for Astrophysics
>
> 60 Garden St., MS-67
> Cambridge, MA 02138
> (w) 617-496-1816
> (m) 781-708-5004
> jzuhone at cfa.harvard.edu
> jzuhone at gmail.com
> http://www.jzuhone.com
>
> On Mar 2, 2016, at 11:15 AM, David Collins <dcollins4096 at gmail.com> wrote:
>
> Hi, Everybody!
>
> The PPV cube functionality is completely sweet.  Thanks so much!
>
> I have one question about it.  I built my cube as described by the docs,
> wrote to a fits file, then read the fits file with yt.load.  If I then want
> the original dumb three dimensional cube, what's the simplest way to get
> back to it?  I usually use
> >>> ds.index.grids
> when I want the raw data, but that gives me an odd list of 27 FITS_grid
> objects.  Is covering_grid the way to get back to the raw data in this
> sense?
>
> For this application, I'm working with some other packages that make it
> easier for me to do mask operations on the cube, rather than use yt regions
> as I normally would.
>
> d.
>
>
>
> --
> -- Sent from a computer.
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>


-- 
-- Sent from a computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160303/7b2610ee/attachment.htm>


More information about the yt-users mailing list