[yt-users] Radial profile of 2D map

Sam Skillman samskillman at gmail.com
Mon Apr 23 08:53:21 PDT 2012


Hi all,

I've posted an entry on hub.yt-project.org that takes an image and creates
a 2D radial profile.  You can find it here:

http://hub.yt-project.org/AnalysisAndVisualization/rprof2d-simple-radial-profiles-of-2d-images/

I've been meaning to post this for a long time, so here it finally is.  It
is not necessarily the fastest, and doesn't have many bells and whistles,
but it gets the job done.

Let me know if you have any questions, and feel free to fork and modify!

Sam

On Sun, Apr 22, 2012 at 8:19 AM, Eric Hallman <hallman at txcorp.com> wrote:

> Guys,
>   We have done such things in the past.  I've spoken to Matt briefly about
> it.  I will look around in the next day or so to see if I still have the
> routines.  We used it for synthetic X-ray maps, to mimic observed projected
> profiles.  I only have vague recollections of how it was implemented and
> where it is, but I'll look around for it asap.  The functionality should be
> straightforward to reproduce in any case.
>
> Eric
>
> On Apr 21, 2012, at 2:25 PM, Matthew Turk wrote:
>
> Hi Max,
>
> On Sat, Apr 21, 2012 at 11:33 AM, Massimo Gaspari <gaspmax at hotmail.com>
> wrote:
>
> Hi guys,
>
>
> suppose I performed a 2D data projection of this form:
>
>
> frb = proj.to_frb(width, res, center=c)
>
>
> how can I obtain the radial profile of this 2D "map" (say
>
> frb["Temperature"])?
>
> (I have found only how to perform radial profiles of 3D data, setting a
>
> certain sphere)
>
>
> Do you have some template?
>
>
> Thanks in advance!
>
>
> We did at one time has functionality that did this, but it got a
> little rusty and we did away with it.  In the intervening time, I
> believe at least two people (on this list) have implemented their own
> and used it productively, but I think it may be time to return to
> this.
>
> If I understand correctly, what would probably be most useful would be
> enabling some 2D object to serve as the input to an operaiton that
> looked like a normal yt profile object, right?  We can probably make
> this work.  I'll put it on my todo list for Monday nad see what I can
> come up with.
>
> -Matt
>
>
>
>   Max
>
>
> _______________________________________________
>
> yt-users mailing list
>
> yt-users at lists.spacepope.org
>
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
>  --
> Eric Hallman
> Tech-X Corporation               hallman at txcorp.com <kruger at txcorp.com>
> 5621 Arapahoe Ave, Suite A       Phone: (720) 254-5833
> Boulder, CO 80303                Fax:   (303) 448-7756
> --
>
>
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20120423/defeb675/attachment.html>


More information about the yt-users mailing list