Posted: Wed Sep 26, 2012 9:52 pm Post subject: objmasks filename problem
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...
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.
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