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

Home » Public Forums » archive » Strange behaviour of format
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Strange behaviour of format [message #44915] Thu, 21 July 2005 10:50
Norbert Hahn is currently offline  Norbert Hahn
Messages: 46
Registered: May 2003
Member
Hi,

I want to output CSV data using a ; as delimiter. The following example shows
my problem:

temp = '"'+'Some Text'+'"', indgen(4), format='(A,20(";",F7.2))'
print, StrCompress(temp,/remove_all)

results in

"Some Text";0.00;1.00;2.00;3.00;

The problem I have is the trailing semicolon. As a workaround I compute
the number of elements in the integer array and insert that number in the
format statement. Is there a better way to either omit the trailing ;
or even to print CSV data?

Norbert
[Message index]
 
Read Message
Previous Topic: Re: IDL 5.5, 2D FFT indexing confusion.
Next Topic: IDL 5.5, 2D FFT indexing confusion.

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

Current Time: Thu Oct 09 22:22:28 PDT 2025

Total time taken to generate the page: 0.56094 seconds