Welcome to iraf.net Monday, May 20 2024 @ 12:31 AM GMT
cody |
09/26/2012 09:52PM (Read 2158 times)
|
|
|
Status: offline
Registered: 02/25/2008
Posts: 12
|
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...
|
|
|
|
valdes |
09/26/2012 09:52PM
|
|
|
Status: offline
Registered: 11/11/2005
Posts: 728
|
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
|
|
|
|
cody |
09/26/2012 09:52PM
|
|
|
Status: offline
Registered: 02/25/2008
Posts: 12
|
Thanks, I sent you a PM.
|
|
|
|
| |
|
Content generated in: 0.09 seconds |
|