[Kstars-devel] [PATCH] FITS Overlay

Jérôme SONRIER jsid at emor3j.fr.eu.org
Fri Mar 19 00:46:28 CET 2010


Hello,

Here, is a patch that implements FITS overlay. It adds an entry on 
the "tools" menu called "FITS manager...". From the new window that 
appears when you click on it, you can open FITS files. When a FITS file 
is opened, the window lists all HDU found in the file. You can select a 
HDU and perform some actions using the buttons on the right side. A 
double click on an image will center it on the map and a double click 
on a table will open it on a new window.
You can also right click on the map and choose "Show FITS image" to 
download a FITS image from the web.

The patch must be applied on the "kdeedu" directory and you must have 
cfitsio[1] and AST[2]  to compile.
Please, test it and do not hesitate to make comments, this is just a 
first attempt to make something that works.

Know bugs :
- kstars will crash if you try to open a file with a HDU that has more 
than 2 dimensions
- the updating of colors when changing color maps or using histogram 
take too much time. I think this is because of the very bad design of 
the FitsImgHistogram class
- if you open several files using the context menu, all this images will 
have the same name in the FITS manager and it becomes impossible to 
select a particular file
- Images don't match exactly with symbols on the map. I think I forgot 
something when I draw the image
- some things are not quite finished and some others are not yet 
implemented
- probably other bugs that I do not know or forgot to list here


1 : http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
2 : http://starlink.jach.hawaii.edu/starlink/AST


Regards

-- 
Jérôme SONRIER
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fits.diff
Type: text/x-diff
Size: 174972 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kstars-devel/attachments/20100319/c6edd5ef/attachment-0001.bin 


More information about the Kstars-devel mailing list