astro.fits
Class Binning

java.lang.Object
  extended by astro.fits.Binning

public class Binning
extends Object

Class to do artificial binning. Such a simple task should be easy to perform with IRAF, but it's not easily found in the docs.


Nested Class Summary
static class Binning.Rebin
          Calls rebin.
static class Binning.Type
           
 
Constructor Summary
Binning()
           
 
Method Summary
static nom.tam.fits.ImageHDU rebin(nom.tam.fits.ImageHDU src, int xbin, int ybin)
          Takes the src image hdu and does a rebinning by median.
static nom.tam.fits.ImageHDU rebin(nom.tam.fits.ImageHDU src, int xbin, int ybin, Binning.Type how)
          Takes the src image hdu and does a rebinning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Binning

public Binning()
Method Detail

rebin

public static final nom.tam.fits.ImageHDU rebin(nom.tam.fits.ImageHDU src,
                                                int xbin,
                                                int ybin)
                                         throws nom.tam.fits.FitsException
Takes the src image hdu and does a rebinning by median.

Throws:
nom.tam.fits.FitsException

rebin

public static final nom.tam.fits.ImageHDU rebin(nom.tam.fits.ImageHDU src,
                                                int xbin,
                                                int ybin,
                                                Binning.Type how)
                                         throws nom.tam.fits.FitsException
Takes the src image hdu and does a rebinning. The type does the median-average-or sum of the tiles.

Throws:
nom.tam.fits.FitsException