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 #67610 is a reply to message #67609] Tue, 04 August 2009 12:54 Go to previous messageGo to previous message
Barbara is currently offline  Barbara
Messages: 17
Registered: July 2009
Junior Member
On Aug 4, 11:49 am, pp <pp.pente...@gmail.com> wrote:
> On Aug 4, 3:12 pm, Barbara <med...@susqu.edu> wrote:
>
>
>
>> 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?
>
> Open the isv in an itool (in Windows, double-clicking the file should
> do it, or just open any itool from IDL (a simple iplot in the command
> line is enough, it does not matter which itool made the isv file)).
> Then select the image you are interested in, and use File->Export data
> to IDL (I think before IDL 7.1 it used to be in File->Export->To an
> IDL variable). You can then select to export the image (imagepixels)
> and/or the palette, and pick the name of the variables where they are
> put (they default to image_planes and palette).

Thank you both! This was very helpful (and David your story made me
smile and but me into perspective haha) and I am glad I have it all
figured out now!
[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: Thu Oct 09 02:47:32 PDT 2025

Total time taken to generate the page: 1.11890 seconds