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 

objmasks filename problem

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



Joined: 26 Feb 2008
Posts: 12

PostPosted: Wed Sep 26, 2012 9:52 pm    Post subject: objmasks filename problem Reply with quote

I am experiencing a strange problem: I have a file that I want to run objmasks on, and it only seems to work if I remove the ".fits" when I type the filename.
So for example, if my file is obs101.fits, then I can only get objmasks to run and produce a mask if I type:
> objmasks obs101
Then the task runs, and the output looks good.

If I instead do:
> objmasks obs101.fits
then nothing happens! It simply returns me to the prompt without outputting anything. This is a problem because I am running objmasks via cl script on a large list of files that I have created with the hselect command. Not all the files in the directory are included, so I unfortunately cannot call objmasks with something like obs*%.fits%% (I did check that this would work though).

Any idea why this is happening, or how I could cut off the .fits extension when calling objmasks? I tried renaming the files without the .fits on the end, but then objmasks doesn't work at all...
Back to top
View user's profile Send private message
valdes
IRAF Guru


Joined: 11 Nov 2005
Posts: 677

PostPosted: Wed Sep 26, 2012 10:03 pm    Post subject: Reply with quote

I don't know why this problem occurs. If you are already using a script you can put in a loop to strip the extension on each file name. How you do this depends on how your script is structured. If you would like a solution you could send me your script.

Frank Valdes
valdes@noao.edu
Back to top
View user's profile Send private message
cody



Joined: 26 Feb 2008
Posts: 12

PostPosted: Wed Sep 26, 2012 10:36 pm    Post subject: Reply with quote

Thanks, I sent you a PM.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> Applications 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.10 seconds