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

Home » Public Forums » archive » Re: String Array to 'regular' 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
Re: String Array to 'regular' array? [message #67616 is a reply to message #67615] Tue, 04 August 2009 11:07 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Aug 4, 2:51 pm, Barbara <med...@susqu.edu> wrote:
> On Aug 4, 10:49 am, Barbara <med...@susqu.edu> wrote:
>
>> Ok so here's the current issue. I created an average of a few images
>> the other day, and saved the images as an .isv file.  I went to use
>> it, and realized I can't use half of the image because the numbers are
>> zeros. So I tried to just take a few rows of the image, and I get an
>> error every time. The image is a 1024x1024 image. But I get an error
>> that says:
>
>> % Attempt to subscript MF with <INT      (     123)> is out of range.
>> % Execution halted at: $MAIN$
>
>> (after I had input IDL> read2=mf[123,123] )
>
>> Is there a way to fix this or do I have to re-average the images? And
>> if that's the case, how do I save it next time so I can use it after
>> having closed and reopened IDL?
>
> I should also add that mf is a string array, I had done mf=file_which
> (blah blah blah))

From that I do not understand what you did. What do you mean by "went
to use it"? How did you make the isv files?

Also, what is about string arrays that makes you call them not
regular?

file_which always returns a string scalar, which is why the indexes
you use (123,123) do not exist. It is just the path for the first file
found matching the conditions of its arguments.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: envi_convert_file_coordinates
Next Topic: closing tabs of widget_tab()

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

Current Time: Wed Oct 08 19:33:40 PDT 2025

Total time taken to generate the page: 0.00453 seconds