[Paraview-developers] CSVReader - How to import Fortran Double Precision Data

Panos Asproulis panos.asproulis at gmail.com
Mon Jan 5 06:51:44 EST 2015


Hi all,

I wrote a plugin which uses the CSVReader in order to import a text file
which contains numbers. These numbers are in double precision generated
by a Fortran program and therefore they look like:

           1   0.10000D+01   0.10000D+01   0.10000D+01   0.10000D+01
0.00000D+00   0.00000D+00   0.10000D+01   0.10000D+01   0.10000D+01
0.10000D+01   0.00000D+00   0.00000D+00
           2   0.88689D+00   0.88446D+00   0.29593D+00   0.30657D+00
0.00000D+00   0.00000D+00   0.76404D+00   0.56075D+00   0.84502D+00
0.83968D+00   0.00000D+00   0.00000D+00

The problem seems to be the character "D" used by Fortran to denote
numbers in double precision. So, if I read these numbers as shown above
then ParaView interprets them as strings. If I replace the "D" character
with "E" then it interprets them as floating point numbers.

Is there any way to make the ParaView CSVReader interpret the
"D"-formatted Fortran numbers as floating point numbers?

Thanks in advance,
Panos


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20150105/f365b749/attachment.html>


More information about the Paraview-developers mailing list