[Paraview] Not a Number (NaN) in legacy vtk file format

Mathieu Westphal mathieu.westphal at kitware.com
Fri Apr 27 08:25:18 EDT 2018


Hi Graham,

Legacy .vtk file do handle correctly NaN values.
Attached is a .vtk file that contains NaN values and can be opened and
visualized without issues in ParaView.

Best,

Mathieu Westphal

On Fri, Apr 27, 2018 at 2:16 PM, KNAPP Graham <graham.KNAPP at cstb.fr> wrote:

> Hello,
>
> Is it possible to include Not a Number values in the legacy vtk file
> format ?
>
> I have tried and I get length mismatch errors on import.  I am using
> Polydata – Cell data – Scalars – Float, writing the data from a Python
> script in a different application.
>
> If not, would it be possible to write a custom import filter for this?
> Any suggestions on how to start? Or another workaround?
>
> Thanks!
>
> Graham
>
>
>
>
>
>
>
> Dr.* Graham Knapp* Ph.D M.Eng MICE C.Eng
>
> *Senior Engineer – Major structures
> <http://recherche.cstb.fr/en/services/specialist-area/major-structures/>*
>
> *CLIMATOLOGY . **AERODYNAMICS . POLLUTION . PURIFICATION*
>
>
>
> Tel : +33 (0)240 372 045 (direct)
>
> Mob : +33 (0)665 055 693
>
> Fax : +33 (0)240 372 060
>
> graham.knapp at cstb.fr
>
> http://recherche.cstb.fr/en/
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180427/5132338d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 3824 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180427/5132338d/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: datasetWithNan.vtk
Type: application/octet-stream
Size: 120405 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180427/5132338d/attachment-0001.obj>


More information about the ParaView mailing list