Package ij.plugin
Class FITS_Writer
java.lang.Object
ij.plugin.FITS_Writer
- All Implemented Interfaces:
PlugIn
public class FITS_Writer extends Object implements PlugIn
This plugin saves a 16 or 32 bit image in FITS format. It is a stripped-down version of the SaveAs_FITS
plugin from the collection of astronomical image processing plugins by Jennifer West at
http://www.umanitoba.ca/faculties/science/astronomy/jwest/plugins.html.
Version 2010-11-23 : corrects 16-bit writing, adds BZERO & BSCALE updates (K.A. Collins, Univ. Louisville).
Version 2008-09-07 : preserves non-minimal FITS header if already present (F.V. Hessman, Univ. Goettingen).
Version 2008-12-15 : fixed END card recognition bug (F.V. Hessman, Univ. Goettingen).
Version 2010-11-23 : corrects 16-bit writing, adds BZERO & BSCALE updates (K.A. Collins, Univ. Louisville).
Version 2008-09-07 : preserves non-minimal FITS header if already present (F.V. Hessman, Univ. Goettingen).
Version 2008-12-15 : fixed END card recognition bug (F.V. Hessman, Univ. Goettingen).
-
Constructor Summary
Constructors Constructor Description FITS_Writer()
-
Method Summary
Modifier and Type Method Description static String[]
getHeader(ImagePlus img)
Extracts the original FITS header from the Properties object of the ImagePlus image (or from the current slice label in the case of an ImageStack) and returns it as an array of String objects representing each card.void
run(String path)
This method is called when the plugin is loaded.
-
Constructor Details
-
FITS_Writer
public FITS_Writer()
-
-
Method Details
-
run
Description copied from interface:PlugIn
This method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt. -
getHeader
Extracts the original FITS header from the Properties object of the ImagePlus image (or from the current slice label in the case of an ImageStack) and returns it as an array of String objects representing each card. Taken from the ImageJ astroj package (www.astro.physik.uni-goettingen.de/~hessman/ImageJ/Astronomy)- Parameters:
img
- The ImagePlus image which has the FITS header in it's "Info" property.
-