MantisBT - ParaView
View Issue Details
0009869ParaViewBugpublic2009-11-09 11:052011-09-01 13:31
Ken Moreland 
Robert Maynard 
normalminorhave not tried
closedfixed 
 
3.83.12 
0009869: Arrays of type char should be converted to ASCII numbers when written to CSV file
When writing a CSV file from a data set with an array of type char, the character itself is written out the the ASCII CSV file. However, this assumes that the char values are used as actual characters, which is seldom the case. More often, these values are simply bytes often used as flags. Thus, the values have little meaning when viewed as an ASCII character and often do not fall in the region of common visible ASCII characters. Instead, the CSV writer should write out an ASCII representation of the numbers stored in the char array rather than the characters themselves.

As an example, create a plot with the Plot Over Line filter and then write out the results as a CSV file. You will notice that there is a column called vtkValidPointMask. The entries in this column are unreadable because it contains a bunch of characters without a valid ASCII representation. Instead, these values should have been converted to numbers (like 0 and 1) so that you can read it and it will be read back into ParaView as numeric values.
No tags attached.
related to 0010673closed Robert Maynard CSV writer does not work with ghost cells and it writes char data as actual chars 
Issue History
2009-11-09 11:05Ken MorelandNew Issue
2010-04-07 13:48Utkarsh AyachitStatusbacklog => tabled
2010-04-07 13:48Utkarsh AyachitAssigned To => Robert Maynard
2010-04-07 15:02Robert MaynardNote Added: 0020098
2010-04-07 15:02Robert MaynardStatustabled => @80@
2010-04-07 15:02Robert MaynardResolutionopen => fixed
2010-04-07 15:02Robert MaynardFixed in Version => Development
2010-04-20 19:37Alan ScottNote Added: 0020319
2010-04-20 19:37Alan ScottStatus@80@ => closed
2010-05-05 09:47Ken MorelandRelationship addedrelated to 0010673
2011-09-01 13:31Utkarsh AyachitFixed in VersionDevelopment => 3.12

Notes
(0020098)
Robert Maynard   
2010-04-07 15:02   
Handles vtkCharArrays as integers.

/cvsroot/ParaView3/ParaView3/Servers/Filters/vtkCSVWriter.cxx,v <-- vtkCSVWriter.cxx
new revision: 1.11; previous revision: 1.10
(0020319)
Alan Scott   
2010-04-20 19:37   
Tested local client, trunk, windows.