[yt-dev] Implementing new Difference Plots

Matthew Krafczyk krafczyk.matthew at gmail.com
Tue Dec 20 14:45:07 PST 2016


Hi folks,

I'm currently working on implementing a couple of plots to help investigate
differences between two similar datasets.

I've implemented DifferenceProjectionPlot,
RelativeDifferenceProjectionPlot, and AsymmetryProjectionPlot.

These are available at my fork of yt https://bitbucket.org/krafczyk/yt under
the bookmark 'features/difference_plot'.

Essentially, Each of these Plots is a subclass of PWViewerMPL like
ProjectionPlot, but create's it's FRB by first creating FRBs for the two
data sets then applying an operation to each pixel value to get a new
derived value which is a part of the new FRB.

For DifferenceProjectionPlot this is simply A-B
For RelativeDifferenceProjectionPlot this is (A-B)/A
For AsymmetryProjectionPlot this is (A-B)/(A+B)

It's already been suggested to me that I can avoid creating three new
classes by moving the choice of combination algorithm to a keyword
argument, but I'd like to hear more suggestions.

Thanks,
Matthew Krafczyk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20161220/cfc69fa8/attachment.htm>


More information about the yt-dev mailing list