View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009869ParaViewBugpublic2009-11-09 11:052011-09-01 13:31
ReporterKen Moreland 
Assigned ToRobert Maynard 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Version3.8Fixed in Version3.12 
Summary0009869: Arrays of type char should be converted to ASCII numbers when written to CSV file
DescriptionWhen 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.
TagsNo tags attached.
Project
Topic Name
Type
Attached Files

 Relationships
related to 0010673closedRobert Maynard CSV writer does not work with ghost cells and it writes char data as actual chars 

  Notes
(0020098)
Robert Maynard (developer)
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 (manager)
2010-04-20 19:37

Tested local client, trunk, windows.

 Issue History
Date Modified Username Field Change
2009-11-09 11:05 Ken Moreland New Issue
2010-04-07 13:48 Utkarsh Ayachit Status backlog => tabled
2010-04-07 13:48 Utkarsh Ayachit Assigned To => Robert Maynard
2010-04-07 15:02 Robert Maynard Note Added: 0020098
2010-04-07 15:02 Robert Maynard Status tabled => @80@
2010-04-07 15:02 Robert Maynard Resolution open => fixed
2010-04-07 15:02 Robert Maynard Fixed in Version => Development
2010-04-20 19:37 Alan Scott Note Added: 0020319
2010-04-20 19:37 Alan Scott Status @80@ => closed
2010-05-05 09:47 Ken Moreland Relationship added related to 0010673
2011-09-01 13:31 Utkarsh Ayachit Fixed in Version Development => 3.12


Copyright © 2000 - 2018 MantisBT Team