[yt-users] Inverted image
Massimo Gaspari
gaspmax at hotmail.com
Wed May 16 09:40:18 PDT 2012
Here it is:
from yt.mods import *
axis = 0
xCenter = 0.55548e24
yCenter = 0.55548e24
zCenter = 0.
res = [2048, 4096]
fn = "chk_0000"
pf = load(fn)
proj = pf.h.proj(axis, "Temperature", None)
frb1 = FixedResolutionBuffer(proj, (0., xCenter*2., 0., xCenter), res)
write_image(na.log10(frb1["Temperature"]), "output.png")
I am in the stable branch:
c23cb264f04c+ (stable)
Thanks,
Max
From: gaspmax at hotmail.com
To: yt-users at lists.spacepope.org
Subject: Inverted image
Date: Wed, 16 May 2012 18:13:39 +0200
Hi guys,
After a projection and a FixedResolutionBuffer like this:
proj = pf.h.proj(axis, "Temperature", None)frb1 = FixedResolutionBuffer(proj, (xmin,xmax,ymin,ymax), res)write_image(na.log10(frb1["Temperature"]), "output.png")
I see an inverted image (my computational box is half a cube, z>0 only):http://i.imgur.com/AqWKD.png
Is the problem in write_image? Or inside the projection/FRB?How to fix this (without transpose)?
Thanks,
Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20120516/388e0f3d/attachment.html>
More information about the yt-users
mailing list