stella.adapter
Class GuiderFrame

java.lang.Object
  extended by stella.adapter.GuiderFrame
All Implemented Interfaces:
Guiding.RawFrame

public class GuiderFrame
extends Object
implements Guiding.RawFrame

An implementation of Guiding#RawFrame. A container to carry information on the readout parameter to the guider ccd.


Field Summary
private  File bias
          Fits file carrying the bias frame to the readout frame.
private  long biastime
          The exposure time used on this frame.
private  Dimension binning
          Readout binning.
private  File dark
          Fits file carrying the dark frame to the readout frame.
private  long darktime
          The exposure time used on this frame.
private  File flat
          Fits file carrying the flat frame to the readout frame.
private  Rectangle readout
          Readout-frame.
 
Constructor Summary
GuiderFrame()
          Contructs a new GuiderFrame without info.
GuiderFrame(Rectangle r, Dimension bin, File bfits, long bexpose, File dfits, long dexpose)
          Constructs a guider frame with all info.
GuiderFrame(Rectangle r, Dimension bin, File bfits, long bexpose, File dfits, long dexpose, File ffits)
          Constructs a guider frame with all info.
 
Method Summary
 File getBiasFrame()
          Returns the the bias frame that fits to the requested readout frame.
 long getBiasTime()
          Returns the exposure time applicable for the bias fram which is important for shutterless system.
 Dimension getBinning()
          Returns the applicable binning on the ccd.
 File getDarkFrame()
          Returns the the dark frame that fits to the requested readout frame.
 long getDarkTime()
          Returns the exposure time applicable for the dark frame.
 File getFlatField()
          Returns the flat-field frame, if applicable.
 Rectangle getReadoutFrame()
          Returns the readout frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

readout

private Rectangle readout
Readout-frame.


binning

private Dimension binning
Readout binning.


bias

private File bias
Fits file carrying the bias frame to the readout frame.


biastime

private long biastime
The exposure time used on this frame.


dark

private File dark
Fits file carrying the dark frame to the readout frame.


darktime

private long darktime
The exposure time used on this frame.


flat

private File flat
Fits file carrying the flat frame to the readout frame.

Constructor Detail

GuiderFrame

public GuiderFrame()
Contructs a new GuiderFrame without info.


GuiderFrame

public GuiderFrame(Rectangle r,
                   Dimension bin,
                   File bfits,
                   long bexpose,
                   File dfits,
                   long dexpose)
Constructs a guider frame with all info. Some or all may be null.


GuiderFrame

public GuiderFrame(Rectangle r,
                   Dimension bin,
                   File bfits,
                   long bexpose,
                   File dfits,
                   long dexpose,
                   File ffits)
Constructs a guider frame with all info. Some or all may be null.

Method Detail

getReadoutFrame

public Rectangle getReadoutFrame()
Returns the readout frame. Null if invalid.

Specified by:
getReadoutFrame in interface Guiding.RawFrame

getBinning

public Dimension getBinning()
Returns the applicable binning on the ccd. If null, no special binning should be used. What that means is interpreted on the ccd-server side, but the most natural choice would be to use no binning.

Specified by:
getBinning in interface Guiding.RawFrame

getBiasFrame

public File getBiasFrame()
Returns the the bias frame that fits to the requested readout frame. The file should point to a fits file of equal size as the readout frame. If null, no bias reduction should be performed.

Specified by:
getBiasFrame in interface Guiding.RawFrame

getBiasTime

public long getBiasTime()
Returns the exposure time applicable for the bias fram which is important for shutterless system. Return -1 if no bias frame is available.

Specified by:
getBiasTime in interface Guiding.RawFrame

getDarkFrame

public File getDarkFrame()
Returns the the dark frame that fits to the requested readout frame. The file should point to a fits file of equal size as the readout frame. If null, no bias reduction should be performed.

Specified by:
getDarkFrame in interface Guiding.RawFrame

getDarkTime

public long getDarkTime()
Returns the exposure time applicable for the dark frame. Return -1 if no dark frame is available.

Specified by:
getDarkTime in interface Guiding.RawFrame

getFlatField

public File getFlatField()
Returns the flat-field frame, if applicable. Integration time on flat field frame is not important. It is impossible to create a consistent flat field on a shutterless system.