uob-positron-imaging-centre / up4

Post-processor for particle data.
https://uob-positron-imaging-centre.github.io/up4/
GNU General Public License v3.0
9 stars 1 forks source link

Dataset comparison #5

Open dwerner95 opened 2 years ago

dwerner95 commented 2 years ago

I am thinking of a way to compare datasets easier. A function that allows the qualitative comparison between any function implemented in uPPPP with any dataset. Example:

import uppp
simulation = uppp.Data("simulation.hdf5")
experiment = uppp.Data("experiment.hdf5")
experiment.compare(function = uppp.velocityfield, dataset=simulation, kwargs=...)

Return type/plot of this would be a cell by cell coomparison of a field (1D, 2D, or 3D) like this plot:

scatterplot2

where both axis show the value of the individual cell (velocity for example) and a straight line would mean that the cells are the same.

Problem would be that experiments normally do not overlap spatially with the simulation. hence we would need to translate the whole dataset and we would need to automatically do that.

DanW97 commented 2 years ago

So we'd essentially be making a parity plot function and making automatic calls to the right Grid function?