[Paraview] Null Scalar Value

Moreland, Kenneth kmorel at sandia.gov
Mon Oct 7 12:17:29 EDT 2013


(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 <leonardopessanha74 at gmail.com<mailto:leonardopessanha74 at gmail.com>>
Date: Monday, October 7, 2013 9:28 AM
To: Kenneth Moreland <kmorel at sandia.gov<mailto:kmorel at sandia.gov>>
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 <kmorel at sandia.gov<mailto:kmorel at sandia.gov>>
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" <leonardopessanha74 at gmail.com<mailto:leonardopessanha74 at gmail.com>> 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 <kmorel at sandia.gov<mailto:kmorel at sandia.gov>>
In Java you can get a NaN from java.lang.Double.NaN or java.lang.Float.NaN.

-Ken

From: Léo Pessanha <leonardopessanha74 at gmail.com<mailto:leonardopessanha74 at gmail.com>>
Date: Friday, October 4, 2013 1:21 PM

To: Kenneth Moreland <kmorel at sandia.gov<mailto:kmorel at sandia.gov>>
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 <kmorel at sandia.gov<mailto:kmorel at sandia.gov>>
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 <leonardopessanha74 at gmail.com<mailto:leonardopessanha74 at gmail.com>>
Date: Thursday, October 3, 2013 1:39 PM
To: Kenneth Moreland <kmorel at sandia.gov<mailto:kmorel at sandia.gov>>
Subject: [EXTERNAL] Re: [Paraview] Null Scalar Value

A NaN value is something like -9999.0000??


2013/10/3 Moreland, Kenneth <kmorel at sandia.gov<mailto:kmorel at sandia.gov>>
Can you put a NaN value in these points?

-Ken

From: Léo Pessanha <leonardopessanha74 at gmail.com<mailto:leonardopessanha74 at gmail.com>>
Date: Thursday, October 3, 2013 12:35 PM
To: "paraview at paraview.org<mailto:paraview at paraview.org>" <paraview at paraview.org<mailto:paraview at paraview.org>>
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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20131007/b396db3b/attachment.htm>


More information about the ParaView mailing list