Hey Guys, I'm a bit confused on the projection plot. By default, when you hand YT a width, does it use that width to restrict the depth of the projection (i.e. limits the entire analysis to a cube?) or does it sum along the entire line-of-sight through the whole simulation box (a french fry?). If the latter is the default, is there a way to override this? thanks! Munier -- Munier A. Salem // 845.489.6450
Hi Munier,
On Thu, Sep 19, 2013 at 11:20 AM, Munier Azzam Salem
Hey Guys,
I'm a bit confused on the projection plot. By default, when you hand YT a width, does it use that width to restrict the depth of the projection (i.e. limits the entire analysis to a cube?)
Nope, by default it does the entire domain if you create a projection plot object. Not just a french-fry, either, but the entire domain.
or does it sum along the entire line-of-sight through the whole simulation box (a french fry?). If the latter is the default, is there a way to override this?
Yup! You can create a projection manually: pf.h.proj( ... ) and specify your data source, which can be a region, a sphere, a disk, etc etc. Just specify "source" as an argument, where that is some other data object. Then to make a plot of this, use the to_pw() method on the resultant projection. Something like this: proj = pf.h.proj( ... ) pw = proj.to_pw(...) -Matt
thanks! Munier
-- Munier A. Salem // 845.489.6450
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hi Munier, I believe you get a french fry (it sums along the entire line of sight through the box). This very much confused me for a while too. To control the depth of the projection, use a thin projection in yt (add_thin_projection) that you give a depth. I think there are docs on this, but if not I can show you an example. Christine On Sep 19, 2013, at 5:20 PM, Munier Azzam Salem wrote:
Hey Guys,
I'm a bit confused on the projection plot. By default, when you hand YT a width, does it use that width to restrict the depth of the projection (i.e. limits the entire analysis to a cube?) or does it sum along the entire line-of-sight through the whole simulation box (a french fry?). If the latter is the default, is there a way to override this?
thanks! Munier
-- Munier A. Salem // 845.489.6450 _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Thanks guys! On Thu, Sep 19, 2013 at 11:24 AM, Christine Simpson < csimpson@astro.columbia.edu> wrote:
Hi Munier,
I believe you get a french fry (it sums along the entire line of sight through the box). This very much confused me for a while too. To control the depth of the projection, use a thin projection in yt (add_thin_projection) that you give a depth. I think there are docs on this, but if not I can show you an example.
Christine
On Sep 19, 2013, at 5:20 PM, Munier Azzam Salem wrote:
Hey Guys,
I'm a bit confused on the projection plot. By default, when you hand YT a width, does it use that width to restrict the depth of the projection (i.e. limits the entire analysis to a cube?) or does it sum along the entire line-of-sight through the whole simulation box (a french fry?). If the latter is the default, is there a way to override this?
thanks! Munier
-- Munier A. Salem // 845.489.6450 _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-- Munier A. Salem // 845.489.6450
participants (3)
-
Christine Simpson
-
Matthew Turk
-
Munier Azzam Salem