Welcome to iraf.net Thursday, May 02 2024 @ 11:53 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 creating NaN's in a fits image
   
jkrick
 07/06/2006 12:50AM (Read 5543 times)  
+----
Newbie

Status: offline


Registered: 07/05/2006
Posts: 1
This may be strange, but I would like to make some of the pixels in some mosaic images have the value "NaN". I have tried imarith and imexpr, using either log of a negative number or dividing images by 0, but the tasks quit with errors and won't write NaN's. any hints how to fool iraf?thanks

 
Profile Email
 Quote
fitz
 07/06/2006 12:50AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
As far as I know there isn't a way for an IRAF task to write a NaN to the file: On input FITS NaNs are mapped to zero (or maybe INDEF) and while there is no mapping on output the generation of a NaN from a task would trigger an FPE.If what you want in to flag certain pixels as bad values then setting the value to something clearly outside the data range is the usual course, otherwise there are a number of tasks for creating bad pixel masks that can be used with various tasks. If you could explain more about why you want to do this I might have other suggestions.Cheers,
-Mike

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