# FieldData String type in VTK

**URL:** https://discourse.paraview.org/t/fielddata-string-type-in-vtk/6109
**Category:** Web Support
**Created:** [December 22, 2020, 4:14am UTC](https://discourse.paraview.org/t/fielddata-string-type-in-vtk/6109 "2020-12-22T04:14:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![devngc](https://discourse.paraview.org/user_avatar/discourse.paraview.org/devngc/32/5514_2.png) [@devngc](https://discourse.paraview.org/u/devngc)
#### Post date: [December 22, 2020, 4:14am UTC](https://discourse.paraview.org/t/fielddata-string-type-in-vtk/6109/1 "2020-12-22T04:14:45Z")

</div>

Can I use a string type data in FieldData? When I check this file on Glance, the type of FieldData named “radiance\_modifiers” is IntArray.

```
# vtk DataFile Version 2.0
Walls
ASCII
DATASET POLYDATA
POINTS 6 float
0.0 0.0 0.0
5.0 0.0 0.0
0.0 0.0 5.0
5.0 0.0 5.0
5.0 5.0 0.0
5.0 5.0 5.0
POLYGONS 2 10
4 0 1 3 2
4 1 4 5 3
CELL_DATA 2
NORMALS cell_normals int
0 -1 0
1 0 0
FIELD FieldData 2
radiance_reflectance 1 2 float
0.5 0.6
radiance_modifiers 2 2 char
generic_wall_0.5 generic_wall_0.6
```

---

<div class="post-metadata">

### Author: ![Joachim\_P](https://discourse.paraview.org/user_avatar/discourse.paraview.org/joachim_p/32/9596_2.png) [@Joachim\_P](https://discourse.paraview.org/u/Joachim_P)
#### Post date: [December 22, 2020, 10:48am UTC](https://discourse.paraview.org/t/fielddata-string-type-in-vtk/6109/2 "2020-12-22T10:48:22Z")

</div>

A string array should be declared as `string`, not `char`.

---

<div class="post-metadata">

### Author: ![devngc](https://discourse.paraview.org/user_avatar/discourse.paraview.org/devngc/32/5514_2.png) [@devngc](https://discourse.paraview.org/u/devngc)
#### Post date: [December 22, 2020, 2:32pm UTC](https://discourse.paraview.org/t/fielddata-string-type-in-vtk/6109/3 "2020-12-22T14:32:03Z")

</div>

Thanks for your response @Joachim_P . I just tried that but the array is not being recognized in Paraview Glance

```
# vtk DataFile Version 2.0
Walls
ASCII
DATASET POLYDATA
POINTS 6 float
0.0 0.0 0.0
5.0 0.0 0.0
0.0 0.0 5.0
5.0 0.0 5.0
5.0 5.0 0.0
5.0 5.0 5.0
POLYGONS 2 10
4 0 1 3 2
4 1 4 5 3
CELL_DATA 2
NORMALS cell_normals float
0 -1 0
1 0 0
FIELD FieldData 2
radiance_reflectance 1 2 float
0.5 0.6
radiance_modifiers 2 2 string
generic_wall_0.5 generic_wall_0.6

```

 ![Capture](https://discourse.paraview.org/uploads/default/original/2X/a/a67218a9e872340049278b10924f5861d834c61a.png)

---

<div class="post-metadata">

### Author: ![devngc](https://discourse.paraview.org/user_avatar/discourse.paraview.org/devngc/32/5514_2.png) [@devngc](https://discourse.paraview.org/u/devngc)
#### Post date: [December 22, 2020, 4:34pm UTC](https://discourse.paraview.org/t/fielddata-string-type-in-vtk/6109/4 "2020-12-22T16:34:35Z")

</div>

Meanwhile, I found [this](https://github.com/Kitware/vtk-js/issues/1229#issuecomment-571208753). Hi @jourdain, has there been any update on this?

---

<div class="post-metadata">

### Author: ![h1773](https://discourse.paraview.org/user_avatar/discourse.paraview.org/h1773/32/12141_2.png) [@h1773](https://discourse.paraview.org/u/h1773)
#### Post date: [August 21, 2023, 6:28am UTC](https://discourse.paraview.org/t/fielddata-string-type-in-vtk/6109/5 "2023-08-21T06:28:05Z")

</div>

Do you find anything on the issue you raised?

---

<div class="post-metadata">

### Author: ![Forrest\_Li](https://discourse.paraview.org/user_avatar/discourse.paraview.org/forrest_li/32/1935_2.png) [@Forrest\_Li](https://discourse.paraview.org/u/Forrest_Li)
#### Post date: [August 21, 2023, 8:14pm UTC](https://discourse.paraview.org/t/fielddata-string-type-in-vtk/6109/6 "2023-08-21T20:14:03Z")

</div>

This has been addressed in [#2864](https://github.com/Kitware/vtk-js/pull/2864).
