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

Home » Public Forums » archive » Format codes problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Format codes problem [message #47566] Thu, 16 February 2006 02:06
Klaus Scipal is currently offline  Klaus Scipal
Messages: 45
Registered: November 1997
Member
Hi

I have a problem with the format codes. I have to create filenames from two
index arrays. To do this I use the string command with format codes. If I
create the filename for each element of the index array step by step I get
the correct result if I do the operation for the entire array the result is
crap. The code looks like this:


IDL> gi=[1010,1007,1006,1011,1009]

IDL> gj=[509,510, 510,509,509]

IDL> for i=0, 4 do print, String(Format='("g",i4.4,i3.3)',gi[i],gj[i])
g1010509
g1007510
g1006510
g1011509
g1009509

IDL> print, String(Format='("g",i4.4,i3.3)',gi,gj)
g1010*** g1006*** g1009509 g0510510 g0509509

Does anyone know what is going on?

Klaus
[Message index]
 
Read Message
Previous Topic: Re: Newbie to satellite data and IDL
Next Topic: Re: Format codes problem

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

Current Time: Wed Oct 08 20:05:15 PDT 2025

Total time taken to generate the page: 0.00339 seconds