<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Dear yt-users,<div>I am having a little problem on finding the exact center of a halo. I used to do</div><div><br></div><div><span class="">"hc = HaloCatalog(data_ds=data_ds, finder_method='</span><span class="">hop</span><span class="">')"</span></div><div><span class=""><br></span></div><div><span class="">to create a halo catalog. But I think the position in the catalog is a little bit off the exact center judging from the plots I made. I need the exact center to compute the angular momentum so the off-center result could cause some problem. I tried to recenter at the maximum gas density by adding this line</span></div><div><span class=""><br></span></div><div><span class="">"</span><span class="">hc.sphere_field_max_recenter</span><span class="">(</span><span class="">'</span><span class="">density</span><span class="">'</span><span class="">)</span>"</div><div><br></div><div>But I got an error, AttributeError: 'HaloCatalog' object has no attribute 'sphere_field_max_recenter'.</div><div><br></div><div>Can anyone tell me what is the right way to find the center as the location of maximum gas density?</div><div><br></div><div>Thanks,</div><div>Jingjing</div>















<div><p class=""><br></p><div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><pre>Jingjing Chen [ <a href="mailto:chenjj235@gmail.com" target="_blank">chenjj235@gmail.com</a> ]
Department of Astronomy
Columbia University
550 West 120th Street
New York, New York 10027<br>Cell Phone: +1(347)5746709<br></pre></div></div>
</div></div></div>