Qzap problem
jcely wrote on Feb 20, 2010
Confusing and frustrating- worked perfectly last night and i can see nothing that i changed.
Running qzap seems to run just fine, but says:
No object masking will be used during zapping.
Working on A061303F220W01_mask ---ZAP!--> A061303F220W01_mask
Computing statistics.
A061303F220W01_mask: mean=0.02160643 rms=0.420682 npix=1311191 median=-0.0002783267 mode=-0.0006930245
Subtracting local sky.
Data minimum = -12.6432161331 maximum = 22247.6777344
Truncating data range -12.6432161331 to 22247.6777344
Data minimum = -12.9074869156 maximum = 22247.7539062
Truncating data range -12.9074869156 to 22247.7539062
Median filtering.
Masking potential CR events.
Making flux ratio comparison.
Replacing 1124 CR hits with local median.
_cr_IMAGENAME.fits is not an image or a number
_cronly_IMAGENAME is not an image or a number
Warning: Cannot access image (_cronly_IMAGENAME)
IMAGENAME, CRMASK: F -> crmask_IMAGENAME.pl
Done.
Where IMAGENAME is my image. And checking the image afterwards shows it has not been cleaned.
Thoughts?
Running qzap seems to run just fine, but says:
No object masking will be used during zapping.
Working on A061303F220W01_mask ---ZAP!--> A061303F220W01_mask
Computing statistics.
A061303F220W01_mask: mean=0.02160643 rms=0.420682 npix=1311191 median=-0.0002783267 mode=-0.0006930245
Subtracting local sky.
Data minimum = -12.6432161331 maximum = 22247.6777344
Truncating data range -12.6432161331 to 22247.6777344
Data minimum = -12.9074869156 maximum = 22247.7539062
Truncating data range -12.9074869156 to 22247.7539062
Median filtering.
Masking potential CR events.
Making flux ratio comparison.
Replacing 1124 CR hits with local median.
_cr_IMAGENAME.fits is not an image or a number
_cronly_IMAGENAME is not an image or a number
Warning: Cannot access image (_cronly_IMAGENAME)
IMAGENAME, CRMASK: F -> crmask_IMAGENAME.pl
Done.
Where IMAGENAME is my image. And checking the image afterwards shows it has not been cleaned.
Thoughts?
Mike Fitzpatrick wrote on Feb 20, 2010
I think the key error message is:
If "_cr_IMAGENAME.fits" exists it may be zero-length or otherwise corrupted, but for some reason it isn't being seen as an image. This name is constructed by prefixing the '_cr_" to the input image name and at various places in the script the name is used to create other filenames.
If I had to guess, I'd say your 'imtype' environment variable was set to 'imh' but you are using FITS input images. Intermediate images are created with .imh extensions but the variables use the full .fits image name.
QZAP is a script so one way to track this down is to turn on the 'd_trace' toggle before running the script and you'll be able to see all the names being created and how they are used. You might also ask at help@stsci.edu in case this is a known issue with the task.
-Mike
_cr_IMAGENAME.fits is not an image or a number
_cronly_IMAGENAME is not an image or a number
If "_cr_IMAGENAME.fits" exists it may be zero-length or otherwise corrupted, but for some reason it isn't being seen as an image. This name is constructed by prefixing the '_cr_" to the input image name and at various places in the script the name is used to create other filenames.
If I had to guess, I'd say your 'imtype' environment variable was set to 'imh' but you are using FITS input images. Intermediate images are created with .imh extensions but the variables use the full .fits image name.
QZAP is a script so one way to track this down is to turn on the 'd_trace' toggle before running the script and you'll be able to see all the names being created and how they are used. You might also ask at help@stsci.edu in case this is a known issue with the task.
-Mike
jcely wrote on Feb 20, 2010
checking the output files i see that it is writing them to .imh files. I set my image type in my login.cl file to fits though and it still doesn't work.... unless you can think of any way to set qzap to use fits i'll contact stsci
Thanks
Justin
Thanks
Justin
jcely wrote on Feb 20, 2010
NEVERMIND. i forgot to remove the "#" so that it actually set my image type to fits. fixed that and everything was good to go. You saved me again fitz
Justin
Justin
Last post on Feb 20, 2010