jsky.image.fits.codec
Class FITSDataDouble

java.lang.Object
  extended by jsky.image.fits.codec.FITSData
      extended by jsky.image.fits.codec.FITSDataDouble

public class FITSDataDouble
extends FITSData

Used for double FITS image data (2D).

Version:
$Revision: 1.4 $
Author:
Allan Brighton

Field Summary
 
Fields inherited from class jsky.image.fits.codec.FITSData
_fitsImage, _height, _naxis, _width
 
Constructor Summary
FITSDataDouble(FITSImage fitsImage)
          Constructor
 
Method Summary
 Raster getPreviewImage(Raster tile, int factor)
          Return a prescaled preview image at "1/factor" of the normal size in the given raster tile.
 Raster getTile(Raster tile, int subsample, int scaledWidth, int scaledHeight)
          Fill in the given tile with the appropriate image data.
 
Methods inherited from class jsky.image.fits.codec.FITSData
fillTile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FITSDataDouble

public FITSDataDouble(FITSImage fitsImage)
Constructor

Method Detail

getTile

public Raster getTile(Raster tile,
                      int subsample,
                      int scaledWidth,
                      int scaledHeight)
               throws IOException
Fill in the given tile with the appropriate image data.

If the memory mapped buffer is not null, the Y axis will be flipped to the normal orientation for display, otherwise this needs to be done later in the display widget.

Specified by:
getTile in class FITSData
Parameters:
tile - the tile to fill with data
subsample - the increment to use when zooming out using the mapped byte buffer
scaledWidth - the total image width in pixels (after prescaling, may be different than the "real" width)
scaledHeight - the total image height in pixels (after prescaling, may be different than the "real" height)
Returns:
the tile argument
Throws:
IOException

getPreviewImage

public Raster getPreviewImage(Raster tile,
                              int factor)
                       throws IOException
Return a prescaled preview image at "1/factor" of the normal size in the given raster tile.

Specified by:
getPreviewImage in class FITSData
Throws:
IOException