# Visualizing Complex E&M Modes CSV File

**URL:** https://discourse.paraview.org/t/visualizing-complex-e-m-modes-csv-file/6611
**Category:** ParaView Support
**Created:** [March 4, 2021, 1:55am UTC](https://discourse.paraview.org/t/visualizing-complex-e-m-modes-csv-file/6611 "2021-03-04T01:55:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![electronsandstuff](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/e/8dc957/32.png) [@electronsandstuff](https://discourse.paraview.org/u/electronsandstuff)
#### Post date: [March 4, 2021, 1:55am UTC](https://discourse.paraview.org/t/visualizing-complex-e-m-modes-csv-file/6611/1 "2021-03-04T01:55:16Z")

</div>

Hey guys! Sorry that I’m a little new to paraview. I have a CSV file of the form:

x, y, z, Ex, Ey, Ez, Bx, By, Bz  
0.0, 0.0, 0.0, 0.0+0.0i, 0.0+0.0i, 0.0+0.0i,  
…

It represents an EM mode of a given frequency (optical) where the real/complex portions get turned into a time dependent field with something like the following.

E = cos( w t + φ ) E re − sin( w t + φ ) E im

Does anybody have suggestions on how to import this data correctly into paraview? I have started by opening the CSV file, but I was immediately struck with the problem that paraview doesn’t want to see my complex fields as a numeric datatype. It sees them as strings instead.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 4, 2021, 8:25am UTC](https://discourse.paraview.org/t/visualizing-complex-e-m-modes-csv-file/6611/2 "2021-03-04T08:25:28Z")

</div>

> paraview doesn’t want to see my complex fields as a numeric datatype. It sees them as strings instead.

ParaView doesnt support complex numbers. The best you could achieve is to separate them into two arrays or a single array with two components.

However, to achieve that, you will need to convert the strings into numerical data. Afaik, this is only possible through a programmable filter.

The next step would be to convert your tabular data into a point cloud using TableToPoints filter.
