[Nexus] support for NaN (not a number)?

Peterson, Peter F. (pf9) petersonpf at ornl.gov
Thu Jan 22 13:15:38 GMT 2009


Carlos,

I'm not sure what NeXus does, but I'm suspicious it just follows IEEE
standard. That being said, IEEE has no concept of NaN for integer types. It
is strictly for floats (single and double precision).

Peter Peterson


On 1/22/09 7:04 AM, "Carlos Pascual Izarra" <carlos.pascual at cells.es> wrote:

> Hello,
> Can anyone point me to some documentation on how to handle NaN's in datasets?
> 
> My data comes from several counters that are read simultaneously from time to
> time. I want to save them in separate 1D Nexus datasets. Sometimes one
> counter may not return a reading, in which case I would like to insert a NaN
> marker in the given position of the dataset to signify it was invalid.
> It should work for NX_FLOAT* and NX_*INT* data types
> 
> I am using the python binding.
> Cheers,
> 
> Carlos



More information about the NeXus mailing list