<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi David, Everybody,<br>
<br>
Ah, covering grids were exactly what I was looking for. Thanks! (I'm
not an Enzo user, unfortunately.)<br>
<br>
Best,<br>
Jonah<br>
<br>
<div class="moz-cite-prefix">On 15-06-16 10:02 AM, David Collins
wrote:<br>
</div>
<blockquote
cite="mid:CALyg-ah_7-d8TWiHeX-KT_VLc07rfRKOuWH5V+5Vrrin4ZA5Sw@mail.gmail.com"
type="cite">
<div dir="ltr">Hi, Everybody--
<div><br>
</div>
<div>Jonha, for that kind of thing I typically either use
covering grids in yt, or force the refinement to be identical
during run time. If you're an enzo user I can help with the
latter.</div>
<div><br>
</div>
<div>d.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jun 16, 2015 at 9:57 AM, Jonah
Miller <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:jonah.maxwell.miller@gmail.com"
target="_blank">jonah.maxwell.miller@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 Matt,<br>
<br>
I see. Thanks.<br>
<br>
Best,<br>
Jonah
<div class="HOEnZb">
<div class="h5"><br>
<br>
On 15-06-16 09:53 AM, Matthew Turk wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Jonah,<br>
<br>
If they're not identical in shape, you'd have to do
some type of<br>
regularization stpe, which wouldn't be automated yet.
But this is<br>
something I hope to make automated, although it's not
on the current<br>
schedule.<br>
<br>
-Matt<br>
<br>
On Tue, Jun 16, 2015 at 8:41 AM, Jonah Miller<br>
<<a moz-do-not-send="true"
href="mailto:jonah.maxwell.miller@gmail.com"
target="_blank">jonah.maxwell.miller@gmail.com</a>>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Matt, Boyan,<br>
<br>
Although I'm not currently struggling with this, I
will eventually encounter<br>
a similar situation... What would one do if the grid
was not uniform? Would<br>
a derived field still work if the grids were
identical?<br>
<br>
Best,<br>
Jonah<br>
<br>
<br>
On 15-06-16 09:34 AM, Matthew Turk wrote:<br>
<br>
Hi Boyan,<br>
<br>
Since the grids are uniform, you can do one of a few
different things.<br>
The first would be if you want to set up a derived
field, you could do<br>
something like:<br>
<br>
ds1 = ...<br>
ds2 = ...<br>
<br>
@yt.derived_field(name = "my_field", validators =
[yt.ValidateSpatial()])<br>
def my_field(field, data):<br>
f1 = ds1.index.grids[<a moz-do-not-send="true"
href="http://data.id" rel="noreferrer"
target="_blank">data.id</a> - data._id_offset][<a
moz-do-not-send="true" href="http://field.name"
rel="noreferrer" target="_blank">field.name</a>]<br>
f2 = data[<a moz-do-not-send="true"
href="http://field.name" rel="noreferrer"
target="_blank">field.name</a>]<br>
return f1 - f2<br>
<br>
If you want to simply inspect, you can do<br>
ds1.index.grids[whatever][field] -
ds2.index.grids[whatever][field].<br>
<br>
-Matt<br>
<br>
On Mon, Jun 15, 2015 at 11:05 PM, bh11e <<a
moz-do-not-send="true"
href="mailto:bh11e@my.fsu.edu" target="_blank">bh11e@my.fsu.edu</a>>
wrote:<br>
<br>
Hi,<br>
<br>
I was wondering if someone could advise on the
following problem. Consider<br>
two (Enzo) datasets with identical grids. What is
the way to plot the<br>
difference between a field in one set and a field in
the other.<br>
Alternatively is there a way to create a new dataset
with the calculated<br>
difference, after which plotting will be as usual.<br>
<br>
Thanks,<br>
<br>
--Boyan Hristov<br>
_______________________________________________<br>
yt-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:yt-users@lists.spacepope.org"
target="_blank">yt-users@lists.spacepope.org</a><br>
<a moz-do-not-send="true"
href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org"
rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br>
_______________________________________________<br>
yt-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:yt-users@lists.spacepope.org"
target="_blank">yt-users@lists.spacepope.org</a><br>
<a moz-do-not-send="true"
href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org"
rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br>
<br>
<br>
_______________________________________________<br>
yt-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:yt-users@lists.spacepope.org"
target="_blank">yt-users@lists.spacepope.org</a><br>
<a moz-do-not-send="true"
href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org"
rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br>
</blockquote>
_______________________________________________<br>
yt-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:yt-users@lists.spacepope.org"
target="_blank">yt-users@lists.spacepope.org</a><br>
<a moz-do-not-send="true"
href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org"
rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote>
<br>
_______________________________________________<br>
yt-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:yt-users@lists.spacepope.org"
target="_blank">yt-users@lists.spacepope.org</a><br>
<a moz-do-not-send="true"
href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org"
rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">
<div dir="ltr">-- Sent from a computer.<br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
yt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a>
<a class="moz-txt-link-freetext" href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a>
</pre>
</blockquote>
<br>
</body>
</html>