(Posting back to the list.)

Ah, yes. The reader for the VTK ASCII format does not handle non-finites like 
NaN. (It has to do with the standard C++ streams not supporting it, but I don't 
want to go into details.) However, if you write out something in VTK binary 
format, that should work.

-Ken

From: Léo Pessanha 
<[email protected]<mailto:[email protected]>>
Date: Monday, October 7, 2013 9:28 AM
To: Kenneth Moreland <[email protected]<mailto:[email protected]>>
Subject: [EXTERNAL] Re: [Paraview] Null Scalar Value

Hi,

All the data is ok, same it was before ----> There are no errors in the data

 the same size, same structure, only the -9999.0000 values were replaced by the 
word NaN

But i get the size declaration error

Paraview is not understanding NaN

Leonardo Pessanha
Rio de Janeiro, Brasil



2013/10/4 Moreland, Kenneth <[email protected]<mailto:[email protected]>>
Sorry, I got confused by your response. When you say "all the data is ok," does 
that mean it worked or it didn't work? When you say "the same as before," do 
you mean the NaNs disappeared and got magically replaced by whatever value you 
were using before?

-Ken

Sent from my iPad so blame autocorrect.

On Oct 4, 2013, at 3:49 PM, "Léo Pessanha" 
<[email protected]<mailto:[email protected]>> wrote:

using float.nan It wrote down '' nan '' in the vtk

then, importing to paraview i get mismatch of size declaration

but all the data is ok, the same as it was before

Leonardo Pessanha
Rio de Janeiro, Brasil


2013/10/4 Moreland, Kenneth <[email protected]<mailto:[email protected]>>
In Java you can get a NaN from java.lang.Double.NaN or java.lang.Float.NaN.

-Ken

From: Léo Pessanha 
<[email protected]<mailto:[email protected]>>
Date: Friday, October 4, 2013 1:21 PM

To: Kenneth Moreland <[email protected]<mailto:[email protected]>>
Subject: [EXTERNAL] Re: [Paraview] Null Scalar Value

But , i am creating vtk`s with java( cant use vtkMathNan())

If i put 0/0? Paraview will understand that`s a NaN Value?

Att,
Leonardo Pessanha
Rio de Janeiro, Brasil


2013/10/3 Moreland, Kenneth <[email protected]<mailto:[email protected]>>
No. A NaN (Not a Number) is a special value in IEEE floating point format that 
represents something that is not a valid number. For example, if you try 
0.0/0.0, you get NaN because the result is not defined.

You can generate a NaN by calling vtkMath::Nan(). (vtkMath also has functions 
to check to see if a value is a NaN or other non-finite.)

-Ken

From: Léo Pessanha 
<[email protected]<mailto:[email protected]>>
Date: Thursday, October 3, 2013 1:39 PM
To: Kenneth Moreland <[email protected]<mailto:[email protected]>>
Subject: [EXTERNAL] Re: [Paraview] Null Scalar Value

A NaN value is something like -9999.0000??


2013/10/3 Moreland, Kenneth <[email protected]<mailto:[email protected]>>
Can you put a NaN value in these points?

-Ken

From: Léo Pessanha 
<[email protected]<mailto:[email protected]>>
Date: Thursday, October 3, 2013 12:35 PM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: [EXTERNAL] [Paraview] Null Scalar Value

I think it`s a simple question...


I have a scalar value(point_data) between -0.5 and 0.5 in vtk format files

I have some points without information

I would like to put something like '' NULL '' value in this points, but i can`t 
seem to find a way

I`ve tried 0 but its in the range of the information and that didnt work

Can anybody help me?

Thanks in advance

Leonardo Pessanha,
Rio de Janeiro - Brasil




_______________________________________________
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to