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

Home » Public Forums » archive » Group specification of format codes on data of varying dimensions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Group specification of format codes on data of varying dimensions [message #60708] Mon, 09 June 2008 07:28
cgoethel is currently offline  cgoethel
Messages: 20
Registered: April 2008
Junior Member
Hi All,

I am having trouble figuring out how to use group specification of
formats when my data has varying dimensions. For example:

for i = 0l, c-1 do begin
printf, lun, time_string, data[i,*], format='(12a,
ncol(2x,e10.15))'
endfor

I would like to repeat the format (2x,e10.15) for the number of
columns in data[i,*]. However, the number of columns varies. When I
use a variable in the format statement, I get the error 'Expected
comma or slash'.
Any suggestions on how to handle this?

Thanks for your help!

Cindy
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: widget, draw and file pickup
Next Topic: Re: Group specification of format codes on data of varying dimensions

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

Current Time: Wed Oct 08 18:41:54 PDT 2025

Total time taken to generate the page: 0.00411 seconds