[yt-users] Accessing data

Stuart Mumford stuart at mumford.me.uk
Wed Nov 6 07:09:34 PST 2013


Okay, so it's one big grid.  You can -- in this *particular* case --

> also just do:
>
> pf.h.grids[0]
>
> which will be the same as a covering grid covering the whole domain,
> since it's the grid that covers the whole domain!  :)
>
> I'd say stay on 2.x for now, since you're still developing the frontend.
>

Horray! I knew there must be a simpler way of doing it! There appears to be
a lack of examples for using yt as a fancy data reader, and accessing
ndarrays, or maybe my google-fu is not what it used to be.

>
> > Also is it possible to get the current h5py file instance from a
> timeseries?
> > I have put some bonus stuff in my files that dosen't speak yt.
>

Not yet, but that's on the roadmap.  Britton has done some great work
> with time series, and we also want to support this type of thing as
> Cactus does something similar with storing info inside the base
> time-series datafile.  You can open a new one and as long as you close
> it, it will get the reference counting correctly.
>

What about if you open one file?


 Accessing hyperslabs versus just grabbing the yt stuff.  I'm not sure
>
I totally understand what you're trying to do, I suppose.
>

Ah right ok, so will yt read the whole array in for each field if I do
ds.h.grids[0]['density'][:,:,-6] fo example?


On the topic of frontend, I really could use some guidance on where to
start with that.

Firstly, I haven't really done anything with it yet, I am still wrapping my
head around using yt and it is less important now I have gone to gdf.
Secondly, should I use 2.x or 3.0 when I start?

Thanks a lot
Stuart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20131106/e9c198d4/attachment.htm>


More information about the yt-users mailing list