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 #31195 is a reply to message #31077] Wed, 19 June 2002 12:58 Go to previous messageGo to previous message
astib is currently offline  astib
Messages: 15
Registered: June 2002
Junior Member
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


thompson@orpheus.nascom.nasa.gov (William Thompson) wrote in message news:<aeq601$s69$1@skates.gsfc.nasa.gov>...
> astib@cc.usu.edu (Asti Bhatt) writes:
>
>> No, if I do like -
>> IDL>x = !values.f_nan
>> IDL> read,format = '(3f10.3)', b
>> and if in the input i give x, it will give me an error. Not only NaN,
>> but if I say x=2 and try to give it as input to read with format
>> specified, it will give me error. And this is typical to Macintosh. I
>> tried same thing under Linux and it works fine. Actually I have a .dat
>> file from which I need to read data, there are some NaN's also, and on
>> macintosh, it refuses to read it by giving this error - %Unable to
>> apply format code blah blah to 'variable'(whatever it is).
>
> You mean that you're reading in from the keyboard, and instead of typing in a
> number, you type in the character name of an IDL variable? That certainly
> doesn't work on my machine under 5.4. Was this something added to 5.5? I get
>
> IDL> x=3
> IDL> read,format='(3f10.3)',b
> : x
> % Unable to apply format code F to input: "x".
> % Execution halted at: $MAIN$
>
> I'm very confused,
>
> Bill Thompson
>
>
>> Do you know if rsi has any patch for this ? I searched the website for
>> this, but couldn't get anything.
>
>> Thanks,
>> Asti
>
>
[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: Sun Apr 26 16:19:28 PDT 2026

Total time taken to generate the page: 1.99703 seconds