finding and outputting max point for plot over line

I have a user that needs to run dozens of plot over lines through his dataset, find the maximum value, and write this value out. This needs to occur in parallel.

Here is an example:

  • Remote paraview. Further, this example needs to be traceable, and able to run on pvbatch in parallel.
  • Sources/ wavelet. Apply.
  • Plot over line. Apply.
  • Now, I need to find the maximum and put it somewhere.
  • Plot over line. Move the line slightly. Apply.
  • Now, I need to find the maximum and put it somewhere.
  • Gather these all together, and write the data out to a .csv file.

Thanks,

Alan

@utkarsh.ayachit @Kenneth_Moreland @cory.quammen

This is a partial solution. You can use animation tracks to move the endpoints of the Plot Over Line filter. That would allow you to automate moving the line.

Normally, I would say the next step is to use the Plot Data Over Time filter to extract the max (along with the min, mean, and median) over all the timesteps. Unfortunately, that doesn’t work because Plot Data Over Time insists on using the timesteps from its source, not from the animation view. And the source does not actually have any timesteps. You should be able to add time steps using the Programmable Filter. I’ll let someone else figure that one out.

this can be converted to a Python script, but first, can you explain what “moving the line slightly” means? Is it a thing that has to be manual or is there an algorithm for it?

I’m seeing this issue once again. I think I confused the question above (move the line slightly). Let me ask this:
If I run a plot over line filter, I return something that can be plotted on a 2d lineplot. I want to find the maximum value of the output of the plot over line filter, and possibly length down the line.

@cory.quammen @utkarsh.ayachit @Kenneth_Moreland

Here are things I tried:

  1. Wavelet > Plot Over Line > Descriptive Statistics
  2. Wavelet > Plot Over Line > Python Calculator (expression: max(RTData))

Both give max. In 1, it’s available as a single value in the output table. In 2, it’s added as the “result” array for all input points.

Excellent. Thanks.

The plot over line filter can give gaps, which are filled in with nan’s. Nans are failing with either Desriptive Statistics or the python calculator… Any ideas? Maybe modify the Descriptive Statistics filter to optionally ignore nans (default on)?

By the way, the way I am creating these gaps is as follows:

  • load disk_out_ref.exo. All vars on. Apply.
  • plot over line filter. Apply.
  • Descriptive statistics. Apply.
    Now, I want the max of Temp.

Thanks. I put all of the parts together, and wrote up a Tricks here: How to find the maximum value on a line. As always, feel free to edit it if I was not clear or made errors.