Welcome to iraf.net Thursday, April 25 2024 @ 08:56 PM GMT
prajwel |
04/04/2015 12:00PM (Read 1083 times)
|
|
|
Status: offline
Registered: 02/24/2014
Posts: 7
|
Hi,
I want to know the standard deviation of pixel values in a circular region. I tried in this manner, but failed.
PHP Formatted Code cl > type expr ((sqrt((I -256)**2) + (J -256)**2) >= 5) ? -1 : a )
cl > imexpr @expr statimg a =M13refim .fits
cl > imstat statimg
I obtained the above idea from a forum post \$this->_split2($m[0])\$this->_split2($m[0]) https://iraf.net/forum/viewtopic.php?showtopic=109273
Any help or suggestion would be greatly appreciated. Thank you in advance for your help.
|
|
|
|
prajwel |
04/05/2015 12:18PM
|
|
|
Status: offline
Registered: 02/24/2014
Posts: 7
|
I am quiet glad to say that I figured it out on my own. Thanks anyway.
|
|
|
|
prajwel |
04/05/2015 07:59PM
|
|
|
Status: offline
Registered: 02/24/2014
Posts: 7
|
For anyone curious, I did it in this manner.
1. create a file, in my case "expr", with this inside PHP Formatted Code ((sqrt((I -256)**2 + (J -256)**2) <= 50) ? a : -1)
2. then, I ran this PHP Formatted Code imexpr @expr statimg M13Irefnew1 .fits
3. finally, PHP Formatted Code imstat statimg .fits lower =0
|
|
|
|
| |
|
Content generated in: 0.13 seconds |
|