<p>Hi Jun-has, </p>
<p>Probably means you're on an older version. You can upgrade with "yt update" or just use the manual interface to a FixedResolutionBuffer, which is also documented. </p>
<p>Matt </p>
<div class="gmail_quote">On Feb 6, 2012 4:46 PM, "Jun-Hwan Choi" <<a href="mailto:jhchoi@pa.uky.edu">jhchoi@pa.uky.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Matthew,<br>
<br>
I try the following script<br>
from yt.mods import *<br>
import matplotlib.pylab as pylab<br>
<br>
# load up a dataset<br>
index = 30<br>
pf = load("DD%04d/DD%04d" % (index,index))<br>
all_center = pf.h.find_max("Density")[1]<br>
#sphere = pf.h.sphere(all_center, (50, 'pc'))<br>
#sphere_center = sphere.quantities["<u></u>CenterOfMass"]()<br>
<br>
# create density slices   proj = pf.h.proj(2, 'Density')<br>
width = 100/pf['pc']<br>
res = [1000,1000]<br>
frb = proj.to_frb(width, res, center=all_center)<br>
<br>
pylab.imshow(frb['Density'])<br>
pylab.xlabel(r'$x\ \mathrm{pc}$')<br>
pylab.ylabel(r'$x\ \mathrm{furlongs}$')<br>
pylab.savefig('my_perfect_<u></u>figure.png')<br>
<br>
and I got following error message:<br>
frb = proj.to_frb(width, res, center=sphere_center)<br>
AttributeError: 'AMRQuadTreeProj' object has no attribute 'to_frb'<br>
<br>
What does error mean?<br>
<br>
Thank you,<br>
Junhwan<br>
Matthew Turk wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Jun-Hwan,<br>
<br>
On Mon, Feb 6, 2012 at 4:09 PM, Jun-Hwan Choi <<a href="mailto:jhchoi@pa.uky.edu" target="_blank">jhchoi@pa.uky.edu</a>> wrote:<br>
  <br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I wonder whether that I can obtain the value that generate projection plot.<br>
I can make a projection image for my disk using add_projection  in the<br>
plot_collation.<br>
I am interested in to get the projected density value and its position (and<br>
its pixel size) to perform the FFT analysis in order to find the<br>
non-axisymmertic feature such as disk-bar.<br>
Is there way to get this values using yt?<br>
    <br>
</blockquote>
<br>
Yes.<br>
<br>
<a href="http://yt-project.org/docs/2.3/visualizing/manual_plotting.html" target="_blank">http://yt-project.org/docs/2.<u></u>3/visualizing/manual_plotting.<u></u>html</a><br>
<a href="http://yt-project.org/docs/2.3/analyzing/generating_processed_data.html#d-image-arrays" target="_blank">http://yt-project.org/docs/2.<u></u>3/analyzing/generating_<u></u>processed_data.html#d-image-<u></u>arrays</a><br>

<br>
The function you're looking for is "to_frb" which is a method on the<br>
projection object.<br>
<br>
pf = load(...)<br>
proj = pf.h.proj(axis, field, weight)<br>
frb = proj.to_frb()<br>
field = frb[field]<br>
<br>
-Matt<br>
<br>
  <br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thank you in advance,<br>
Junhwan<br>
<br>
--<br>
------------------------------<u></u>------------------------------<u></u>--<br>
Jun-Hwan Choi, Ph.D.<br>
Department of Physics and Astronomy, University of Kentucky<br>
Tel: <a href="tel:%28859%29%20897-6737" value="+18598976737" target="_blank">(859) 897-6737</a>        Fax: <a href="tel:%28859%29%20323-2846" value="+18593232846" target="_blank">(859) 323-2846</a><br>
Email: <a href="mailto:jhchoi@pa.uky.edu" target="_blank">jhchoi@pa.uky.edu</a>   URL: <a href="http://www.pa.uky.edu/~jhchoi" target="_blank">http://www.pa.uky.edu/~jhchoi</a><br>
------------------------------<u></u>------------------------------<u></u>--<br>
<br>
______________________________<u></u>_________________<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" target="_blank">http://lists.spacepope.org/<u></u>listinfo.cgi/yt-users-<u></u>spacepope.org</a><br>
    <br>
</blockquote>
______________________________<u></u>_________________<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" target="_blank">http://lists.spacepope.org/<u></u>listinfo.cgi/yt-users-<u></u>spacepope.org</a><br>
  <br>
</blockquote>
<br>
<br>
-- <br>
------------------------------<u></u>------------------------------<u></u>--<br>
Jun-Hwan Choi, Ph.D.<br>
Department of Physics and Astronomy, University of Kentucky<br>
Tel: <a href="tel:%28859%29%20897-6737" value="+18598976737" target="_blank">(859) 897-6737</a>        Fax: <a href="tel:%28859%29%20323-2846" value="+18593232846" target="_blank">(859) 323-2846</a><br>
Email: <a href="mailto:jhchoi@pa.uky.edu" target="_blank">jhchoi@pa.uky.edu</a>   URL: <a href="http://www.pa.uky.edu/~jhchoi" target="_blank">http://www.pa.uky.edu/~jhchoi</a><br>
------------------------------<u></u>------------------------------<u></u>--<br>
<br>
______________________________<u></u>_________________<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" target="_blank">http://lists.spacepope.org/<u></u>listinfo.cgi/yt-users-<u></u>spacepope.org</a><br>
</blockquote></div>