Welcome to iraf.net Friday, May 10 2024 @ 12:04 AM GMT


 Forum Index > Help Desk > Systems New Topic Post Reply
 fscan difficulty, please help
   
rrhine
 06/24/2008 04:30PM (Read 2914 times)  
+----
Newbie

Status: offline


Registered: 06/24/2008
Posts: 2
Hi all,I have been having a lot of frustration with fscan, and despite others postings, I cannot get it to work.Here is my code:-----------------------------------
procedure testm()string s1, s2, s3
struct *imagelistbeginimagelist = "Structure.lis"while (fscan (imagelist, s1, s2, s3) != EOF) {
print (s1 , " " , s2 , " " , s3) ;}end
-------------------------------------When I run testm, IRAF asks me to input a value for imagelist; it doesn't seem to be able to read from Structure.lis (I made sure it is in the directory).
I realize that imagelist needs to have a '*' before it so that it will be considered to be accessing a list file, so I'm not sure whats wrong.Thanks!

 
Profile Email
 Quote
fitz
 06/24/2008 04:30PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Be sure you are declaring the task to have parameters, i.e.[code:1:1839789cba]task testm = /path/testm.clAND NOTtask $testm = /path/testm.cl[/code:1:1839789cba]The first declaration works for me, the second prompts me for imagelist. A '$' in the declaration means the task has no parameters, however any variable declared before the 'begin' statement are considered parameters.Cheers,
-Mike

 
Profile Email
 Quote
rrhine
 06/24/2008 04:30PM  
+----
Newbie

Status: offline


Registered: 06/24/2008
Posts: 2
That explains everything! Thanks!

 
Profile Email
 Quote
   
Content generated in: 0.07 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login