<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 22, 2016 at 2:03 PM, Hansheng Chen <span dir="ltr"><<a href="mailto:jasonhs1221@gmail.com" target="_blank">jasonhs1221@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear yt-users,<div><br></div><div>I got a image of projected gas density of a galaxy, and from this projected image, I could get a image array of projected gas density with a resolution of (800, 800). Now, I would like to set the center at (400, 400) and to get a profile that shows the relationship between the projected gas density and radius in 2-D. Could some one give me any help in getting a radial profile from the image array?</div></div></blockquote><div><br></div><div>There isn't anything in yt 3.2.3 that does this directly, although one can straightforwardly accomplish this using numpy's histogram function if you bin pixels according to radius.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Thank you!</div><div><br></div><div>Sincerely,</div><div>Hansheng</div></div>
<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div></div>