Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > IDL batch index...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 5524 of 6454
Post > Topic >>

IDL batch indexing

by Raghu <raghuram.narasimhan@[EMAIL PROTECTED] > Mar 10, 2008 at 10:30 PM

Hi all,

I am writing a batch processing routine in order to do some querying.

Steps:

1) Read in 30 images ( could be 60 or more..hence using batch)

Since i am using a file_search method to read in all the files, i want
each file to be given a unique name or ID because i need to compare
them with each other. So, instead of reading in 30 files separately
and assigning variable names to them, i want to do it automatically
using a counter in a loop or something like that.

Eg: if i=0 and numfiles=30,
i want to name the first file thats read b1, second file b2, third b3,
30th as b30.
Once these are named, i want to be able to compare b1 to b2 or b3 to
b5 etc.
So, its not just about naming these files since that can be done with
a strmid function.

my idea was something like

names=file_search(*.img,count=numfiles)
while i lt numfiles
b[i]=names(i)

I have tried it and it says b is not defined. I am guessing i cannot
name variables dynamically.

I don't know if i am very clear about my problem.
Basically, i want to be able to assign unique variable names to each
file thats read so that i can use those unique IDs to query and
compare.

Any ideas ? i can give more information or try to be clearer about my
problem if necessary.

Raghu
 




 8 Posts in Topic:
IDL batch indexing
Raghu <raghuram.narasi  2008-03-10 22:30:41 
Re: IDL batch indexing
metachronist <rkombiyi  2008-03-11 00:06:00 
Re: IDL batch indexing
Reimar Bauer <R.Bauer@  2008-03-11 09:38:52 
Re: IDL batch indexing
fergason@[EMAIL PROTECTED  2008-03-11 12:49:06 
Re: IDL batch indexing
Reimar Bauer <R.Bauer@  2008-03-11 18:39:24 
Re: IDL batch indexing
Vince Hradil <hradilv@  2008-03-11 08:16:12 
Re: IDL batch indexing
metachronist <rkombiyi  2008-03-13 09:09:53 
Re: IDL batch indexing
Raghu <raghuram.narasi  2008-03-14 21:00:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 13:55:09 CST 2008.