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

Home » Public Forums » archive » IDL code - problem to convert string to float
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: IDL code - problem to convert string to float [message #86704 is a reply to message #86703] Thu, 28 November 2013 09:24 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
capercas@topo.upv.es writes:

> printf,1,uki2
> for y=0L, nyears+4 do begin
> printf, 1, ['dummies','noData',$ //This is the line 965
> 'noData','noData','noData', $
> 'noData','noData','noData'],$
> format='(i10,i15,i15,i15,i15,i15,i15,i15)'

These are *strings* you are trying to print (e.g., "dummies", "noData",
etc.), not integers as your FORMAT statement would indicate. IDL is
complaining because you are sending it mixed messages. :-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: VERT_COLORS Problem
Next Topic: IDL environment "idlde" doesn't work

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

Current Time: Fri Oct 10 19:22:36 PDT 2025

Total time taken to generate the page: 1.11577 seconds