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 #88637 is a reply to message #88632] Thu, 22 May 2014 03:56 Go to previous messageGo to previous message
carolinaperpina is currently offline  carolinaperpina
Messages: 5
Registered: May 2014
Junior Member
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


Hi Fabien,
Thank you very much for your explanation, because I thought that was the number of columns, I got it!

So, taking into account my example, it should be...

capri_clc1990 = [[long(arableCLC90s)], [long(arableCAPRI1990s)],[long(PC_CLC90s)]

capri_clc2000 = [[long(arableCLC00s)], [long(arableCAPRI2000s)],[long(PC_CLC00s)]


csv_CLC_CAPRI= odir + country + '_CLC_CAPRI90.csv' ***file name
write_csv, csv_CLC_CAPRI, capri_clc1990,capri_clc2000

It is this correct?

Because also I was thinking to do it like this:

capri_clc1990 = [[long(arableCLC90s)], [long(arableCAPRI1990s)],[long(PC_CLC90s)]
capri_clc2000 = [[long(arableCLC00s)], [long(arableCAPRI2000s)],[long(PC_CLC00s)]

capri_1991_2000 = [[capri_clc1990],capri_clc2000]]

csv_CLC_CAPRI= odir + country + '_CLC_CAPRI90.csv' ***file name
write_csv, csv_CLC_CAPRI, capri_1991_2000

I do not know how to write it in a proper way...

Regards,
Carolina
[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: Thu Oct 09 23:07:10 PDT 2025

Total time taken to generate the page: 0.96243 seconds