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 #31188 is a reply to message #31077] Thu, 20 June 2002 08:30 Go to previous messageGo to previous message
astib is currently offline  astib
Messages: 15
Registered: June 2002
Junior Member
Hi-

If you try to assign any other value to x, it will give the same
error. e.g.
IDL>x = 2.2
IDL> read,format='(f10.3)',b
: x
% Unable to apply format code F to input: "x".
% Execution halted at: $MAIN$

The thing is, it doesn't accept any "variable" as input to READ or
READF. Why that ?

On my Linux, it runs fine. Also, I am generating NaN's in my code and
NaN is Not a Number, but indeed a value. It is not character or string
surely. I have whole data set as float and NaN is generated when there
is no data. So it is right alligned only, since it is treated as a
value. Now what ??

Asti


Nigel Wade <nmw@ion.le.ac.uk> wrote in message news:<aes7s4$b6h8$1@rook.le.ac.uk>...
> 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.
[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 07:35:14 PDT 2025

Total time taken to generate the page: 0.24115 seconds