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 #67615 is a reply to message #67614] Tue, 04 August 2009 11:12 Go to previous messageGo to previous message
Barbara is currently offline  Barbara
Messages: 17
Registered: July 2009
Junior Member
On Aug 4, 11:07 am, pp <pp.pente...@gmail.com> wrote:
> 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.

i saved the image as an isv file.. in itools i went to save as and
saved the file. If lie_which is a scalar, how do I get an array from
it of the numbers that are in the image?
[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: Fri Oct 10 10:07:01 PDT 2025

Total time taken to generate the page: 3.36441 seconds