Hi Kuo-Chuan, Matt,<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you end up with artifacts, turning on no_ghost should fix them.  </blockquote>


<div><br></div><div>Rather, setting no_ghost=False should fix the artifacts.  As Matt said, it is now True by default.  </div><div><br></div><div>Sam  </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


I've fixed the documentation as well, but not rebuilt/reuploaded the<br>
new docs yet.<br>
<div><div></div><div><br>
-Matt<br>
<br>
On Thu, Feb 24, 2011 at 6:05 PM, Kuo-Chuan Pan <<a href="mailto:kpan2@astro.illinois.edu" target="_blank">kpan2@astro.illinois.edu</a>> wrote:<br>
> Dear Matt,<br>
> Thanks very much for your suggestion.<br>
> Using the camera interface with no_ghost=True improve the calculation time<br>
> to <5min for N=512!<br>
> (9 level AMR with each block contains 8^3 zones)<br>
> I found for my case, I followed the cooked<br>
> <a href="http://yt.enzotools.org/doc/visualizing/volume_rendering.html#volume-rendering" target="_blank">http://yt.enzotools.org/doc/visualizing/volume_rendering.html#volume-rendering</a><br>
> there is a line:<br>
><br>
> cam = vr.Camera(c, L, W, (N,N), tf)<br>
><br>
> but I have to put pf in the Camera class, otherwise it will not work.<br>
><br>
> cam = Camera(c, L, W, (N,N), tf, pf=pf, no_ghost=True)<br>
><br>
> Not sure, that is a typo in the cookbook or not.<br>
><br>
> Sincerely yours,<br>
> Kuo-Chuan<br>
><br>
> ==================================<br>
> Kuo-Chuan Pan<br>
> Graduate Student<br>
> Department of Astronomy<br>
> University of Illinois at Urbana-Champaign<br>
> Email:<br>
> astroodie[at]<a href="http://gmail.com" target="_blank">gmail.com</a><br>
> kpan2[at]<a href="http://astro.uiuc.edu" target="_blank">astro.uiuc.edu</a><br>
> On Feb 24, 2011, at 4:10 PM, Matthew Turk wrote:<br>
><br>
> Hi Kuo-Chuan,<br>
><br>
> We have seen really long calculation times in the past.  If you use<br>
> the camera interface and specify:<br>
><br>
> no_ghost=True<br>
><br>
> when calling .camera( ... ) it should speed up the rendering time<br>
> considerably.  Try the camera interface, and give a shot at the<br>
> no_ghost option, and see if that improves it?<br>
><br>
> -Matt<br>
><br>
> On Thu, Feb 24, 2011 at 5:05 PM, Kuo-Chuan Pan <<a href="mailto:kpan2@astro.illinois.edu" target="_blank">kpan2@astro.illinois.edu</a>><br>
> wrote:<br>
><br>
> Dear Matt,<br>
><br>
> Thank you so much for your help!<br>
><br>
> Changing the width to pf.domain_right_edge -pf.domain_left_edge seems works<br>
> now!<br>
><br>
> but it is still calculating  (> 2hrs).<br>
><br>
> I thought width=1 refer to the whole domain.<br>
><br>
> After the calculation finished, I will let you know whether it works or not.<br>
><br>
> Thank you so much.<br>
><br>
> Best,<br>
><br>
> Kuo-Chuan<br>
><br>
><br>
><br>
> On Feb 24, 2011, at 3:46 PM, Matthew Turk wrote:<br>
><br>
> Hi Kuo-Chuan,<br>
><br>
> You can also get the full domain by using the unit 'unitary' in the<br>
><br>
> same way you would use other units.  For example,<br>
><br>
> 1.0/pf['unitary']<br>
><br>
> should get you the largest box side length, so it should be the whole<br>
> domain.<br>
><br>
> When I update the recipes and documentation next, I will be more clear<br>
><br>
> that "1.0" refers to a particular method of describing the domain, and<br>
><br>
> I will move it to using "unitary" everywhere instead of the implicit<br>
><br>
> domain size.<br>
><br>
> Let us know how it goes!<br>
><br>
> Best,<br>
><br>
> Matt<br>
><br>
> On Thu, Feb 24, 2011 at 2:33 PM, j s oishi <<a href="mailto:jsoishi@gmail.com" target="_blank">jsoishi@gmail.com</a>> wrote:<br>
><br>
> Hi Kuo-Chuan,<br>
><br>
><br>
> 3.  I set the width = 1 as used in the example code.<br>
><br>
> I think this is your problem. Flash uses cgs units, and so you are<br>
><br>
> trying to volume render a volume of width 1 cm. This is far tinier<br>
><br>
> than a single cell, and so no data (NoneType) is returned to the<br>
><br>
> render.<br>
><br>
> Instead, try setting width = pf.domain_right_edge -<br>
><br>
> pf.domain_left_edge, assuming your parameter file is called pf. This<br>
><br>
> should set the width to be the whole domain.<br>
><br>
> I hope this helps,<br>
><br>
> Jeff<br>
><br>
> _______________________________________________<br>
><br>
> yt-users mailing list<br>
><br>
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
> _______________________________________________<br>
><br>
> yt-users mailing list<br>
><br>
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
> _______________________________________________<br>
><br>
> yt-users mailing list<br>
><br>
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
><br>
> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</div></div></blockquote></div><br><br>