Welcome to iraf.net Friday, April 19 2024 @ 10:30 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 display command changes pixel values?
   
stpjhj
 02/19/2018 06:12AM (Read 1703 times)  
+----
Newbie

Status: offline


Registered: 07/09/2014
Posts: 3
Hi!

When I use IRAF, I use ds9 to check images. I do this in following ways
PHP Formatted Code

cl> !ds9&
cl> display whatever.fits
 


But, ds9 shows the values of pixels on which mouse is hovering, and the value is different from original ones.
For instance, if I open a fits image of 16-bit integers by invoking display command, pixel values become floating points, which are close to the original value, but not identical.

Does anyone know how did this happen, and what can I do to see the image as is?

 
Profile Email
 Quote
fitz
 02/19/2018 01:31PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The DISPLAY command must scale the image from the original dynamic range of the pixels to the 200 levels used in the display. What you're seeing is an approximation of the pixel value based on that scaling.

When using DS9 you can load the image directly to see the actual pixel values from the file, e.g.

cl\$this->_split2($m[0]) !ds9 whatever.fits

Alternatively, you could use XImtool as the display, or the 'z' command in IMEXAMINE will print a 10x10 grid of pixel values around the cursor position.

 
Profile Email
 Quote
stpjhj
 02/23/2018 09:42AM  
+----
Newbie

Status: offline


Registered: 07/09/2014
Posts: 3
I've never used ximtool, but I think I should give it a try.
Thank you.

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