Welcome to iraf.net Thursday, April 25 2024 @ 08:56 PM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 Imstat on circular region
   
prajwel
 04/04/2015 12:00PM (Read 1083 times)  
+----
Newbie

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.

 
Profile Email
 Quote
prajwel
 04/05/2015 12:18PM  
+----
Newbie

Status: offline


Registered: 02/24/2014
Posts: 7
I am quiet glad to say that I figured it out on my own. Thanks anyway. Smile

 
Profile Email
 Quote
prajwel
 04/05/2015 07:59PM  
+----
Newbie

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


Smile

 
Profile Email
 Quote
   
Content generated in: 0.13 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login