public interface CcdDriver extends Driver
FechnerDriver.
Control for a shutter is missing from this interface, as it should also be applicable to shutterless CCDs.
| Modifier and Type | Field and Description |
|---|---|
static String |
FITSEXTENSION
General fits file name extension, including dot.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ensureReady()
Ensures that the data can be retrieved.
|
int |
expose()
Takes an exposure.
|
int |
exposeBias()
Takes a bias exposure.
|
int |
exposeDark()
Takes a dark exposure.
|
Dimension |
getBinning()
Gets the current active binning on the server side as a
object, the width being x-binning, the height the y-binning. |
Map<String,Object> |
getCcdInfo()
Returns information known to the CCD in a map.
|
MFits |
getData()
Returns the CCD data as a fits objects.
|
Dimension |
getDetectorSize()
Returns the detector size.
|
double |
getExposureTime()
Returns the current active exposure time in ms.
|
double |
getMaximumExposureTime()
Maximum allowed exposure time in milliseconds.
|
double |
getMinimumExposureTime()
Minimum allowed exposure time in milliseconds.
|
Dimension |
getReadoutMaximum()
Return the size of the ccd.
|
long |
getReadoutTime(Rectangle window)
Calculates the readout time for the given window in ms.
|
Rectangle |
getWindow()
Returns the current readout window or the size of the entire chip.
|
boolean |
isExposing()
Returns true, if the camera is currently exposing.
|
boolean |
isReadingOut()
Return true if the camera is reading out.
|
boolean |
setBinning(int xbin,
int ybin)
Sets a new binning factor on the server side.
|
boolean |
setExposureTime(double ms)
Sets the exposure time in milliseconds.
|
boolean |
setWindow(Rectangle window)
Sets a new readout window.
|
Thread |
threadedBiasExpose()
Returns a non-started thread that will return immediately.
|
Thread |
threadedDarkExpose()
Returns a non-started thread that will be alive until the dark exposure
is finished.
|
Thread |
threadedExpose()
Returns a non-started thread that will be alive until the exposure is
finished.
|
close, getDriverName, isOpen, openinitstatic final String FITSEXTENSION
double getMaximumExposureTime()
double getMinimumExposureTime()
long getReadoutTime(Rectangle window)
#AsynchronousCcdDrivers this method is used in the exposure
thread for waiting before querying the readout status.Dimension getReadoutMaximum()
Dimension getDetectorSize()
boolean setBinning(int xbin,
int ybin)
throws IOException
xbin - New binning factor in x.ybin - New binning factor in y.IOException - Any subclass of IOExceptionDimension getBinning() throws IOException
object, the width being x-binning, the height the y-binning.IOException - Any subclass of IOException.boolean setWindow(Rectangle window) throws IOException
expose(),
exposeBias() or exposeDark() will be affected. If binning
is active, it is ignored in the sense that this method always affects
physical pixels. On CCD that do not support windowing mode, an
UnsupportedOperationException may be thrown.window - New readout window in true pixels.IOException - Any subclass of IOException.UnsupportedOperationException - If windowing is not supported.Rectangle getWindow() throws IOException
IOException - Any subclass of IOException.boolean setExposureTime(double ms)
throws IOException
ms - The exposure time in ms.IOException - Any subclass of IOException.double getExposureTime()
throws IOException
IOException - Any subclass of IOException.MFits getData() throws IOException
IOException - Any subclass of IOException.int expose()
throws IOException
IOException - Any subclass of IOException.startExposeThread threadedExpose() throws IOException
IOException - Any subclass of IOException.exposeThread threadedDarkExpose() throws IOException
IOException - Any subclass of IOException.exposeThread threadedBiasExpose() throws IOException
IOException - Any subclass of IOException.exposeboolean isExposing()
throws IOException
IOExceptionboolean isReadingOut()
throws IOException
IOExceptionboolean ensureReady()
throws IOException
IOExceptionMap<String,Object> getCcdInfo() throws IOException
IOExceptionint exposeBias()
throws IOException
IOException - Any subclass of IOException.UnsupportedOperationException - If true bias is not supported.int exposeDark()
throws IOException
IOException - Any subclass of IOException.UnsupportedOperationException - If dark frames are not supported.