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

Home » Public Forums » archive » Re: Forcing READ_ASCII output to be a set of strings...
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: Forcing READ_ASCII output to be a set of strings... [message #43002] Mon, 14 March 2005 10:42 Go to previous message
Jonathan Greenberg is currently offline  Jonathan Greenberg
Messages: 91
Registered: November 2002
Member
I kinda answered my own question -- I took the read_ascii.pro that IDL
distributes and simply changed the default behavior on this line:

fieldTypesUse = REPLICATE(4L, fieldCountUse)

To

fieldTypesUse = REPLICATE(7L, fieldCountUse)

This appears to work fine... I'm kicking IDL a request to modify this so
it'll default to a user-defined format...

--j

On 3/14/05 9:56 AM, in article BE5B1035.416B%usenet@estarcion.net, "Jonathan
Greenberg" <usenet@estarcion.net> wrote:

> I'm trying to use READ_ASCII to read in a text file which contains
> parameters for the algorithm I'm developing (so the user just modifies the
> .csv file instead of having to type all the parameters into the idl command
>
> line). It appears to be defaulting to an array of floating points in the
> structure, but I want the values to be read in as text (they contain things
> like paths to certain file, etc). How do I "force" READ_ASCII to bring
> those values in as an array of strings?
>
> --j
>
[Message index]
 
Read Message
Read Message
Previous Topic: Assigning structure tag names from variables?
Next Topic: Deleting structures (does this work, or am I missing something?)

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

Current Time: Sat Oct 11 14:36:34 PDT 2025

Total time taken to generate the page: 0.72319 seconds