[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New FITS greyscale mapping



Nick,

I added a better greyscale mapper to my FITS->PGM program.
Mk III images look much better now.  Many hundreds of stars
now show up.  But so do all the typical Mk III image defects.
I do a type of log scaling.  There is a constant "k" that is
used to adjust the contrast by selecting the part of the log
function used for mapping.  Low values of k do an extreme
wrapping while high values make the picture look a uniform
middle gray.  The value of K in the posted program was set
by eye using images from my camera.  Images from Glenn's
or Tom's camera require small changes to k to look their
best.  Just change the constant and re-compile until you
like the result.  k is set about half way down in the 
"main" routine. There is a big comment block pointing it
out.

The program is at:
ftp://ftp.logicon.com/open/fits2raw-21mar99.tgz

There is another program with a similar name
ftp://ftp.logicon.com/open/fits2pg-0.1.0.tgz
This program does automatic conversion for FITS table files
to Postgree database tables.

-- 
   --Chris Albertson             home: chrisja@jps.net        
     Redondo Beach, California   work: chris@topdog.logicon.com