CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Reversing slices

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2015, 08:02
Default Reversing slices
  #1
New Member
 
Join Date: Sep 2015
Posts: 1
Rep Power: 0
ArjanB is on a distinguished road
I am trying to align two datasets, one with scalar data and one with vector data. The only inconsistency, it seems, is that slice 0 in the scalar data corresponds to slice 25 in the vector data and vice versa.

Being rather new to Paraview, I'm hoping that someone can tell me how I perform something like the following in Paraview:
Code:
for i = 0 to 25
  newSlices[i] = slices[25-i]
Or:
Code:
for z = 0 to 25
  newScalar[x][y][z] = scalar[x][y][25-z]
Thanks in advance!
ArjanB is offline   Reply With Quote

Old   October 18, 2015, 20:02
Default
  #2
Senior Member
 
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13
Flowkersma is on a distinguished road
Hi,

Could you explain more closely what you want to do? If you just want to revese an array then you can do it by
Code:
newSlices = list(reversed(slices))
or maybe you could try to interpolate from one dataset to other? This can be done by using ResampleWithDataset filter.

Regards,
Mikko
Flowkersma is offline   Reply With Quote

Reply

Tags
paraview, reverse, slices


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM] Cylindrical slices not accepting float yambanshee ParaView 0 January 16, 2019 08:06
[General] an average surface based on the sum of parallel slices maminow ParaView 0 January 12, 2017 12:36
[General] subtracting data from different slices Lydia ParaView 2 July 15, 2016 14:15
[General] Averaging/integrating multiple slices individually gotang ParaView 0 February 19, 2015 10:51
[General] Saving Slices Over Multiple Time Steps bju1990 ParaView 1 October 12, 2014 06:23


All times are GMT -4. The time now is 10:48.