Login  Register

Re: Multi image FITS file & Suggestions for Wayne

Posted by Leonard Sitongia on Apr 29, 2008; 8:53pm
URL: http://imagej.273.s1.nabble.com/Re-Multi-image-FITS-file-tp3696394p3696396.html

Frederic V. Hessman wrote:
>
> I've been playing with the idea of extending the standard FITS class
> in ImageJ to cover the obvious cases.   A strong constraint is the
> handling of FITS header info in ImageJ: normal ImagePlus's have a copy
> of the FITS header in the Info property and ImageStack's in the slice
> label.
I'm writing a Plugin to read my Multiple Extension Data Cube.  I'm using
the approach of Stack slices.  However, when I put the header as a
string in the slice label, I see the lines of the header in the text
area above the image.  And, when I Show Info, I see the info that a
non-FITS file usually has.  I'm adding the header in:

                    stack.addSlice(headerString.toString(), imp);

I don't see how it is done in FITS_Reader.  I see in Info.getImageInfo
how the infoProperty is obtained from the slice label for a Stack.  I
must be putting the header into the wrong place.

Thanks for any help!

--
==Leonard E. Sitongia
   High Altitude Observatory
   National Center for Atmospheric Research
   P.O. Box 3000 Boulder CO 80307  USA
   [hidden email]  voice: (303)497-2454  fax: (303)497-1589