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

Home » Public Forums » archive » print .txt files with all my data in columns
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: print .txt files with all my data in columns [message #88636 is a reply to message #88635] Thu, 22 May 2014 02:16 Go to previous messageGo to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
If you read the documentation you see that:

Data1 can be an IDL structure in which each field contains a vector of
data that corresponds to a separate column in the output file. The
vectors must all have the same number of elements, but can have
different data types. If Data1 is an IDL structure, all other Data
arguments are ignored.

Data1 can be a two-dimensional array in which each column in the array
corresponds to a separate column in the output file. If Data1 is a
two-dimensional array, all other Data arguments are ignored.

This allows you to have any number of columns you want


On 22.05.2014 11:00, carolinaperpina@gmail.com wrote:
> On Thursday, May 22, 2014 10:22:22 AM UTC+2, carolin...@gmail.com wrote:
>> Hi all,
>>
>>
>>
>> I am quite new using IDL and I would like to merge different arrays just in one .txt file.
>>
>>
>>
>> I wrote at the begging of my code:
>>
>>
>>
>> CLC_CAPRIfile1990 = odir + country + '_1990_CLC_CAPRI.txt'
>>
>> openw, 4, CLC_CAPRIfile1990
>>
>>
>>
>>
>>
>> **first array [21,3]
>>
>> capri_clc1990 = [[long(arableCLC90s)], [long(arableCAPRI1990s)],[long(PC_CLC90s)]
>>
>>
>>
>> ***second array [21,3]
>>
>> capri_clc2000 = [[long(arableCLC00s)], [long(arableCAPRI2000s)],[long(PC_CLC00s)]
>>
>>
>>
>> I would like to print an array of [42,3], that's mean that the merging should be in columns (I can accepted also in rows).
>>
>>
>>
>>
>>
>> printf, 4, ******I don not how to do this print.
>>
>>
>>
>>
>>
>> Thank you very much in advance.
>>
>> Regards,
>>
>> Carolina
>
> The problem is that write_csv just accept 8 columns. My data are bigger than 8, I have put just an example of it.
> Thank you!
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: continuous changing shape of plotting symbol
Next Topic: IDLWAVE history savefile

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

Current Time: Fri Oct 10 20:12:21 PDT 2025

Total time taken to generate the page: 0.47861 seconds