Scan from pipe (Was: please help me)
Guest wrote on Dec 22, 2006
Dear sir,
I am Vishal. I am research scholor in A&A division in Physical Research
lavoratory (PRL), one of the leading research institure in India.
Sir, I am using IRAF in my research work. I am facing a problem.
I can not run following line on cl> :
imstat xyz.fits | scan (datapars.sigma,datapars.datamin,datapars.datamax)
it is not scannig values from imstat data and shows INDEF in all 3 variables.
Can you help me to sort out this problem?
Thank you sir
Regards,
Vishal.
Post generated using Mail2Forum (http://www.mail2forum.com)
I am Vishal. I am research scholor in A&A division in Physical Research
lavoratory (PRL), one of the leading research institure in India.
Sir, I am using IRAF in my research work. I am facing a problem.
I can not run following line on cl> :
imstat xyz.fits | scan (datapars.sigma,datapars.datamin,datapars.datamax)
it is not scannig values from imstat data and shows INDEF in all 3 variables.
Can you help me to sort out this problem?
Thank you sir
Regards,
Vishal.
Post generated using Mail2Forum (http://www.mail2forum.com)
James Turner wrote on Dec 22, 2006
Hi Vishal,
Shouldn't you instead be running imstat with the following flags, to define the correct output format?
This should make imstat output the 3 numbers you want and nothing else, so your scan should work. Right now (if you are literally doing what you said above) you are scanning the comment line that imstat outputs by default to explain what the columns are.
Cheers,
James.
imstat xyz.fits | scan (datapars.sigma,datapars.datamin,datapars.datamax)
Shouldn't you instead be running imstat with the following flags, to define the correct output format?
imstat xyz.fits format- fields="stddev,min,max" | scan (...) This should make imstat output the 3 numbers you want and nothing else, so your scan should work. Right now (if you are literally doing what you said above) you are scanning the comment line that imstat outputs by default to explain what the columns are.
Cheers,
James.
Last post on Dec 22, 2006