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

Home » Public Forums » archive » String Array to 'regular' array?
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
String Array to 'regular' array? [message #67618] Tue, 04 August 2009 10:49 Go to next message
Barbara is currently offline  Barbara
Messages: 17
Registered: July 2009
Junior Member
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?
Re: String array [message #79921 is a reply to message #67618] Fri, 13 April 2012 20:20 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Theresa writes:

> I'm semi-new to creating programs and I've hit a wall.
>
> I'm creating a program that will allow anyone to fetch data from a ftp
> site. I started with a start time and end time. The next step is to
> create a string array in order to generate the correct address for the
> ftp site.
>
> I think I need to create a for loop in order to this. This is where I
> hit the wall. How do you generate a string array in the format
> yyyymmdd with a given start time and end time?

You could look at the TimeStamp program from the Coyote
Library and see how a variety of time stamps were created
from time values. Since this is not one of the 12 formats
offered by the program, you could even figure out how
to do this and add the format as the 13th possible value,
thereby gaining fame and fortune as an IDL programmer!

http://www.idlcoyote.com/programs/timestamp.pro

It might take you five minutes to do. Probably less
time if you realize that format 12 is nearly what you
want to do. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: String array
Next Topic: Classification with ENVI

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

Current Time: Wed Oct 08 13:42:29 PDT 2025

Total time taken to generate the page: 0.00500 seconds