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

Home » Public Forums » archive » Calling vectors in readcol from a string array?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Calling vectors in readcol from a string array? [message #85124] Mon, 08 July 2013 09:37 Go to previous message
pslough93 is currently offline  pslough93
Messages: 2
Registered: July 2013
Junior Member
I would like to generate vector names using and put them in a string array, and then I need to call these vector titles in with the readcol command. Here is basically what I want:

vectorname1/vectorname2 are string arrays with the desired names of each vector spreadsheets is a string array of the file names of all of the spreadsheets I want to load in

For I = 0, n do begin

readcol, spreadsheets[I], vectorname1[I], vectorname2[I], format='x,d,x,x,d'

endfor

Plot, vectorname1_1, vectorname2_1

I have tried using the execute command (i.e. execute('readcol,' + spreadsheets[I] + ',' + vectorname1[I] + ',' ...) but IDL returns an error when it encounters the additional quotes in the format keyword.

Any Ideas?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Widget_Table set_value interrupts editing. Solution needed.
Next Topic: "OPENW: Error opening file. Unit: (...) Too many links" - What does this mean? (Possible I/O problem)

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

Current Time: Wed Oct 08 15:06:04 PDT 2025

Total time taken to generate the page: 0.00366 seconds