[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
New FITS greyscale mapping
- To: tass@wwa.com, Nick Beser <beser@aplcomm.jhuapl.edu>
- Subject: New FITS greyscale mapping
- From: Chris Albertson <chrisja@jps.net>
- Date: Sun, 21 Mar 1999 23:40:01 -0800
- Old-Return-Path: <chrisja@jps.net>
- Reply-To: chrisja@jps.net
- Resent-Date: Mon, 22 Mar 1999 02:43:03 -0500
- Resent-From: tass@wwa.com
- Resent-Message-ID: <"jVLb4D.A.9q.oRf92"@kani.wwa.com>
- Resent-Sender: tass-request@wwa.com
- Sender: chris@jps.net
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