Welcome to iraf.net Saturday, May 11 2024 @ 03:50 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Ignoring a given pixel value when displaying an image
   
vickys
 02/26/2014 12:49AM (Read 716 times)  
+----
Newbie

Status: offline


Registered: 02/25/2014
Posts: 1
I'm working with the command line version of daophot (not iraf) and when I run allstar some pixels in the subtracted image are given a value of -1E19. Up to now I've been using imreplace to switch these pixels to zero so I can display the image properly.

Is there a way to get the display command to ignore the pixels with a value of -1E19? I know about using zscale- zrange- z1=?? z2=?? but that requires knowledge of what z1 and z2 *should* be. I just want display to ignore the -1E19 pixels and use zrange to do the rest.

Thanks
Vicky

 
Profile Email
 Quote
fitz
 02/26/2014 01:35AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040

What you describe can be done by setting the 'bpmask' parameter to the DISPLAY task, where the default uses the 'BPM' keyword to name the mask file, otherwise you can specify an explicit filename. To create the mask for a specific image you can use IMEXPR to create a mask of specific values, e.g.

cl\$this->_split2($m[0]) imexpr "(a display myimage.fits 1 bpmask=mymask.pl

Note the 'zmask' parameter works in reverse by specifying the pixels to be used for the zrange calculation. See the DISPLAY task help page for a description of other parameters you might use, e.g. you could turn off the 'zrange' parameter and then explicity set the min/max values to be used for the zscaling as header parameters.

 
Profile Email
 Quote
   
Content generated in: 0.06 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