MantisBT - ParaView
View Issue Details
0013137ParaView(No Category)public2012-04-26 19:592016-08-12 09:59
Danielle Pace 
Kitware Robot 
normalminorhave not tried
closedmoved 
3.14 
 
TBD
incorrect functionality
0013137: Cannot save images created using python calculator
Cannot save image data that was created using the python calculator. Often I use paraview to do simple arithmetic on image data, which I then would like to save for further processing. Not being able to do so with the python calculator is quite limiting.

Minimal example, with Paraview 3.14.0 on Ubuntu.
- Load image
- Python calculator:
Expression: inputs[0].PointData['MetaImage'] // i.e. just copy data over
Array Association: point data
Copy arrays: off
- Resulting image looks good
- Select python calculator result, File->Save Data, save as .mhd
- Reload image - data extents are correct, but all values are 0

Somewhat similarly -
If you use the Calculator instead of the Python Calculator, there is no way to turn off "copy arrays", so the output image typically has two data arrays - the original input array, and the result of the calculation. If you save this as .mhd, the result has only one data array - the result of the calculation. I would expect a .mhd with two channels.
No tags attached.
Issue History
2012-04-26 19:59Danielle PaceNew Issue
2016-08-12 09:59Kitware RobotNote Added: 0038205
2016-08-12 09:59Kitware RobotStatusbacklog => closed
2016-08-12 09:59Kitware RobotResolutionopen => moved
2016-08-12 09:59Kitware RobotAssigned To => Kitware Robot

Notes
(0038205)
Kitware Robot   
2016-08-12 09:59   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current ParaView Issues page linked in the banner at the top of this page.