comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Format codes in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Format codes in IDL [message #31189 is a reply to message #31077] Thu, 20 June 2002 02:39 Go to previous messageGo to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
Asti Bhatt wrote:

> Yes, exactly. I get the same message and that is specific to Mac. This
> works under Linux alright.
>
> Thanks Reiumar for the code, but there is so much data and I have
> applied different format codes to different fields. This way I will
> have to convert all the data in required form again and then apply the
> format codes. Than again NaN problem will be there. The thing is, my
> code with formats applied works perfectly under Linux but not under
> Mac. Why is that ??
>
> Asti
>


It doesn't on my Linux:


IDL Version 5.5a (linux x86). (c) 2001, Research Systems, Inc.
Installation number: 3437-9.
Licensed for use by: Radio and Space Plasma Physics Group

IDL> x=!values.f_nan
IDL> read,format='(f10.3)',b
: x
% Unable to apply format code F to input: "x".
% Execution halted at: $MAIN$


Which is what I would expect to happen. x is not valid input for a floating
point conversion - it's a character not a number.

--
-----------------------------------------------------------
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Lost my 'info' structure
Next Topic: Using COM objects in IDL (Win32 only)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 22 23:18:24 PDT 2025

Total time taken to generate the page: 3.99922 seconds