
Hi, Is there a way to create an image that, rather than being a projection, shows the maximum or minimum point of a field? Elizabeth

Hi Elizabeth, This type of projection is usually called a MIP for maximum intensity projection. It is not currently possible. However, I think that with a few modifications it could be added, as we now use a QuadTree with a set of helper functions; the QTN_add_value function specifically could be swapped out relatively easily. If you fill out a ticket targeted at 2.4 I will add this functionality. -Matt On Wed, Feb 29, 2012 at 6:46 PM, Elizabeth Tasker <tasker@astro1.sci.hokudai.ac.jp> wrote:
Hi,
Is there a way to create an image that, rather than being a projection, shows the maximum or minimum point of a field?
Elizabeth _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Elizabeth, Pull request is here: https://bitbucket.org/yt_analysis/yt/pull-request/110/mip-projections This adds style="mip" as an option. The default is still style="integrate". Behavior is undefined if you weight a MIP. -Matt On Wed, Feb 29, 2012 at 6:49 PM, Matthew Turk <matthewturk@gmail.com> wrote:
Hi Elizabeth,
This type of projection is usually called a MIP for maximum intensity projection. It is not currently possible. However, I think that with a few modifications it could be added, as we now use a QuadTree with a set of helper functions; the QTN_add_value function specifically could be swapped out relatively easily. If you fill out a ticket targeted at 2.4 I will add this functionality.
-Matt
On Wed, Feb 29, 2012 at 6:46 PM, Elizabeth Tasker <tasker@astro1.sci.hokudai.ac.jp> wrote:
Hi,
Is there a way to create an image that, rather than being a projection, shows the maximum or minimum point of a field?
Elizabeth _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Matt, Thanks very much! I'm amazed you did that so quickly. I don't quite understand your last statements. Do you mean when I call the projection, I should do: pc.add_projection("Density", 0, style ="mip") Elizabeth On 1 March 2012 12:06, Matthew Turk <matthewturk@gmail.com> wrote:
Hi Elizabeth,
Pull request is here:
https://bitbucket.org/yt_analysis/yt/pull-request/110/mip-projections
This adds style="mip" as an option. The default is still style="integrate". Behavior is undefined if you weight a MIP.
-Matt
On Wed, Feb 29, 2012 at 6:49 PM, Matthew Turk <matthewturk@gmail.com> wrote:
Hi Elizabeth,
This type of projection is usually called a MIP for maximum intensity projection. It is not currently possible. However, I think that with a few modifications it could be added, as we now use a QuadTree with a set of helper functions; the QTN_add_value function specifically could be swapped out relatively easily. If you fill out a ticket targeted at 2.4 I will add this functionality.
-Matt
On Wed, Feb 29, 2012 at 6:46 PM, Elizabeth Tasker <tasker@astro1.sci.hokudai.ac.jp> wrote:
Hi,
Is there a way to create an image that, rather than being a projection, shows the maximum or minimum point of a field?
Elizabeth _______________________________________________ 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

You will probably have to use the projection call yourself, through: proj = pf.h.proj(0, "Density", style="mip") proj.to_frb(...) On Thu, Mar 1, 2012 at 2:00 PM, Elizabeth Tasker <tasker@astro1.sci.hokudai.ac.jp> wrote:
Hi Matt,
Thanks very much! I'm amazed you did that so quickly.
I don't quite understand your last statements. Do you mean when I call the projection, I should do:
pc.add_projection("Density", 0, style ="mip")
Elizabeth
On 1 March 2012 12:06, Matthew Turk <matthewturk@gmail.com> wrote:
Hi Elizabeth,
Pull request is here:
https://bitbucket.org/yt_analysis/yt/pull-request/110/mip-projections
This adds style="mip" as an option. The default is still style="integrate". Behavior is undefined if you weight a MIP.
-Matt
On Wed, Feb 29, 2012 at 6:49 PM, Matthew Turk <matthewturk@gmail.com> wrote:
Hi Elizabeth,
This type of projection is usually called a MIP for maximum intensity projection. It is not currently possible. However, I think that with a few modifications it could be added, as we now use a QuadTree with a set of helper functions; the QTN_add_value function specifically could be swapped out relatively easily. If you fill out a ticket targeted at 2.4 I will add this functionality.
-Matt
On Wed, Feb 29, 2012 at 6:46 PM, Elizabeth Tasker <tasker@astro1.sci.hokudai.ac.jp> wrote:
Hi,
Is there a way to create an image that, rather than being a projection, shows the maximum or minimum point of a field?
Elizabeth _______________________________________________ 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
yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Elizabeth, I'm wondering if you've had a chance to try Matt's changes? If you have, did it work as you expected? If you report positively, I'll accept the pull request that Matt created, and his changes will go into the main fork of yt (for everyone to use!). Thanks! -- Stephen Skory s@skory.us http://stephenskory.com/ 510.621.3687 (google voice)

Hi Stephen, I did try it out and I think it's fine -- the only problem is that I couldn't see an obvious difference between that and a straight projection. I suspect though, that it's the data cube I tried it on. Let me give it another go tomorrow and confirm for sure (I've just travelled back to Japan so things were a bit too chaotic today). Elizabeth On 2012-03-13, at 4:32 AM, Stephen Skory wrote:
Hi Elizabeth,
I'm wondering if you've had a chance to try Matt's changes? If you have, did it work as you expected? If you report positively, I'll accept the pull request that Matt created, and his changes will go into the main fork of yt (for everyone to use!).
Thanks!
-- Stephen Skory s@skory.us http://stephenskory.com/ 510.621.3687 (google voice) _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (3)
-
Elizabeth Tasker
-
Matthew Turk
-
Stephen Skory