public class JanosDriver extends AsynchronousCcdDriver implements ExitCleaning, ExposureTimeAware, TrueFitsStart
| Modifier and Type | Class and Description |
|---|---|
static class |
JanosDriver.Abort
A test class.
|
static class |
JanosDriver.Bias
A test class.
|
static class |
JanosDriver.Flats
A test class.
|
static class |
JanosDriver.Test
A test class.
|
AsynchronousCcdDriver.ExposureThread, AsynchronousCcdDriver.ReadoutAbstractCcdDriver.Endurance, AbstractCcdDriver.Exposure, AbstractCcdDriver.Shot| Modifier and Type | Field and Description |
|---|---|
private SesCamClient |
ccdclient
RPC client instance.
|
static String |
CCDTEMP
The keyword for the CCD temperature.
|
private static boolean |
DEFAUTOCLEAR
Default property value.
|
private static boolean |
DEFAUTOREADOUT
Default property value.
|
private static boolean |
DEFAUTOSHUTTER
Default property value.
|
private static double |
DEFBIASTIME
Default property value.
|
static String |
DEFDRIVERNAME
Default name of the fechner ccd driver.
|
private static int |
DEFMAXTRANSFER
Default property value.
|
private static String |
DEFREADOUTDIRECTION
Default property value.
|
private static int |
DEFRETRYCOUNT
Default property value.
|
private static long |
DEFRETRYTIME
Default property value.
|
private static int |
DEFRPCTIMEOUT
Default property value.
|
private static String |
DEFSERVERNAME
Default property value.
|
private static String |
DEFSERVERPATH
Default property value.
|
private static boolean |
DEFSETREADOUT
Default property value.
|
private static boolean |
DEFSUPPORTDARK
Default property value.
|
private static int |
DEFXCHIPSIZE
Default property value.
|
private static int |
DEFXORIGIN
Default property value.
|
private static int |
DEFYCHIPSIZE
Default property value.
|
private static int |
DEFYORIGIN
Default property value.
|
static String |
KEY_AUTOCLEAR
Auto clear behaviour.
|
static String |
KEY_AUTOREADOUT
Auto readout behaviour.
|
static String |
KEY_AUTOSHUTTER
Auto shutter behaviour.
|
static String |
KEY_BIASTIME
The exposure time to mimic bias exposures.
|
static String |
KEY_READOUTDIRECTION
The amplifiers read-out direction as a string .
|
static String |
KEY_RETRYCOUNT
The maximum number of tries to set values in the Copenhagen contr.
|
static String |
KEY_RETRYTIME
The time in ms to wait for retry of auto-shutter etc..
|
static String |
KEY_RPCTIMEOUT
The RPC time-out in millisecond.
|
static String |
KEY_SERVERNAME
FCDN of the host where the guider rpc server is running.
|
static String |
KEY_SERVERPATH
The path where the server should store its fits.
|
static String |
KEY_SETREADOUT
If false, read-out direction is not changed.
|
static String |
LN2TEMP
The keyword for the CCD temperature.
|
private static int |
OK
The return-value for successfule set co0mmands.
|
static String |
PRESSURE
The keyword for the head pressure.
|
static String |
REFTEMP
The keyword for the CCD temperature.
|
KEY_MAXTRANSFER, KEY_QUERYCYCLEKEY_AMPLIFIERS, KEY_AREAREADOUT, KEY_COLUMNPOST, KEY_COLUMNPRIOR, KEY_COLUMNREADOUT, KEY_FIXEDREADOUT, KEY_INITSIZE, KEY_MAXTIME, KEY_MINTIME, KEY_ROWPOST, KEY_ROWPRIOR, KEY_ROWREADOUT, KEY_XBINNING, KEY_XCHIPSIZE, KEY_XDETECTORSIZE, KEY_XORIGIN, KEY_XSIZE, KEY_YBINNING, KEY_YCHIPSIZE, KEY_YDETECTORSIZE, KEY_YORIGIN, KEY_YSIZEKEY_DRIVERNAMEKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORFITSEXTENSIONCONFIG, KEY_CLASS| Constructor and Description |
|---|
JanosDriver(Map<String,String> info)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
abort()
Aborts an ongoing exposure.
|
boolean |
close()
Close the RPC communication.
|
void |
exit()
On exit, we close.
|
protected boolean |
getAutoClear()
Returns true if auto-clean is set.
|
protected boolean |
getAutoReadout()
Returns the autoreadout setting.
|
protected boolean |
getAutoWindmillShutter()
Returns the autoshutter setting.
|
Dimension |
getBinning()
Gets the current active binning on the server side as a
object, the width being x-binning, the height the y-binning. |
private int |
getCameraMode()
Returns the camera mode integer.
|
Map<String,Object> |
getCcdInfo()
Returns information known to the CCD in a map.
|
private int |
getCCDTemp()
Returns CCD temperature.
|
MFits |
getData()
Returns the last data buffer set.
|
double |
getExposureTime()
Returns the current active exposure time in seconds.
|
long |
getExposureTimeLeft()
Returns the remaining exposure time in ms.
|
private int |
getFrameType()
Returns the image frame type integer.
|
private int |
getLn2Temp()
Returns the LN2 temperature.
|
protected Dimension |
getMaxPixel()
Get the max_pixel values for x (columns) and y (rows).
|
private boolean |
getMppMode()
Returns true if the camera is in mpp mode?
|
private int |
getPressure()
Returns the camera head pressure value.
|
private int |
getReadoutDirection()
Returns an integer corresponding to the readout direction.
|
protected AsynchronousCcdDriver.Readout |
getReadoutStatus()
Returns the camera readout status.
|
private int |
getRefTemp()
Returns the reference temperature.
|
private int |
getTcla()
Returns camera pixel clamp time in ms.
|
private int |
getTsam()
Returns the camera pixel sampling time 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 |
isOpen()
We consider the driver to be open if the ccdclient is initialized.
|
boolean |
isReadingOut()
Return true if the camera is reading out.
|
protected boolean |
openController()
Initializes the fechner driver.
|
boolean |
reset()
Makes a format reset on the camera.
|
protected boolean |
setAutoClear(boolean enabled)
Enable/disable if the camera should autoclear before exposure.
|
protected boolean |
setAutoReadout(boolean enabled)
Enable/disable if camera should start readout automatically after
exposure.
|
protected boolean |
setAutoWindmillShutter(boolean enabled)
Enable/disable automatic shutter control.
|
boolean |
setBinning(int xbin,
int ybin)
Sets a new binning factor on the server side.
|
boolean |
setExposureTime(double sec)
Sets the exposure time in milliseconds.
|
private boolean |
setReadoutDirection(String dir)
Sets the readout direction.
|
private boolean |
setTcla(int time_ms)
Sets camera pixel clamp time in ms.
|
private boolean |
setTsam(int time_ms)
Sets the camera pixel sampling time in ms.
|
boolean |
setWindow(Rectangle window)
Sets a new readout window.
|
protected boolean |
startBias()
Starts a bias exposure, which is a dark with small integration time.
|
protected boolean |
startDark()
Start a dark exposure, exposure time was set before.
|
protected boolean |
startScience()
Start an exposure, exposure time was set before.
|
private boolean |
toggleMppMode()
Toggles the camera mpp mode.
|
private boolean |
writeFits(String fitspath)
Write the FITS file in the specified full path.
|
ensureReady, expose, exposeBias, exposeDark, interruptProcess, interruptProcess, threadedBiasExpose, threadedDarkExpose, threadedExposegetDetectorSize, getMaximumExposureTime, getMinimumExposureTime, getReadoutMaximum, getReadoutTime, init, opencreateDriver, equals, getDriverName, hashCodeaugment, augment, augment, augment, augment, clone, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetDriverNamepublic static final String PRESSURE
public static final String CCDTEMP
public static final String LN2TEMP
public static final String REFTEMP
public static final String KEY_SERVERNAME
public static final String KEY_SERVERPATH
public static final String KEY_AUTOCLEAR
public static final String KEY_AUTOREADOUT
public static final String KEY_AUTOSHUTTER
public static final String KEY_SETREADOUT
public static final String KEY_READOUTDIRECTION
public static final String KEY_RETRYCOUNT
public static final String KEY_RETRYTIME
public static final String KEY_RPCTIMEOUT
public static final String KEY_BIASTIME
private static final int OK
public static final String DEFDRIVERNAME
private static final boolean DEFSETREADOUT
private static final String DEFREADOUTDIRECTION
private static final boolean DEFAUTOCLEAR
private static final boolean DEFAUTOREADOUT
private static final boolean DEFAUTOSHUTTER
private static final int DEFXORIGIN
private static final int DEFYORIGIN
private static final int DEFXCHIPSIZE
private static final int DEFYCHIPSIZE
private static final String DEFSERVERNAME
private static final String DEFSERVERPATH
private static final boolean DEFSUPPORTDARK
private static final int DEFMAXTRANSFER
private static final int DEFRETRYCOUNT
private static final long DEFRETRYTIME
private static final int DEFRPCTIMEOUT
private static final double DEFBIASTIME
private SesCamClient ccdclient
public JanosDriver(Map<String,String> info)
AbstractCcdDriver.init().protected boolean openController()
throws IOException
openController in class AbstractCcdDriverIOException - If controller connection fails.public boolean isOpen()
public boolean close()
throws IOException
close in interface DriverIOExceptionpublic void exit()
exit in interface ExitCleaningpublic boolean setBinning(int xbin,
int ybin)
throws IOException
setBinning in interface CcdDriverxbin - New binning factor in x.ybin - New binning factor in y.IOException - Any subclass of IOExceptionpublic Dimension getBinning() throws IOException
object, the width being x-binning, the height the y-binning.getBinning in interface CcdDriverIOException - Any subclass of IOException.public boolean setWindow(Rectangle window) throws IOException
AsynchronousCcdDriver.expose(),
AsynchronousCcdDriver.exposeBias() or AsynchronousCcdDriver.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.setWindow in interface CcdDriverwindow - New readout window in true pixels.IOException - Any subclass of IOException.UnsupportedOperationException - If windowing is not supported.public Rectangle getWindow() throws IOException
getWindow in interface CcdDriverIOException - Any subclass of IOException.public boolean setExposureTime(double sec)
throws IOException
setExposureTime in interface CcdDriverms - The exposure time in sec.IOException - Any subclass of IOException.public double getExposureTime()
throws IOException
getExposureTime in interface CcdDriverIOException - Any subclass of IOException.public MFits getData() throws IOException
getData in interface CcdDriverIOException - Any subclass of IOException.public Map<String,Object> getCcdInfo() throws IOException
getCcdInfo in interface CcdDriverIOExceptionpublic boolean reset()
throws IOException
IOExceptionpublic boolean isExposing()
throws IOException
isExposing in interface CcdDriverisExposing in class AsynchronousCcdDriverIOExceptionpublic boolean isReadingOut()
throws IOException
isReadingOut in interface CcdDriverIOExceptionprotected boolean abort()
throws IOException
abort in class AsynchronousCcdDriverIOExceptionprotected boolean startScience()
throws IOException
startScience in class AsynchronousCcdDriverIOExceptionprotected boolean startDark()
throws IOException
startDark in class AsynchronousCcdDriverIOExceptionprotected boolean startBias()
throws IOException
startBias in class AsynchronousCcdDriverIOExceptionprotected Dimension getMaxPixel() throws IOException
IOExceptionprotected boolean setAutoClear(boolean enabled)
throws IOException
IOExceptionprotected boolean getAutoClear()
throws IOException
IOExceptionprotected boolean setAutoReadout(boolean enabled)
throws IOException
IOExceptionprotected boolean getAutoReadout()
throws IOException
IOExceptionprotected boolean setAutoWindmillShutter(boolean enabled)
throws IOException
IOExceptionprotected boolean getAutoWindmillShutter()
throws IOException
IOExceptionprotected AsynchronousCcdDriver.Readout getReadoutStatus() throws IOException
getReadoutStatus in class AsynchronousCcdDriverIOExceptionpublic long getExposureTimeLeft()
throws IOException
getExposureTimeLeft in interface ExposureTimeAwareIOExceptionprivate boolean toggleMppMode()
throws IOException
IOExceptionprivate boolean getMppMode()
throws IOException
IOExceptionprivate boolean setTsam(int time_ms)
throws IOException
time_ms - time in milliseconds.IOExceptionprivate int getTsam()
throws IOException
IOExceptionprivate boolean setTcla(int time_ms)
throws IOException
time_ms - time in milliseconds.IOExceptionprivate int getTcla()
throws IOException
IOExceptionprivate int getCameraMode()
throws IOException
IOExceptionprivate int getFrameType()
throws IOException
IOExceptionprivate int getPressure()
throws IOException
IOExceptionprivate int getCCDTemp()
throws IOException
IOExceptionprivate int getLn2Temp()
throws IOException
IOExceptionprivate int getRefTemp()
throws IOException
IOExceptionprivate boolean setReadoutDirection(String dir) throws IOException
dir - readout direction string ("A", "B" or "AB").IOExceptionprivate int getReadoutDirection()
throws IOException
IOExceptionprivate boolean writeFits(String fitspath) throws IOException
fitspath - string of the full path of the FITS file.IOException