[yt-users] ortho_ray question

Matthew Turk matthewturk at gmail.com
Wed Jul 23 09:30:51 PDT 2014


On Wed, Jul 23, 2014 at 11:29 AM, Michael Zingale
<michael.zingale at stonybrook.edu> wrote:
> ok, thanks.  I'll take a look at the docs again, and if it was not obvious
> there, I'll add a statement.

Ah!  They used to be sorted.  Right now the default chunking scheme is
unsorted, and can do partial queries, so I think that's why it's not
sorted.  I can possibly fix this -- we put in a partial fix for
non-ortho rays.

>
>
> On Wed, Jul 23, 2014 at 12:15 PM, Matthew Turk <matthewturk at gmail.com>
> wrote:
>>
>> On Tue, Jul 22, 2014 at 11:19 PM, Michael Zingale
>> <michael.zingale at stonybrook.edu> wrote:
>> > I am trying to use ortho_ray.
>> >
>> > If I do:
>> >
>> >
>> > c = ds.find_max("temperature")
>> > coords = c[1]
>> >
>> > ray = ds.ortho_ray(0, (coords[1], coords[2]))
>> >
>> > and then plot ray["density"] vs. ray["x"] , I get a jumbled mess.
>> > Printing
>> > ray["x"], I see that it is not monotonic -- should I expect it to be?
>> > The
>> > docs seem to suggest that it would be sorted properly.
>>
>> It's not sorted, no.  You can sort via the 't' field, which sorts
>> based on the parameter from start to finish.
>>
>> -Matt
>>
>> >
>> > --
>> > Michael Zingale
>> > Associate Professor
>> >
>> > Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY
>> > 11794-3800
>> > phone:  631-632-8225
>> > e-mail: Michael.Zingale at stonybrook.edu
>> > web: http://www.astro.sunysb.edu/mzingale
>> >
>> > _______________________________________________
>> > 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
>
>
>
>
> --
> Michael Zingale
> Associate Professor
>
> Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY
> 11794-3800
> phone:  631-632-8225
> e-mail: Michael.Zingale at stonybrook.edu
> web: http://www.astro.sunysb.edu/mzingale
>
> _______________________________________________
> 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