Will give it a try tonight when I'm home.
Roger.
Quote:
Originally Posted by janoskiss
I see the problem. The FIT file has no scaling information, just a bunch of numbers, where the user or external software has to decide which number is black and which is white. F in FIT stands for Flexible. There is obviously a price to pay for this flexibility.
I had a look at your image. You just need to tweak the levels till you are happy with the result.
You can use the -modulate and -level options. Something like this:
convert -modulate 10000 -level 30%,70%,0.65 test.fit test.png
will produce the image I've attached (in jpeg format) from your fit file.
-modulate changes the brightness (not really needed because -level could do it but the numbers in this fit file are so small that it's easier to amplify first). Here I've used the value 10000, which means 10000% or 100 times brighter. Then -level does exactly the same thing as Levels in Photoshop or the Gimp. You have black level, white level (both between 0 and 100%), and gamma (typically between 0.5 and 2).
So just play around with a typical image and decide on a set of -modulate and -level parameters, and then apply the same to the whole stack of FITS files to produce the animation, e.g.:
convert -delay 10 -modulate 10000 -level 30%,70%,0.65 *.fit animation.gif
|