TwiceAsNice
2019-02-18
|
Public Member Functions | |
def | __init__ (self) |
def | initVar (self) |
def | initUI (self) |
def | startStopMon (self) |
Start or stop the autoguiding thread. More... | |
def | startStopAG (self) |
def | loopState (self, state) |
Stop auto-guiding if the state of the BCU control loop is 'True'. More... | |
def | updatePos (self) |
update pointing and angle strings in the main GUI More... | |
def | newPic (self, timStr) |
SCREEN STUFF (INCLUDES AUTOGUIDING) More... | |
def | deleteThScnGitems (self) |
remove labels and texts in the thumb nail image of the AG More... | |
def | mousePress (self, theText) |
def | lblSpotStars (self) |
def | lblSE (self) |
def | drawNSElAz (self) |
def | drawArrow (self, theScn, x1, y1, x2, y2, theCol, lbl, pos) |
def | rotateButtons (self) |
def | stuffVals (self) |
def | thrdMsg (self, msgT, nLin=True) |
Log something to the Main message window, optional blank line. More... | |
def | imgZin (self) |
zoom in image More... | |
def | imgZout (self) |
zoom out image More... | |
def | setIblack (self) |
Set gray cuts. More... | |
def | setIwhite (self) |
set gray level cuts for ADU to display image conversion More... | |
def | togIauto (self) |
toggle autoscale flag true<->false More... | |
def | ctrStarClick (self) |
NUDGE TELESCOPE BUTTONS STUFF. More... | |
def | doCtrStar (self, csX, csY) |
def | togMov (self) |
def | movN (self) |
def | movS (self) |
def | movE (self) |
def | movW (self) |
def | movU (self) |
def | movD (self) |
def | movL (self) |
def | movR (self) |
def | stepSlider (self) |
def | getLastState (self) |
STARTUP / SHUTDOWN / SETTINGS STUFF. More... | |
def | saveStateFile (self) |
def | shutdown (self) |
shutdown sub-threads and close the window(s), terminate. More... | |
def | pointWrtCat (self) |
print an error log if pointing and star catalogu are more than 3 arcmin apart More... | |
def | ds9Starcat (self) |
pop up a DS9 gui with the stars of the star catalogue in overlay This calls licsPcam2Se with the appropriate arguments. More... | |
def | settings (self) |
pop up GUI to edit the settings More... | |
def | __init__ (self) |
def | initVar (self) |
def | initUI (self) |
def | startStopMon (self) |
Start or stop the autoguiding thread. More... | |
def | startStopAG (self) |
def | loopState (self, state) |
Stop auto-guiding if the state of the BCU control loop is 'True'. More... | |
def | updatePos (self) |
update pointing and angle strings in the main GUI More... | |
def | newPic (self, timStr) |
SCREEN STUFF (INCLUDES AUTOGUIDING) More... | |
def | deleteThScnGitems (self) |
remove labels and texts in the thumb nail image of the AG More... | |
def | mousePress (self, theText) |
def | lblSpotStars (self) |
def | lblSE (self) |
def | drawNSElAz (self) |
def | drawArrow (self, theScn, x1, y1, x2, y2, theCol, lbl, pos) |
def | rotateButtons (self) |
def | stuffVals (self) |
def | thrdMsg (self, msgT, nLin=True) |
Log something to the Main message window, optional blank line. More... | |
def | imgZin (self) |
zoom in image More... | |
def | imgZout (self) |
zoom out image More... | |
def | setIblack (self) |
Set gray cuts. More... | |
def | setIwhite (self) |
set gray level cuts for ADU to display image conversion More... | |
def | togIauto (self) |
toggle autoscale flag true<->false More... | |
def | ctrStarClick (self) |
NUDGE TELESCOPE BUTTONS STUFF. More... | |
def | doCtrStar (self, csX, csY) |
def | togMov (self) |
def | movN (self) |
def | movS (self) |
def | movE (self) |
def | movW (self) |
def | movU (self) |
def | movD (self) |
def | movL (self) |
def | movR (self) |
def | stepSlider (self) |
def | getLastState (self) |
STARTUP / SHUTDOWN / SETTINGS STUFF. More... | |
def | saveStateFile (self) |
def | shutdown (self) |
shutdown sub-threads and close the window(s), terminate. More... | |
def | pointWrtCat (self) |
print an error log if pointing and star catalogu are more than 3 arcmin apart More... | |
def | ds9Starcat (self) |
pop up a DS9 gui with the stars of the star catalogue in overlay This calls licsPcam2Se with the appropriate arguments. More... | |
def | settings (self) |
pop up GUI to edit the settings More... | |
def | __init__ (self) |
def | initVar (self) |
def | initUI (self) |
def | startStopMon (self) |
Start or stop the autoguiding thread. More... | |
def | startStopAG (self) |
def | loopState (self, state) |
Stop auto-guiding if the state of the BCU control loop is 'True'. More... | |
def | updatePos (self) |
update pointing and angle strings in the main GUI More... | |
def | newPic (self, timStr) |
SCREEN STUFF (INCLUDES AUTOGUIDING) More... | |
def | deleteThScnGitems (self) |
remove labels and texts in the thumb nail image of the AG More... | |
def | mousePress (self, theText) |
def | lblSpotStars (self) |
def | lblSE (self) |
def | drawNSElAz (self) |
def | drawArrow (self, theScn, x1, y1, x2, y2, theCol, lbl, pos) |
def | rotateButtons (self) |
def | stuffVals (self) |
def | thrdMsg (self, msgT, nLin=True) |
Log something to the Main message window, optional blank line. More... | |
def | imgZin (self) |
zoom in image More... | |
def | imgZout (self) |
zoom out image More... | |
def | setIblack (self) |
Set gray cuts. More... | |
def | setIwhite (self) |
set gray level cuts for ADU to display image conversion More... | |
def | togIauto (self) |
toggle autoscale flag true<->false More... | |
def | ctrStarClick (self) |
NUDGE TELESCOPE BUTTONS STUFF. More... | |
def | doCtrStar (self, csX, csY) |
def | togMov (self) |
def | movN (self) |
def | movS (self) |
def | movE (self) |
def | movW (self) |
def | movU (self) |
def | movD (self) |
def | movL (self) |
def | movR (self) |
def | stepSlider (self) |
def | getLastState (self) |
STARTUP / SHUTDOWN / SETTINGS STUFF. More... | |
def | saveStateFile (self) |
def | shutdown (self) |
shutdown sub-threads and close the window(s), terminate. More... | |
def | pointWrtCat (self) |
print an error log if pointing and star catalogu are more than 3 arcmin apart More... | |
def | ds9Starcat (self) |
pop up a DS9 gui with the stars of the star catalogue in overlay This calls licsPcam2Se with the appropriate arguments. More... | |
def | settings (self) |
pop up GUI to edit the settings More... | |
Static Public Member Functions | |
def | pointingObj (RA, dec, az, el) |
convert ra/dec and alt/az to a string for display More... | |
def | rotatOpt (kang, pang, loopfl) |
Convert k-mirror and parallactic angle to a string for display. More... | |
def | pointingObj (RA, dec, az, el) |
convert ra/dec and alt/az to a string for display More... | |
def | rotatOpt (kang, pang, loopfl) |
Convert k-mirror and parallactic angle to a string for display. More... | |
def | pointingObj (RA, dec, az, el) |
convert ra/dec and alt/az to a string for display More... | |
def | rotatOpt (kang, pang, loopfl) |
Convert k-mirror and parallactic angle to a string for display. More... | |
Public Attributes | |
agT | |
mon | |
AG | |
selStar | |
selCtr | |
Nang | |
zoomInFactor | |
zoomOutFactor | |
curIzoom | |
frmCount | |
Pointing | |
angs | |
mSkipFrm | |
gSkipFrm | |
FLORIAN: The genPixMap command slows things down a lot! If monitoring, skip self.mSkipFrm frames If guiding, skip self.gSkipFrm frames. More... | |
PA | |
seY | |
thScnGItems | |
ui | |
imgScn | |
thScn | |
pointTim | |
iMapFactor | |
bYo | |
Settings_modal | |
This is the class for the AutoGuider window. The user interface elements are gathered into the variable ui, which is in turn loaded from the file AutoGuider.ui generated by QT Designer. The main routines are: initVar - Initialize important variables initUI - Load User Interface and Initialize startStopMon - Start / Stop monitoring Patrol Camera images startStonAG - Start / Stop AutoGuiding newPic - Process a new picture, INCLUDING AUTOGUIDING There are other routines associated with onscreen activity, guide buttons, etc., which are gathered below. See comments further down.
def AutoGuider.AppWin.__init__ | ( | self | ) |
def AutoGuider.AppWin.__init__ | ( | self | ) |
def AutoGuider.AppWin.__init__ | ( | self | ) |
def AutoGuider.AppWin.ctrStarClick | ( | self | ) |
NUDGE TELESCOPE BUTTONS STUFF.
The following routines deal with manual offsets. Specifically:
ctrStar - Move current autoguider star to specified center togMov - Toggle move star / move telescope mode rotateButtons - Rotates the sky-mode buttons to correspond to view movN, movS etc. - Move in telescope space: North, South, East, West movU, movD etc. - Move in detector space: Up, Down, Left, Right stepSlider - Adjust offset size based on user changing slider
This routine prompts the user to click on a star for centering, or if already clicked, cancels the operation. This is controlled by the self.selCtr flag. Normally, it is False. On a first click of the Center Star button, it goes true (and the button turns yellow). If the button is clicked again, it cancels the operation. If, on the other hand, the user clicks in the image frame, the MousePress routine calls the next routine doCtrStar(), which performs the offset. NOTE: I have not implemented serious cross-checks that the user hasn't done something stupid, like clicking Center Star and then AutoGuide, etc. !!
def AutoGuider.AppWin.ctrStarClick | ( | self | ) |
NUDGE TELESCOPE BUTTONS STUFF.
The following routines deal with manual offsets. Specifically:
ctrStar - Move current autoguider star to specified center togMov - Toggle move star / move telescope mode rotateButtons - Rotates the sky-mode buttons to correspond to view movN, movS etc. - Move in telescope space: North, South, East, West movU, movD etc. - Move in detector space: Up, Down, Left, Right stepSlider - Adjust offset size based on user changing slider
This routine prompts the user to click on a star for centering, or if already clicked, cancels the operation. This is controlled by the self.selCtr flag. Normally, it is False. On a first click of the Center Star button, it goes true (and the button turns yellow). If the button is clicked again, it cancels the operation. If, on the other hand, the user clicks in the image frame, the MousePress routine calls the next routine doCtrStar(), which performs the offset. NOTE: I have not implemented serious cross-checks that the user hasn't done something stupid, like clicking Center Star and then AutoGuide, etc. !!
def AutoGuider.AppWin.ctrStarClick | ( | self | ) |
NUDGE TELESCOPE BUTTONS STUFF.
The following routines deal with manual offsets. Specifically:
ctrStar - Move current autoguider star to specified center togMov - Toggle move star / move telescope mode rotateButtons - Rotates the sky-mode buttons to correspond to view movN, movS etc. - Move in telescope space: North, South, East, West movU, movD etc. - Move in detector space: Up, Down, Left, Right stepSlider - Adjust offset size based on user changing slider
This routine prompts the user to click on a star for centering, or if already clicked, cancels the operation. This is controlled by the self.selCtr flag. Normally, it is False. On a first click of the Center Star button, it goes true (and the button turns yellow). If the button is clicked again, it cancels the operation. If, on the other hand, the user clicks in the image frame, the MousePress routine calls the next routine doCtrStar(), which performs the offset. NOTE: I have not implemented serious cross-checks that the user hasn't done something stupid, like clicking Center Star and then AutoGuide, etc. !!
def AutoGuider.AppWin.deleteThScnGitems | ( | self | ) |
remove labels and texts in the thumb nail image of the AG
def AutoGuider.AppWin.deleteThScnGitems | ( | self | ) |
remove labels and texts in the thumb nail image of the AG
def AutoGuider.AppWin.deleteThScnGitems | ( | self | ) |
remove labels and texts in the thumb nail image of the AG
def AutoGuider.AppWin.doCtrStar | ( | self, | |
csX, | |||
csY | |||
) |
This routine does the actual step of moving the selected star to the pixel specified by AG_Conf.ctrX, AG_Conf.ctrY (set in the Settings dialog).
def AutoGuider.AppWin.doCtrStar | ( | self, | |
csX, | |||
csY | |||
) |
This routine does the actual step of moving the selected star to the pixel specified by AG_Conf.ctrX, AG_Conf.ctrY (set in the Settings dialog).
def AutoGuider.AppWin.doCtrStar | ( | self, | |
csX, | |||
csY | |||
) |
This routine does the actual step of moving the selected star to the pixel specified by AG_Conf.ctrX, AG_Conf.ctrY (set in the Settings dialog).
def AutoGuider.AppWin.drawArrow | ( | self, | |
theScn, | |||
x1, | |||
y1, | |||
x2, | |||
y2, | |||
theCol, | |||
lbl, | |||
pos | |||
) |
Draws an arrow in the QGraphicsScene theScn, with colour theCol from x1,y1 to x2,y2. Then place the label lbl at the location coded by pos.
def AutoGuider.AppWin.drawArrow | ( | self, | |
theScn, | |||
x1, | |||
y1, | |||
x2, | |||
y2, | |||
theCol, | |||
lbl, | |||
pos | |||
) |
Draws an arrow in the QGraphicsScene theScn, with colour theCol from x1,y1 to x2,y2. Then place the label lbl at the location coded by pos.
def AutoGuider.AppWin.drawArrow | ( | self, | |
theScn, | |||
x1, | |||
y1, | |||
x2, | |||
y2, | |||
theCol, | |||
lbl, | |||
pos | |||
) |
Draws an arrow in the QGraphicsScene theScn, with colour theCol from x1,y1 to x2,y2. Then place the label lbl at the location coded by pos.
def AutoGuider.AppWin.drawNSElAz | ( | self | ) |
Draws North / East and El / Az arrows, based on the current parallactic angle, K-mirror positions, etc. This routine uses the angle transformation in LN_Angles.py NOTE: LN_Angles now deals with [SX,DX] simultaneously ! TMH 4 Apr 2018
def AutoGuider.AppWin.drawNSElAz | ( | self | ) |
Draws North / East and El / Az arrows, based on the current parallactic angle, K-mirror positions, etc. This routine uses the angle transformation in LN_Angles.py NOTE: LN_Angles now deals with [SX,DX] simultaneously ! TMH 4 Apr 2018
def AutoGuider.AppWin.drawNSElAz | ( | self | ) |
Draws North / East and El / Az arrows, based on the current parallactic angle, K-mirror positions, etc. This routine uses the angle transformation in LN_Angles.py NOTE: LN_Angles now deals with [SX,DX] simultaneously ! TMH 4 Apr 2018
def AutoGuider.AppWin.ds9Starcat | ( | self | ) |
pop up a DS9 gui with the stars of the star catalogue in overlay This calls licsPcam2Se with the appropriate arguments.
def AutoGuider.AppWin.ds9Starcat | ( | self | ) |
pop up a DS9 gui with the stars of the star catalogue in overlay This calls licsPcam2Se with the appropriate arguments.
def AutoGuider.AppWin.ds9Starcat | ( | self | ) |
pop up a DS9 gui with the stars of the star catalogue in overlay This calls licsPcam2Se with the appropriate arguments.
def AutoGuider.AppWin.getLastState | ( | self | ) |
STARTUP / SHUTDOWN / SETTINGS STUFF.
getLastState - Retrieve parameters from saved state file saveStateFile - Save current parameters to saved state file shutdown - Close program in an orderly fashion settings = Pop and service the settings modal dialog
Reads LNAG.conf for last used paramters - NOTE: NOT FULLY IMPLEMENTED!
def AutoGuider.AppWin.getLastState | ( | self | ) |
STARTUP / SHUTDOWN / SETTINGS STUFF.
getLastState - Retrieve parameters from saved state file saveStateFile - Save current parameters to saved state file shutdown - Close program in an orderly fashion settings = Pop and service the settings modal dialog
Reads LNAG.conf for last used paramters - NOTE: NOT FULLY IMPLEMENTED!
def AutoGuider.AppWin.getLastState | ( | self | ) |
STARTUP / SHUTDOWN / SETTINGS STUFF.
getLastState - Retrieve parameters from saved state file saveStateFile - Save current parameters to saved state file shutdown - Close program in an orderly fashion settings = Pop and service the settings modal dialog
Reads LNAG.conf for last used paramters - NOTE: NOT FULLY IMPLEMENTED!
def AutoGuider.AppWin.imgZin | ( | self | ) |
zoom in image
def AutoGuider.AppWin.imgZin | ( | self | ) |
zoom in image
def AutoGuider.AppWin.imgZin | ( | self | ) |
zoom in image
def AutoGuider.AppWin.imgZout | ( | self | ) |
zoom out image
def AutoGuider.AppWin.imgZout | ( | self | ) |
zoom out image
def AutoGuider.AppWin.imgZout | ( | self | ) |
zoom out image
def AutoGuider.AppWin.initUI | ( | self | ) |
Initializes the GUI, especially attaching widgets to routines
def AutoGuider.AppWin.initUI | ( | self | ) |
Initializes the GUI, especially attaching widgets to routines
def AutoGuider.AppWin.initUI | ( | self | ) |
Initializes the GUI, especially attaching widgets to routines
def AutoGuider.AppWin.initVar | ( | self | ) |
Initializes important variables
def AutoGuider.AppWin.initVar | ( | self | ) |
Initializes important variables
def AutoGuider.AppWin.initVar | ( | self | ) |
Initializes important variables
def AutoGuider.AppWin.lblSE | ( | self | ) |
Utility routine to place o symbols and numbers next to the SE locations. THIS ROUTINE IS CURRENTLY NOT WORKING CORRECTLY
def AutoGuider.AppWin.lblSE | ( | self | ) |
Utility routine to place o symbols and numbers next to the SE locations. THIS ROUTINE IS CURRENTLY NOT WORKING CORRECTLY
def AutoGuider.AppWin.lblSE | ( | self | ) |
Utility routine to place o symbols and numbers next to the SE locations. THIS ROUTINE IS CURRENTLY NOT WORKING CORRECTLY
def AutoGuider.AppWin.lblSpotStars | ( | self | ) |
New version - 4 April 2018 to implement "Blind Mode"
def AutoGuider.AppWin.lblSpotStars | ( | self | ) |
New version - 4 April 2018 to implement "Blind Mode"
def AutoGuider.AppWin.lblSpotStars | ( | self | ) |
New version - 4 April 2018 to implement "Blind Mode"
def AutoGuider.AppWin.loopState | ( | self, | |
state | |||
) |
Stop auto-guiding if the state of the BCU control loop is 'True'.
def AutoGuider.AppWin.loopState | ( | self, | |
state | |||
) |
Stop auto-guiding if the state of the BCU control loop is 'True'.
def AutoGuider.AppWin.loopState | ( | self, | |
state | |||
) |
Stop auto-guiding if the state of the BCU control loop is 'True'.
def AutoGuider.AppWin.mousePress | ( | self, | |
theText | |||
) |
The user has clicked in the AG image. If self.selStar is True, we are in the process of selecting a star for AutoGuiding. If self.selCtr is True, we are clicking on a star for centering.
def AutoGuider.AppWin.mousePress | ( | self, | |
theText | |||
) |
The user has clicked in the AG image. If self.selStar is True, we are in the process of selecting a star for AutoGuiding. If self.selCtr is True, we are clicking on a star for centering.
def AutoGuider.AppWin.mousePress | ( | self, | |
theText | |||
) |
The user has clicked in the AG image. If self.selStar is True, we are in the process of selecting a star for AutoGuiding. If self.selCtr is True, we are clicking on a star for centering.
def AutoGuider.AppWin.movD | ( | self | ) |
Moves the stars / telescope Down.If guiding (self.AG==True), nudge the guide box and center by one pixel.
def AutoGuider.AppWin.movD | ( | self | ) |
Moves the stars / telescope Down.If guiding (self.AG==True), nudge the guide box and center by one pixel.
def AutoGuider.AppWin.movD | ( | self | ) |
Moves the stars / telescope Down.If guiding (self.AG==True), nudge the guide box and center by one pixel.
def AutoGuider.AppWin.movE | ( | self | ) |
def AutoGuider.AppWin.movE | ( | self | ) |
def AutoGuider.AppWin.movE | ( | self | ) |
def AutoGuider.AppWin.movL | ( | self | ) |
Moves the stars / telescope Left. If guiding (self.AG==True), nudge the guide box and center by one pixel.
def AutoGuider.AppWin.movL | ( | self | ) |
Moves the stars / telescope Left. If guiding (self.AG==True), nudge the guide box and center by one pixel.
def AutoGuider.AppWin.movL | ( | self | ) |
Moves the stars / telescope Left. If guiding (self.AG==True), nudge the guide box and center by one pixel.
def AutoGuider.AppWin.movN | ( | self | ) |
def AutoGuider.AppWin.movN | ( | self | ) |
def AutoGuider.AppWin.movN | ( | self | ) |
def AutoGuider.AppWin.movR | ( | self | ) |
Moves the stars / telescope Right. If guiding (self.AG==True), nudge the guide box and center by one pixel.
def AutoGuider.AppWin.movR | ( | self | ) |
Moves the stars / telescope Right. If guiding (self.AG==True), nudge the guide box and center by one pixel.
def AutoGuider.AppWin.movR | ( | self | ) |
Moves the stars / telescope Right. If guiding (self.AG==True), nudge the guide box and center by one pixel.
def AutoGuider.AppWin.movS | ( | self | ) |
def AutoGuider.AppWin.movS | ( | self | ) |
def AutoGuider.AppWin.movS | ( | self | ) |
def AutoGuider.AppWin.movU | ( | self | ) |
Moves the stars / telescope Up. If guiding (self.AG==True), nudge the guide box and center by one pixel.
def AutoGuider.AppWin.movU | ( | self | ) |
Moves the stars / telescope Up. If guiding (self.AG==True), nudge the guide box and center by one pixel.
def AutoGuider.AppWin.movU | ( | self | ) |
Moves the stars / telescope Up. If guiding (self.AG==True), nudge the guide box and center by one pixel.
def AutoGuider.AppWin.movW | ( | self | ) |
def AutoGuider.AppWin.movW | ( | self | ) |
def AutoGuider.AppWin.movW | ( | self | ) |
def AutoGuider.AppWin.newPic | ( | self, | |
timStr | |||
) |
SCREEN STUFF (INCLUDES AUTOGUIDING)
The following routines deal with screen activity. Specifically:
newPic - React to latest picture from monitor thread (including guiding!) mousePress - React to user mouse press (Select Star) in full guide window lblSpotStars - Marks hotspot and (optionally) places circles at ref star locations lblSE - Places cyan circles at SE locations drawNSElAz - Draws North-East and Elevation-Azimuth arrows on full frame drawArrow - Draws a single arrow with the specified properties (called by drawNSElAz) stuffVals - Stuffs current values into GUI logTxt - Log a message to the window (file not implemente) thrdMsg - Log a THREAD message to the window (file not implemente) imgZin - Zoom in large image imgZout - Zoom out large image setIblack - Set black image cut setIwhite - Set white image cut togIauto - Toggle autoscale image (NOT IMPLEMENTED YET)
We have received a signal from the monitor thread that a new image is available. Do the following: 0. Initialize variables (basically short names for AG_Conf stuff) 1. Get the current pointing from the TCS and K-Mirror angle 2. If guiding, determine the correct (RADEC?) guide offset and issue it 3. Display the full-frame. 4. If guiding, show the guide box image, and present further info. 5. Update the rotating buttons and arrows 6. Optionally show the target star locations with plus (+) symbols, and the current SE locations with circles.
def AutoGuider.AppWin.newPic | ( | self, | |
timStr | |||
) |
SCREEN STUFF (INCLUDES AUTOGUIDING)
The following routines deal with screen activity. Specifically:
newPic - React to latest picture from monitor thread (including guiding!) mousePress - React to user mouse press (Select Star) in full guide window lblSpotStars - Marks hotspot and (optionally) places circles at ref star locations lblSE - Places cyan circles at SE locations drawNSElAz - Draws North-East and Elevation-Azimuth arrows on full frame drawArrow - Draws a single arrow with the specified properties (called by drawNSElAz) stuffVals - Stuffs current values into GUI logTxt - Log a message to the window (file not implemente) thrdMsg - Log a THREAD message to the window (file not implemente) imgZin - Zoom in large image imgZout - Zoom out large image setIblack - Set black image cut setIwhite - Set white image cut togIauto - Toggle autoscale image (NOT IMPLEMENTED YET)
We have received a signal from the monitor thread that a new image is available. Do the following: 0. Initialize variables (basically short names for AG_Conf stuff) 1. Get the current pointing from the TCS and K-Mirror angle 2. If guiding, determine the correct (RADEC?) guide offset and issue it 3. Display the full-frame. 4. If guiding, show the guide box image, and present further info. 5. Update the rotating buttons and arrows 6. Optionally show the target star locations with plus (+) symbols, and the current SE locations with circles.
def AutoGuider.AppWin.newPic | ( | self, | |
timStr | |||
) |
SCREEN STUFF (INCLUDES AUTOGUIDING)
The following routines deal with screen activity. Specifically:
newPic - React to latest picture from monitor thread (including guiding!) mousePress - React to user mouse press (Select Star) in full guide window lblSpotStars - Marks hotspot and (optionally) places circles at ref star locations lblSE - Places cyan circles at SE locations drawNSElAz - Draws North-East and Elevation-Azimuth arrows on full frame drawArrow - Draws a single arrow with the specified properties (called by drawNSElAz) stuffVals - Stuffs current values into GUI logTxt - Log a message to the window (file not implemente) thrdMsg - Log a THREAD message to the window (file not implemente) imgZin - Zoom in large image imgZout - Zoom out large image setIblack - Set black image cut setIwhite - Set white image cut togIauto - Toggle autoscale image (NOT IMPLEMENTED YET)
We have received a signal from the monitor thread that a new image is available. Do the following: 0. Initialize variables (basically short names for AG_Conf stuff) 1. Get the current pointing from the TCS and K-Mirror angle 2. If guiding, determine the correct (RADEC?) guide offset and issue it 3. Display the full-frame. 4. If guiding, show the guide box image, and present further info. 5. Update the rotating buttons and arrows 6. Optionally show the target star locations with plus (+) symbols, and the current SE locations with circles.
|
static |
convert ra/dec and alt/az to a string for display
RA | right ascension in radians |
dec | declination in radians |
az | azimuth in radians |
el | elevation in radians |
|
static |
convert ra/dec and alt/az to a string for display
RA | right ascension in radians |
dec | declination in radians |
az | azimuth in radians |
el | elevation in radians |
|
static |
convert ra/dec and alt/az to a string for display
RA | right ascension in radians |
dec | declination in radians |
az | azimuth in radians |
el | elevation in radians |
def AutoGuider.AppWin.pointWrtCat | ( | self | ) |
print an error log if pointing and star catalogu are more than 3 arcmin apart
def AutoGuider.AppWin.pointWrtCat | ( | self | ) |
print an error log if pointing and star catalogu are more than 3 arcmin apart
def AutoGuider.AppWin.pointWrtCat | ( | self | ) |
print an error log if pointing and star catalogu are more than 3 arcmin apart
def AutoGuider.AppWin.rotateButtons | ( | self | ) |
Takes care of rotating the onscreen North-South-East-West buttons to match the view
def AutoGuider.AppWin.rotateButtons | ( | self | ) |
Takes care of rotating the onscreen North-South-East-West buttons to match the view
def AutoGuider.AppWin.rotateButtons | ( | self | ) |
Takes care of rotating the onscreen North-South-East-West buttons to match the view
|
static |
Convert k-mirror and parallactic angle to a string for display.
k-mirror | angle in degrees |
pang | parallactic angle in degrees |
loopfl | status of the BCU loop flag |
|
static |
Convert k-mirror and parallactic angle to a string for display.
k-mirror | angle in degrees |
pang | parallactic angle in degrees |
loopfl | status of the BCU loop flag |
|
static |
Convert k-mirror and parallactic angle to a string for display.
k-mirror | angle in degrees |
pang | parallactic angle in degrees |
loopfl | status of the BCU loop flag |
def AutoGuider.AppWin.saveStateFile | ( | self | ) |
Reads LNAG.conf for last used paramters - NOTE: NOT FULLY IMPLEMENTED!
def AutoGuider.AppWin.saveStateFile | ( | self | ) |
Reads LNAG.conf for last used paramters - NOTE: NOT FULLY IMPLEMENTED!
def AutoGuider.AppWin.saveStateFile | ( | self | ) |
Reads LNAG.conf for last used paramters - NOTE: NOT FULLY IMPLEMENTED!
def AutoGuider.AppWin.setIblack | ( | self | ) |
Set gray cuts.
def AutoGuider.AppWin.setIblack | ( | self | ) |
Set gray cuts.
def AutoGuider.AppWin.setIblack | ( | self | ) |
Set gray cuts.
def AutoGuider.AppWin.setIwhite | ( | self | ) |
set gray level cuts for ADU to display image conversion
def AutoGuider.AppWin.setIwhite | ( | self | ) |
set gray level cuts for ADU to display image conversion
def AutoGuider.AppWin.setIwhite | ( | self | ) |
set gray level cuts for ADU to display image conversion
def AutoGuider.AppWin.settings | ( | self | ) |
pop up GUI to edit the settings
def AutoGuider.AppWin.settings | ( | self | ) |
pop up GUI to edit the settings
def AutoGuider.AppWin.settings | ( | self | ) |
pop up GUI to edit the settings
def AutoGuider.AppWin.shutdown | ( | self | ) |
shutdown sub-threads and close the window(s), terminate.
def AutoGuider.AppWin.shutdown | ( | self | ) |
shutdown sub-threads and close the window(s), terminate.
def AutoGuider.AppWin.shutdown | ( | self | ) |
shutdown sub-threads and close the window(s), terminate.
def AutoGuider.AppWin.startStopAG | ( | self | ) |
Start or Stop Autoguiding - This routine toggles autoguiding, setting the flag self.AG appropriately. It also uses the flag self.selStar to indicate to the MousePress() routine that it should take action.
def AutoGuider.AppWin.startStopAG | ( | self | ) |
Start or Stop Autoguiding - This routine toggles autoguiding, setting the flag self.AG appropriately. It also uses the flag self.selStar to indicate to the MousePress() routine that it should take action.
def AutoGuider.AppWin.startStopAG | ( | self | ) |
Start or Stop Autoguiding - This routine toggles autoguiding, setting the flag self.AG appropriately. It also uses the flag self.selStar to indicate to the MousePress() routine that it should take action.
def AutoGuider.AppWin.startStopMon | ( | self | ) |
Start or stop the autoguiding thread.
If the thread has been nulled (or not yet been created), create and start it. If the thread is running, stop and null it.
Launches a thread which does the actual autoguiding. This allows the GUI to stay "live" and responsive. If the monitor is already running (i.e. self.agT.isRunning() True), stop it.
def AutoGuider.AppWin.startStopMon | ( | self | ) |
Start or stop the autoguiding thread.
If the thread has been nulled (or not yet been created), create and start it. If the thread is running, stop and null it.
Launches a thread which does the actual autoguiding. This allows the GUI to stay "live" and responsive. If the monitor is already running (i.e. self.agT.isRunning() True), stop it.
def AutoGuider.AppWin.startStopMon | ( | self | ) |
Start or stop the autoguiding thread.
If the thread has been nulled (or not yet been created), create and start it. If the thread is running, stop and null it.
Launches a thread which does the actual autoguiding. This allows the GUI to stay "live" and responsive. If the monitor is already running (i.e. self.agT.isRunning() True), stop it.
def AutoGuider.AppWin.stepSlider | ( | self | ) |
The user has changed the size of the offset using the slider. Update AG_Conf.offStp and the screen display.
def AutoGuider.AppWin.stepSlider | ( | self | ) |
The user has changed the size of the offset using the slider. Update AG_Conf.offStp and the screen display.
def AutoGuider.AppWin.stepSlider | ( | self | ) |
The user has changed the size of the offset using the slider. Update AG_Conf.offStp and the screen display.
def AutoGuider.AppWin.stuffVals | ( | self | ) |
Put current values into GUI
def AutoGuider.AppWin.stuffVals | ( | self | ) |
Put current values into GUI
def AutoGuider.AppWin.stuffVals | ( | self | ) |
Put current values into GUI
def AutoGuider.AppWin.thrdMsg | ( | self, | |
msgT, | |||
nLin = True |
|||
) |
Log something to the Main message window, optional blank line.
def AutoGuider.AppWin.thrdMsg | ( | self, | |
msgT, | |||
nLin = True |
|||
) |
Log something to the Main message window, optional blank line.
def AutoGuider.AppWin.thrdMsg | ( | self, | |
msgT, | |||
nLin = True |
|||
) |
Log something to the Main message window, optional blank line.
def AutoGuider.AppWin.togIauto | ( | self | ) |
toggle autoscale flag true<->false
def AutoGuider.AppWin.togIauto | ( | self | ) |
toggle autoscale flag true<->false
def AutoGuider.AppWin.togIauto | ( | self | ) |
toggle autoscale flag true<->false
def AutoGuider.AppWin.togMov | ( | self | ) |
All manual offsets with the paddle buttons allow the user to mov the telescope or the stars by the amount set in the slider. This routine merely toggles the AG_Conf.movStar flag to +/- 1.
def AutoGuider.AppWin.togMov | ( | self | ) |
All manual offsets with the paddle buttons allow the user to mov the telescope or the stars by the amount set in the slider. This routine merely toggles the AG_Conf.movStar flag to +/- 1.
def AutoGuider.AppWin.togMov | ( | self | ) |
All manual offsets with the paddle buttons allow the user to mov the telescope or the stars by the amount set in the slider. This routine merely toggles the AG_Conf.movStar flag to +/- 1.
def AutoGuider.AppWin.updatePos | ( | self | ) |
update pointing and angle strings in the main GUI
def AutoGuider.AppWin.updatePos | ( | self | ) |
update pointing and angle strings in the main GUI
def AutoGuider.AppWin.updatePos | ( | self | ) |
update pointing and angle strings in the main GUI
AutoGuider.AppWin.AG |
AutoGuider.AppWin.agT |
AutoGuider.AppWin.angs |
AutoGuider.AppWin.bYo |
AutoGuider.AppWin.curIzoom |
AutoGuider.AppWin.frmCount |
AutoGuider.AppWin.gSkipFrm |
FLORIAN: The genPixMap command slows things down a lot! If monitoring, skip self.mSkipFrm frames If guiding, skip self.gSkipFrm frames.
AutoGuider.AppWin.iMapFactor |
AutoGuider.AppWin.imgScn |
AutoGuider.AppWin.mon |
AutoGuider.AppWin.mSkipFrm |
AutoGuider.AppWin.Nang |
AutoGuider.AppWin.PA |
AutoGuider.AppWin.Pointing |
AutoGuider.AppWin.pointTim |
AutoGuider.AppWin.selCtr |
AutoGuider.AppWin.selStar |
AutoGuider.AppWin.Settings_modal |
AutoGuider.AppWin.seY |
AutoGuider.AppWin.thScn |
AutoGuider.AppWin.thScnGItems |
AutoGuider.AppWin.ui |
AutoGuider.AppWin.zoomInFactor |
AutoGuider.AppWin.zoomOutFactor |