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

Home » Public Forums » archive » Re: Is there a better way???
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Is there a better way??? [message #77986] Tue, 11 October 2011 21:28
Matt Francis is currently offline  Matt Francis
Messages: 94
Registered: May 2010
Member
Thanks Paulo, that's exactly what I'm after.
Re: Is there a better way??? [message #77987 is a reply to message #77986] Tue, 11 October 2011 20:52 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Oct 11, 6:30 pm, Beaker <mattjamesfran...@gmail.com> wrote:
> nrows = <int derived after reading in data to temporary strarr line by
> line>

By the way, there is usually no need to read into a strarr line by
line. It is typically done with

lines=strarr(file_lines(file))
openr,unitr,file,/get_lun
readf,unitr,lines
free_lun,unitr
Re: Is there a better way??? [message #77988 is a reply to message #77987] Tue, 11 October 2011 19:37 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Oct 11, 6:30 pm, Beaker <mattjamesfran...@gmail.com> wrote:
> This feels like an awful hack, and has the limitiation that it can
> only be run once a session as I can't work out how to specify the name
> of the structure (since replicate can't be convinced to interpret a
> string as the name of a structure).

I do not see why it would run only once per session. Anyway, it seems
that what you are looking for is create_struct(), possibly with
idl_validname(). See the help on them.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Is there a better way???
Next Topic: ROI_pac

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

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

Total time taken to generate the page: 0.00486 seconds