Hello Matt,<br><br>Thanks, that seems to have done fixed the issue. I am seeing that the graph looks very different now compared to before. Would forgetting the extra zone change the appearance of the overall plot beyond edge effects?<br>
<br>Thank you,<br>Nathan Butcher<br><br><div class="gmail_quote">On Thu, Jun 14, 2012 at 1:21 PM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Nathan,<br>
<br>
Yup, I agree with your assessment -- there's an edge effect.  You need<br>
one more thing to get the derivative field working; you need to tell<br>
yt to give you an extra zone in each direction.  You can do that by<br>
changing your decorator for the derived field to:<br>
<br>
@derived_field(name = "GravGradientX", validators = [ValidateSpatial(1)])<br>
<br>
I don't believe you need any additional changes inside the source<br>
code.  Let us know if that fixes it!<br>
<br>
-Matt<br>
<div><div class="h5"><br>
On Thu, Jun 14, 2012 at 1:14 PM, Nathan Butcher <<a href="mailto:butchernate@gmail.com">butchernate@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> Using an Enzo dataset, I have written a function to find the derivative in<br>
> the x-direction of a field. When I try to plot the derivative, I see lines<br>
> that throughout the plot that I'm guessing are due to the edges of cells.<br>
> The attached plot is a slice of the x-direction derivative of the<br>
> PotentialField viewed down the x-axis, but this error appears in plots for<br>
> density and pressure as well. I am new to using yt, and I am not sure what<br>
> is causing this.<br>
><br>
> Thank you,<br>
> Nathan Butcher<br>
><br>
</div></div>> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org">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>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">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>
</blockquote></div><br>