Submit a Story  :  IRAF Links  :  Past Polls  :  Calendar  :  Advanced Search  
     iraf.net
FAQ
 Forum FAQForum FAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ERROR: Newline while processing string

 
Post new topic   Reply to topic    iraf.net Forum Index -> Systems
View previous topic :: View next topic  
Author Message
morrisonss



Joined: 18 Sep 2009
Posts: 10

PostPosted: Tue Sep 22, 2009 6:39 pm    Post subject: ERROR: Newline while processing string Reply with quote

I am working on a script for creating master calibration images for some photometry that I am working on. When I try to run run through a while loop before it even gets into the loop I get the error:

ERROR: Newline while processing string
called as: `cl ()'

My code is as follows:

files /home/morrison/Solar_analogs/Flats/FLAT* >Flatfiles.lis
list = ""
list = "Flatfiles.lis"
c=""
c="1"
i=1
while(fscan(list,s3) !=EOF)
{
imgets(s3,"FILTER")
{
filter=imgets.value
};
if(filter=='V)
{
if(i<10)
{
nam="FLAT_Prompt2_09_04_09_282923_V_00"
};
if(i>=10 && i<100)
{
nam="FLAT_Prompt2_09_04_09_282923_V_0"
};
if(i>100)
{
nam="FLAT_Prompt2_09_04_09_282923_V_"
};
copy ("/home/morrison/Solar_analogs/Flats/"+nam+c+".fits", "/home/morrison/Solar_analogs/Flats/temp/")
imgets(s3,"EXPOSURE")
{
tim = real(imgets.value)
};
t=tim/expd
imarith(FLATDARK, "*",t,FDtemp)
imarith(s3, "-", "FDtemp",s3)
imstat(s3,fields="midpt",format-) | scan(y)
z=1/y
imarith(s3, "*",z,s3)
imdelete FDtemp
}
i=1+i
c=i
};

imcombine /home/morrison/Solar_analogs/Flats/temp/* FLAT combine=average reject=none outtype=real
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Tue Sep 22, 2009 7:21 pm    Post subject: Reply with quote

Check your quotes:

Code:
if(filter=='V)


Is missing a closing quote.....
Back to top
View user's profile Send private message
morrisonss



Joined: 18 Sep 2009
Posts: 10

PostPosted: Tue Sep 22, 2009 11:10 pm    Post subject: fixed Reply with quote

fixed thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> Systems All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2009 phpBB Group
 Copyright © 2005-2011 iraf.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.20 seconds