[yt-users] periodic fixed res buffer
Matthew Turk
matthewturk at gmail.com
Thu Jan 13 11:25:01 PST 2011
Hi John,
It wasn't implemented, but it was easy enough to put in. I've
committed and pushed it, in d1985960fc17. You can see the differences
with this script:
--
from yt.mods import *
pf = load("RD0005-mine/RedshiftOutput0005")
sl = pf.h.slice(0, 0.5)
frb1 = FixedResolutionBuffer(sl, (-0.5, 0.5, -0.5, 0.5), (512, 512), True, True)
frb2 = FixedResolutionBuffer(sl, (-0.5, 0.5, -0.5, 0.5), (512, 512),
True, False)
write_image(na.log10(frb1["Density"]), "temp1.png")
write_image(na.log10(frb2["Density"]), "temp2.png")
--
-Matt
On Thu, Jan 13, 2011 at 2:13 PM, John Wise <jwise at astro.princeton.edu> wrote:
> Hi all,
>
> Is it possible to have a fixed resolution buffer with periodic boundary conditions, just like how the projections and slices are handled? I've tried to feed the argument periodic=True to the projection creation routine
>
> prj = pf.h.proj(dim, "Metallicity", weight_field="Density", periodic=True)
> frb = FixedResolutionBuffer(prj, region, (image_size, image_size))
>
> where region is something like (-0.1,0.1,0.5,0.7)
>
> I've also tried setting the projection region to have boundaries within the domain, i.e.
>
> x = [-0.1,0.1] -> x = [0.9,0.1]
>
> but have had no luck. I'm probably missing something, or it's not implemented.
>
> Thanks,
> John
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
More information about the yt-users
mailing list