RE: Input format and NaNs
- From: meek@xxxxxxxxxxxxxxx
- Date: 30 JAN 06 19:20:59 GMT
In a previous article, Bruce Bowler <bbowler@xxxxxxxxxxx> wrote:
>I have a datafile that I'm trying to read that has NaNs in it, on
>occasion, where the result of a calculation in another language was a NaN.
>Where there aren't NaNs there are floating point numbers.
>
>Is there a format specifier I can use that won't puke on NaN in the input
>stream, or do I have to read things into a string, check for NaN and then
>using an internal read if there isn't a NaN or preprocess the file with
>something else to replace the NaNs with a "known bad value" that FORTRAN
>can read on it's own?
>
>Using Salford f95 compiler, if it makes a difference.
>
>TIA,
>Bruce
Yes - I had that problem when using ncdump.exe to write
contents of a netcdf file in ascii -
(An earlier version of ncdump.exe - with no distinguishing
features except smaller size! gave extra unsolicited numbers!!
Beware of netcdf !)
I assumed that NaN stood for gap, and edited it accordingly
in the DOS editor.
Chris
.
- References:
- Input format and NaNs
- From: Bruce Bowler
- Input format and NaNs
- Prev by Date: Re: Input format and NaNs
- Next by Date: Re: Are generic linked lists possible in Fortran95?
- Previous by thread: Re: Input format and NaNs
- Next by thread: An extremely simple example on how to build a lib (fortran) with automake
- Index(es):
Relevant Pages
|
|