<div dir="ltr"><div>In that case this might be a bug in how we set comoving units for artio data. The one artio test dataset we have has DeltaDC equal to 0.0, so we're not testing the case where this is nonzero at all.</div><div><br></div><div>Is there any chance you can create an issue on our bug tracker that demonstrates the problem (at <a href="https://github.com/yt-project/yt/issues/new">https://github.com/yt-project/yt/issues/new</a>)? If you can, please include a link to a sample dataset that triggers the issue as well as a script demonstrating the problem so one of us can reproduce locally and hopefully fix it.</div><div><br></div><div>-Nathan</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 13, 2017 at 2:57 PM, Nick Gnedin <span dir="ltr"><<a href="mailto:gnedin@fnal.gov" target="_blank">gnedin@fnal.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Britton,<br>
<br>
In the simulations with the non-zero DC mode there are two scale factors to consider, a_uni (global scale factor of the universe) and a_box (the scale factor of the simulated region). YT recognizes this when reading ART data, but appears to use a wrong scale factor in computing comoving units.<br>
<br>
n<div><div class="h5"><br>
<br>
<br>
On 10/13/2017 2:44 PM, Britton Smith wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi Huanqing,<br>
<br>
I am a bit unclear on what the problem is.  I think it is correct that the conversion between proper and comoving uses the expansion factor.  I'm not sure what abox is.  Can you elaborate on that?<br>
<br>
Britton<br>
<br></div></div><span class="">
On Thu, Oct 12, 2017 at 4:27 PM, Huanqing <<a href="mailto:hqchen@oddjob.uchicago.edu" target="_blank">hqchen@oddjob.uchicago.edu</a> <mailto:<a href="mailto:hqchen@oddjob.uchicago.edu" target="_blank">hqchen@oddjob.uchicago<wbr>.edu</a>>> wrote:<br>
<br>
    Hi all,<br>
<br>
    I’m using yt to generate halo catalog. However, when I check the<br>
    halos created by HaloCatalog function, I found the corresponding<br>
    comoving unit uses the expansion factor of the universe rather than<br>
    a_box.<br>
<br>
    For example, My boxsize is 20cMpc/h, but if I use<br>
    .in_units(‘Mpccm/h’), the halos are offset by some amount (see<br>
    attached). I wonder if this is a bug in converting physical unit to<br>
    comoving unit?<br>
<br>
    Thanks,<br>
    Huanqing<br>
<br>
<br></span>
    ______________________________<wbr>_________________<br>
    yt-users mailing list<br>
    <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a> <mailto:<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepo<wbr>pe.org</a>><br>
    <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/lis<wbr>tinfo.cgi/yt-users-spacepope.<wbr>org</a><br>
    <<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/li<wbr>stinfo.cgi/yt-users-spacepope.<wbr>org</a>><br>
<br>
<br>
<br>
<<a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" rel="noreferrer" target="_blank">http://www.avg.com/email-sign<wbr>ature?utm_medium=email&utm_<wbr>source=link&utm_campaign=sig-<wbr>email&utm_content=emailclient</a>><wbr>    Virus-free. <a href="http://www.avg.com" rel="noreferrer" target="_blank">www.avg.com</a> <<a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" rel="noreferrer" target="_blank">http://www.avg.com/email-sign<wbr>ature?utm_medium=email&utm_<wbr>source=link&utm_campaign=sig-<wbr>email&utm_content=emailclient</a>> <br>
<br>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2A<wbr>A1F9FDF2><br>
</blockquote>
______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/lis<wbr>tinfo.cgi/yt-users-spacepope.<wbr>org</a><br>
</blockquote></div><br></div>