[yt-users] saving derived fields once more

Andrew Myers atmyers at berkeley.edu
Thu Mar 14 17:49:12 PDT 2013


Hi Matt,

I just created a set of sample notebooks that illustrate the process.

Saving:

https://hub.yt-project.org/nb/upt2sf

Reading:

https://hub.yt-project.org/nb/ds1g1t

Sorry for not doing this sooner; I hope nobody spent too much time trying
to figure out the process by themselves.

-Andrew

On Thu, Mar 14, 2013 at 2:30 PM, Matthew Turk <matthewturk at gmail.com> wrote:

> Hi Mike and Elizabeth (and Andrew Myers too!),
>
> If any of you would be willing to write up a brief description of
> this for the documentation, it would be greatly appreciated.
>
> Mike, you can do this by setting it on the grids:
>
> for g in pf.h.grids: g.set_field_parameters("favorite_movie", "bttf")
>
> -Matt
>
> On Thu, Mar 14, 2013 at 5:03 PM, Michael Kuhlen <mqk at astro.berkeley.edu>
> wrote:
> > Ah great, thanks Elizabeth (and Matt). One followup, what if my derived
> > field depends on a user-specified field_parameter? I don't know how to
> use
> > set_field_parameter() on the pf object.
> >
> >
> > On Thu, Mar 14, 2013 at 1:24 PM, Elizabeth Tasker
> > <tasker at astro1.sci.hokudai.ac.jp> wrote:
> >>
> >> Hi Mike,
> >>
> >> I had the same issue recently and Matt dug out the links on how to use
> >> them:
> >>
> >>
> >> http://paste.yt-project.org/show/3142/
> >>
> >> and the followup:
> >>
> >> http://paste.yt-project.org/show/3143/
> >>
> >>
> >> Elizabeth
> >>
> >>
> >>
> >> On Mar 14, 2013, at 4:15 PM, Michael Kuhlen <mqk at astro.berkeley.edu>
> >> wrote:
> >>
> >> I'd like to try out the saving derived fields feature that was discussed
> >> here
> >>
> http://lists.spacepope.org/pipermail/yt-users-spacepope.org/2013-February/003311.html
> >>
> >> Unfortunately the merge (PR #416) is one of the ones whose comments are
> >> lost because of a deleted repository. Could someone here explain how to
> use
> >> this functionality, i.e. how to save a derived field to disk by writing
> out
> >> a GDF file? Or point me to the place in the docs where this is
> discussed?
> >>
> >> Thanks!
> >>
> >> Mike
> >>
> >> --
> >> *********************************************************************
> >> *                                                                   *
> >> *  Dr. Michael Kuhlen              Theoretical Astrophysics Center  *
> >> *  email: mqk at astro.berkeley.edu   UC Berkeley                      *
> >> *  cell phone: (831) 588-1468      B-116 Hearst Field Annex # 3411  *
> >> *  skype username: mikekuhlen      Berkeley, CA 94720               *
> >> *                                                                   *
> >> *********************************************************************
> >> _______________________________________________
> >> 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
> >>
> >
> >
> >
> > --
> > *********************************************************************
> > *                                                                   *
> > *  Dr. Michael Kuhlen              Theoretical Astrophysics Center  *
> > *  email: mqk at astro.berkeley.edu   UC Berkeley                      *
> > *  cell phone: (831) 588-1468      B-116 Hearst Field Annex # 3411  *
> > *  skype username: mikekuhlen      Berkeley, CA 94720               *
> > *                                                                   *
> > *********************************************************************
> >
> > _______________________________________________
> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20130314/bc0ffff2/attachment.htm>


More information about the yt-users mailing list