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

Home » Public Forums » archive » [question] on adding strings when reading file names
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
[question] on adding strings when reading file names [message #36974] Tue, 11 November 2003 09:13
cmin2000 is currently offline  cmin2000
Messages: 1
Registered: November 2003
Junior Member
Hi,

I am new to this IDL group.
I am trying to read multiple tiff images into my program.

It was quite easy using C. But, since I am new to IDL, I am suffering.

In C, it was something like the following:
If I was reading frame0.tif, frame1.tif, frame2 ... frame9.tif
I could run something like "read_frame frame%d.tif " and
was able to read multiple frames.

/********************
read_frame.c
********************/
int l, frames;
char *ifile,ifile1[80];
FILE *fpr;

for(l=1;l<=9;l++){
sprintf(ifile1,ifile,l);
}
if(!(fpr=fopen(ifile1,"r"))){
printf("cannot open file: %s\n",ifile1);
exit(1);
}
.....


I would like to do a similar stuff using IDL, but not quite sure
how to catenate the strings.

I hope some one can give me some help.

Thanx.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: using convert_coord with multiple plotting windows
Next Topic: library or one file

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

Current Time: Wed Oct 08 14:52:37 PDT 2025

Total time taken to generate the page: 0.00482 seconds