[yt-users] arbitrary grid and user-defined field

Matthew Turk matthewturk at gmail.com
Tue Aug 8 04:05:16 PDT 2017


Hi Stephanie,

What's the error you get?

Matt

On Aug 8, 2017 12:15 AM, "Stephanie Tonnesen" <stonnes at gmail.com> wrote:

> Hi yt-users!
>
> I have a simulation run on Enzo that has a best resolution cell size of
> ~40 pc.  I would like to be able to compare my run to observations that are
> at a resolution of ~200 pc.  I want to save a bunch of data in a fits file
> with that resolution.  It looks like the way to do this is to create an
> arbitrary_grid object.  If someone has a better method, please tell me!
>
> So I have my artbitrary_grid object, and I am making arrays of fields:
>
> xp = arbgridobj['x']
> ...etc....
>
> xp = np.array(xp)
> ...etc...
>
> my code keeps crashing when I try to get a user-defined field for my
> arbitrary_grid object.  If I try to get the field for a cut_region my code
> runs just fine.  Is user-defined fields + arbitrary_grid objects just
> something that yt can't do or is there some different way to make this
> happen than in a cut_region?
>
> Thanks!!
>
> Best,
> Stephanie
>
> --
> Dr. Stephanie Tonnesen
> Alvin E. Nashman Postdoctoral Fellow
> Carnegie Observatories, Pasadena, CA
> stonnes at gmail.com
>
> _______________________________________________
> 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/20170808/e9662b5c/attachment.htm>


More information about the yt-users mailing list