<div dir="ltr">Hi Matt,<div><br></div><div>Ok, that makes a lot of sense.  I think your idea would work.  If we made a projection become a 2D dataset with only the fields that were projected available as the base fields, this could be quite straightforward.</div>
<div><br></div><div>Britton</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, May 4, 2014 at 1:34 PM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Britton,<br>
<div class=""><br>
On Sun, May 4, 2014 at 9:25 AM, Britton Smith <<a href="mailto:brittonsmith@gmail.com">brittonsmith@gmail.com</a>> wrote:<br>
> It would be cool if we were able to treat a projection as a 2D data<br>
> container where you could define a center, create a radius field, and then<br>
> just pipe directly into the regular profiling machinery.  How hard would it<br>
> be to do that (longer timescale than meeting Nathan's needs here of course)?<br>
<br>
</div>I agree.  So I think the only reason this would be difficult is<br>
because of the degeneracy between asking for a derived field that<br>
would be derived *in the grids* and asking for a derived field that<br>
would be derived *in the data object*.  Typically, we always assume<br>
that the data object can generate derived fields -- effectively, what<br>
this means is that if you ask for velocity magnitude, the velocity<br>
magnitude can be derived from the x-y-z velocities in the data object<br>
and that it doesn't need to go back to the individual<br>
chunks/grids/particles.  This is how slices work, but projections<br>
don't because we assume the act of projecting is how the data is<br>
generated.  ("Construction" versus "selection" data objects.)<br>
<br>
So if we can break that degeneracy -- having a way to say, this object<br>
*has* everything we need to do the derived fields, so do them in it,<br>
then I think we can implement it.  I think it's mostly a nomenclature<br>
thing.  What if we were able to make projections serve as a source to<br>
another data object?  Would that suffice?<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
><br>
> On Thu, May 1, 2014 at 2:34 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com">nathan12343@gmail.com</a>><br>
> wrote:<br>
>><br>
>><br>
>><br>
>> On Thu, May 1, 2014 at 8:07 AM, Cameron Hummels <<a href="mailto:chummels@gmail.com">chummels@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> I have some scripts for doing projected radius profiles using projections<br>
>>> and FRBs.  They'll certainly be different from the Profile1D stuff, but they<br>
>>> work OK.  I'm happy to share them if you want a starter for this avenue.<br>
>><br>
>><br>
>> Would love to see them.<br>
>><br>
>>><br>
>>><br>
>>> Cameron<br>
>>><br>
>>><br>
>>> On Wed, Apr 30, 2014 at 6:24 PM, Matthew Turk <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>><br>
>>> wrote:<br>
>>>><br>
>>>> Hi Nathan,<br>
>>>><br>
>>>> On Wed, Apr 30, 2014 at 8:35 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com">nathan12343@gmail.com</a>><br>
>>>> wrote:<br>
>>>> > Hi all,<br>
>>>> ><br>
>>>> > Is there a way for me to find a profile using a projection as a data<br>
>>>> > source?<br>
>>>> > In particular, I'd like to find a radial profile of a surface density<br>
>>>> > in a<br>
>>>> > disk galaxy simulation.<br>
>>>> ><br>
>>>> > I think I could do this by histogramming a fixed resolution buffer<br>
>>>> > created<br>
>>>> > by a projection data source but is that the only way to do it?  I'd<br>
>>>> > prefer<br>
>>>> > for my data pipeline to look identical for computing profiles and in<br>
>>>> > all<br>
>>>> > other cases I'm using a Profile1D object to find things like the<br>
>>>> > cumulative<br>
>>>> > mass or the average density as a function of radius.<br>
>>>><br>
>>>> I believe this is what has been done in the past -- Sam wrote a set of<br>
>>>> scripts that did it this way.  I think, though, that you might be able<br>
>>>> to use the cylindrical radius derived fields and then accumulate<br>
>>>> within them.  Would that get to where you want the analysis?<br>
>>>><br>
>>>> -Matt<br>
>>>><br>
>>>> ><br>
>>>> > Thanks for your help with this!<br>
>>>> ><br>
>>>> > -Nathan<br>
>>>> ><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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>>>> ><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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Cameron Hummels<br>
>>> Postdoctoral Researcher<br>
>>> Steward Observatory<br>
>>> University of Arizona<br>
>>> <a href="http://chummels.org" target="_blank">http://chummels.org</a><br>
>>><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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>>><br>
>><br>
>><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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>><br>
><br>
><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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</div></div></blockquote></div><br></div>