[yt-users] Obtaining projection data value

Matthew Turk matthewturk at gmail.com
Mon Feb 6 13:13:27 PST 2012


Hi Jun-Hwan,

On Mon, Feb 6, 2012 at 4:09 PM, Jun-Hwan Choi <jhchoi at pa.uky.edu> wrote:
> Hi all,
>
> I wonder whether that I can obtain the value that generate projection plot.
> I can make a projection image for my disk using add_projection  in the
> plot_collation.
> I am interested in to get the projected density value and its position (and
> its pixel size) to perform the FFT analysis in order to find the
> non-axisymmertic feature such as disk-bar.
> Is there way to get this values using yt?

Yes.

http://yt-project.org/docs/2.3/visualizing/manual_plotting.html
http://yt-project.org/docs/2.3/analyzing/generating_processed_data.html#d-image-arrays

The function you're looking for is "to_frb" which is a method on the
projection object.

pf = load(...)
proj = pf.h.proj(axis, field, weight)
frb = proj.to_frb()
field = frb[field]

-Matt

>
> Thank you in advance,
> Junhwan
>
> --
> --------------------------------------------------------------
> Jun-Hwan Choi, Ph.D.
> Department of Physics and Astronomy, University of Kentucky
> Tel: (859) 897-6737        Fax: (859) 323-2846
> Email: jhchoi at pa.uky.edu   URL: http://www.pa.uky.edu/~jhchoi
> --------------------------------------------------------------
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org



More information about the yt-users mailing list