X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 19 Dec 2013 02:15 AM by  anon
(join) .csv files
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
19 Dec 2013 02:15 AM
    Hi all, I have a problem due to the procedure called "write_csv.pro" (http://www.exelisvis.com/docs/WRITE_CSV.html) does not allow me to include more than 8 data. First of all I would like to know if I can change the limitation of data that can be read (honestly, I do not how to do it) In my main procedure what I want to do is join the outputs of this procedure which are .csv files (csv_file1, csv_file2, csv_file3). Is there anyway to join this three .csv files obtaining just one with all the data (per columns)? Thank you very much, Carolina

    Deleted User



    New Member


    Posts:
    New Member


    --
    19 Dec 2013 06:59 PM
    Hi Carolina, As you can see from the IDL help, the number of columns is limited to a maximun of 8: Data1...Data8 Now, since the source code can be found in the file write_csv.pro in the lib subdirectory of the IDL distribution, there is a chance that you could modify it so include more columns. Simply, type the following in the IDL prompt: IDL> .edit write_csv.pro And you will be able to see the source code inside the IDL Workbench editor. See the describtion header and the input parameters. I hope modifying the code will help you add more columns. Cheers, Fernando

    Deleted User



    New Member


    Posts:
    New Member


    --
    20 Dec 2013 09:49 AM
    Huh!? I don't think so. It is true you are limited to 8 vectors of data, but this is only one way of specifying the data. In fact, you can pass the data as a 2D array and write as many columns of data as you like! All you have to do here is read your data from your three data files, concatenate the data normally (see the Dimensional Juggling and Array Concatenation tutorials here http://www.idlcoyote.com/tips/tutorials.php if you need help doing this), and write the whole thing out. This should not be much of a problem.
    You are not authorized to post a reply.