<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>
<div>
<div>(Posting back to the list.)</div>
</div>
</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>-Ken</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Léo Pessanha <<a href="mailto:leonardopessanha74@gmail.com">leonardopessanha74@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Monday, October 7, 2013 9:28 AM<br>
<span style="font-weight:bold">To: </span>Kenneth Moreland <<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>><br>
<span style="font-weight:bold">Subject: </span>[EXTERNAL] Re: [Paraview] Null Scalar Value<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>All the data is ok, same it was before ----> There are no errors in the data</div>
<div><br>
</div>
<div> the same size, same structure, only the -9999.0000 values were replaced by the word NaN <br>
<br>
But i get the size declaration error</div>
<div><br>
</div>
<div>Paraview is not understanding NaN<br>
<br>
Leonardo Pessanha</div>
<div>Rio de Janeiro, Brasil</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2013/10/4 Moreland, Kenneth <span dir="ltr"><<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">
<div>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?<br>
<br>
<div>-Ken</div>
<div><br>
</div>
Sent from my iPad so blame autocorrect.</div>
<div>
<div class="h5">
<div><br>
On Oct 4, 2013, at 3:49 PM, "Léo Pessanha" <<a href="mailto:leonardopessanha74@gmail.com" target="_blank">leonardopessanha74@gmail.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr">using float.nan It wrote down '' nan '' in the vtk
<div><br>
</div>
<div>then, importing to paraview i get mismatch of size declaration<br>
<br>
</div>
<div>but all the data is ok, the same as it was before</div>
<div><br>
</div>
<div>Leonardo Pessanha</div>
<div>Rio de Janeiro, Brasil</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2013/10/4 Moreland, Kenneth <span dir="ltr"><<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>
<div>
<div>In Java you can get a NaN from java.lang.Double.NaN or java.lang.Float.NaN.</div>
</div>
</div>
<div><br>
</div>
<div>-Ken</div>
<div><br>
</div>
<span>
<div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none">
<span style="font-weight:bold">From: </span>Léo Pessanha <<a href="mailto:leonardopessanha74@gmail.com" target="_blank">leonardopessanha74@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Friday, October 4, 2013 1:21 PM
<div>
<div><br>
<span style="font-weight:bold">To: </span>Kenneth Moreland <<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>><br>
<span style="font-weight:bold">Subject: </span>[EXTERNAL] Re: [Paraview] Null Scalar Value<br>
</div>
</div>
</div>
<div>
<div>
<div><br>
</div>
<blockquote style="BORDER-LEFT:#b5c4df 5 solid;PADDING:0 0 0 5;MARGIN:0 0 0 5">
<div>
<div>
<div dir="ltr">But , i am creating vtk`s with java( cant use vtkMathNan())<br>
<br>
If i put 0/0? Paraview will understand that`s a NaN Value?<br>
<br>
Att,<br>
Leonardo Pessanha
<div>Rio de Janeiro, Brasil</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2013/10/3 Moreland, Kenneth <span dir="ltr"><<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>
<div>
<div>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.</div>
</div>
</div>
<div><br>
</div>
<div>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.)</div>
<div><br>
</div>
<div>-Ken</div>
<div><br>
</div>
<span>
<div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none">
<span style="font-weight:bold">From: </span>Léo Pessanha <<a href="mailto:leonardopessanha74@gmail.com" target="_blank">leonardopessanha74@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, October 3, 2013 1:39 PM<br>
<span style="font-weight:bold">To: </span>Kenneth Moreland <<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>><br>
<span style="font-weight:bold">Subject: </span>[EXTERNAL] Re: [Paraview] Null Scalar Value<br>
</div>
<div>
<div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">A NaN value is something like -9999.0000??</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2013/10/3 Moreland, Kenneth <span dir="ltr"><<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>
<div>
<div>Can you put a NaN value in these points?</div>
</div>
</div>
<div><br>
</div>
<div>-Ken</div>
<div><br>
</div>
<span>
<div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none">
<span style="font-weight:bold">From: </span>Léo Pessanha <<a href="mailto:leonardopessanha74@gmail.com" target="_blank">leonardopessanha74@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, October 3, 2013 12:35 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>" <<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>><br>
<span style="font-weight:bold">Subject: </span>[EXTERNAL] [Paraview] Null Scalar Value<br>
</div>
<div>
<div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">I think it`s a simple question...
<div><br>
</div>
<div><br>
</div>
<div>I have a scalar value(point_data) between -0.5 and 0.5 in vtk format files</div>
<div><br>
</div>
<div>I have some points without information</div>
<div><br>
</div>
<div>I would like to put something like '' NULL '' value in this points, but i can`t seem to find a way</div>
<div><br>
</div>
<div>I`ve tried 0 but its in the range of the information and that didnt work<br>
<br>
Can anybody help me?</div>
<div><br>
</div>
<div>Thanks in advance<br>
<br>
Leonardo Pessanha,</div>
<div>Rio de Janeiro - Brasil</div>
</div>
</div>
</div>
</div>
</div>
</span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</span></div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</body>
</html>