Problem: Export one colum of spreadsheet
Hi all!
I have problem with paraview results export; After data load i use Contour filter. It's required for drawing free surface. Then i try to export only coordinates of contour point: - select necessary column from spreadsheet - File -> Save Data. But in result csv there are all arrays (P, U, alpha, etc) Please help. What I'm doing wrong? May be I also should use another filter? BTW, can I copy columns directly from spreadsheet view? Ctrl+C of Edit->Copy don't work. Thanks a lot! |
Hi,
Usually I use some shell commands to modify the content. Something like this should work: Code:
sed 's/,/ /g' <filename>.csv | awk '{print $1}' > column1.csv Code:
sed 's/,/ /g' <filename>.csv | awk '{print $1 "," $3}' > column1and3.csv Regards, Tom |
The pipe from sed to awk seems obsolete if you could use the IFS input for awk. Anyhow:
Code:
cut -d',' -f1 <filename>.csv |
Quote:
This is ParaView 4.1.0 64-bit. I share your opinion that a simple copy-paste functionality would be helpful! Warm regards, Carl-Magnus Arvhult |
@Carl-Magnus Arvhult: Many thanks for sharing your finding!
By the way, if anyone needs to do this in Python within ParaView: http://markmail.org/message/anlxxwlrlyacmsr6 |
All times are GMT -4. The time now is 02:04. |