TwiceAsNice  2019-02-18
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
AutoGuider.AppWin Class Reference
Inheritance diagram for AutoGuider.AppWin:
Inheritance graph
Collaboration diagram for AutoGuider.AppWin:
Collaboration graph

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__() [1/3]

def AutoGuider.AppWin.__init__ (   self)

◆ __init__() [2/3]

def AutoGuider.AppWin.__init__ (   self)

◆ __init__() [3/3]

def AutoGuider.AppWin.__init__ (   self)

Member Function Documentation

◆ ctrStarClick() [1/3]

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. !!

◆ ctrStarClick() [2/3]

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. !!

◆ ctrStarClick() [3/3]

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. !!

◆ deleteThScnGitems() [1/3]

def AutoGuider.AppWin.deleteThScnGitems (   self)

remove labels and texts in the thumb nail image of the AG

◆ deleteThScnGitems() [2/3]

def AutoGuider.AppWin.deleteThScnGitems (   self)

remove labels and texts in the thumb nail image of the AG

◆ deleteThScnGitems() [3/3]

def AutoGuider.AppWin.deleteThScnGitems (   self)

remove labels and texts in the thumb nail image of the AG

◆ doCtrStar() [1/3]

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). 

◆ doCtrStar() [2/3]

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). 

◆ doCtrStar() [3/3]

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). 

◆ drawArrow() [1/3]

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.

◆ drawArrow() [2/3]

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.

◆ drawArrow() [3/3]

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.

◆ drawNSElAz() [1/3]

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

◆ drawNSElAz() [2/3]

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

◆ drawNSElAz() [3/3]

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

◆ ds9Starcat() [1/3]

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.

Since
2017-11-21
Author
R. J. Mathar

◆ ds9Starcat() [2/3]

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.

Since
2017-11-21
Author
R. J. Mathar

◆ ds9Starcat() [3/3]

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.

Since
2017-11-21
Author
R. J. Mathar

◆ getLastState() [1/3]

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!

◆ getLastState() [2/3]

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!

◆ getLastState() [3/3]

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!

◆ imgZin() [1/3]

def AutoGuider.AppWin.imgZin (   self)

zoom in image

◆ imgZin() [2/3]

def AutoGuider.AppWin.imgZin (   self)

zoom in image

◆ imgZin() [3/3]

def AutoGuider.AppWin.imgZin (   self)

zoom in image

◆ imgZout() [1/3]

def AutoGuider.AppWin.imgZout (   self)

zoom out image

◆ imgZout() [2/3]

def AutoGuider.AppWin.imgZout (   self)

zoom out image

◆ imgZout() [3/3]

def AutoGuider.AppWin.imgZout (   self)

zoom out image

◆ initUI() [1/3]

def AutoGuider.AppWin.initUI (   self)
Initializes the GUI, especially attaching widgets to routines 

◆ initUI() [2/3]

def AutoGuider.AppWin.initUI (   self)
Initializes the GUI, especially attaching widgets to routines 

◆ initUI() [3/3]

def AutoGuider.AppWin.initUI (   self)
Initializes the GUI, especially attaching widgets to routines 

◆ initVar() [1/3]

def AutoGuider.AppWin.initVar (   self)
Initializes important variables 

◆ initVar() [2/3]

def AutoGuider.AppWin.initVar (   self)
Initializes important variables 

◆ initVar() [3/3]

def AutoGuider.AppWin.initVar (   self)
Initializes important variables 

◆ lblSE() [1/3]

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

◆ lblSE() [2/3]

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

◆ lblSE() [3/3]

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

◆ lblSpotStars() [1/3]

def AutoGuider.AppWin.lblSpotStars (   self)
    New version - 4 April 2018 to implement "Blind Mode"

◆ lblSpotStars() [2/3]

def AutoGuider.AppWin.lblSpotStars (   self)
    New version - 4 April 2018 to implement "Blind Mode"

◆ lblSpotStars() [3/3]

def AutoGuider.AppWin.lblSpotStars (   self)
    New version - 4 April 2018 to implement "Blind Mode"

◆ loopState() [1/3]

def AutoGuider.AppWin.loopState (   self,
  state 
)

Stop auto-guiding if the state of the BCU control loop is 'True'.

◆ loopState() [2/3]

def AutoGuider.AppWin.loopState (   self,
  state 
)

Stop auto-guiding if the state of the BCU control loop is 'True'.

◆ loopState() [3/3]

def AutoGuider.AppWin.loopState (   self,
  state 
)

Stop auto-guiding if the state of the BCU control loop is 'True'.

◆ mousePress() [1/3]

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.

◆ mousePress() [2/3]

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.

◆ mousePress() [3/3]

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.

◆ movD() [1/3]

def AutoGuider.AppWin.movD (   self)
    Moves the stars / telescope Down.If guiding (self.AG==True),
    nudge the guide box and center by one pixel.

◆ movD() [2/3]

def AutoGuider.AppWin.movD (   self)
    Moves the stars / telescope Down.If guiding (self.AG==True),
    nudge the guide box and center by one pixel.

◆ movD() [3/3]

def AutoGuider.AppWin.movD (   self)
    Moves the stars / telescope Down.If guiding (self.AG==True),
    nudge the guide box and center by one pixel.

◆ movE() [1/3]

def AutoGuider.AppWin.movE (   self)

◆ movE() [2/3]

def AutoGuider.AppWin.movE (   self)

◆ movE() [3/3]

def AutoGuider.AppWin.movE (   self)

◆ movL() [1/3]

def AutoGuider.AppWin.movL (   self)
    Moves the stars / telescope Left. If guiding (self.AG==True),
    nudge the guide box and center by one pixel.

◆ movL() [2/3]

def AutoGuider.AppWin.movL (   self)
    Moves the stars / telescope Left. If guiding (self.AG==True),
    nudge the guide box and center by one pixel.

◆ movL() [3/3]

def AutoGuider.AppWin.movL (   self)
    Moves the stars / telescope Left. If guiding (self.AG==True),
    nudge the guide box and center by one pixel.

◆ movN() [1/3]

def AutoGuider.AppWin.movN (   self)

◆ movN() [2/3]

def AutoGuider.AppWin.movN (   self)

◆ movN() [3/3]

def AutoGuider.AppWin.movN (   self)

◆ movR() [1/3]

def AutoGuider.AppWin.movR (   self)
    Moves the stars / telescope Right. If guiding (self.AG==True),
    nudge the guide box and center by one pixel.

◆ movR() [2/3]

def AutoGuider.AppWin.movR (   self)
    Moves the stars / telescope Right. If guiding (self.AG==True),
    nudge the guide box and center by one pixel.

◆ movR() [3/3]

def AutoGuider.AppWin.movR (   self)
    Moves the stars / telescope Right. If guiding (self.AG==True),
    nudge the guide box and center by one pixel.

◆ movS() [1/3]

def AutoGuider.AppWin.movS (   self)

◆ movS() [2/3]

def AutoGuider.AppWin.movS (   self)

◆ movS() [3/3]

def AutoGuider.AppWin.movS (   self)

◆ movU() [1/3]

def AutoGuider.AppWin.movU (   self)
    Moves the stars / telescope Up. If guiding (self.AG==True),
    nudge the guide box and center by one pixel.

◆ movU() [2/3]

def AutoGuider.AppWin.movU (   self)
    Moves the stars / telescope Up. If guiding (self.AG==True),
    nudge the guide box and center by one pixel.

◆ movU() [3/3]

def AutoGuider.AppWin.movU (   self)
    Moves the stars / telescope Up. If guiding (self.AG==True),
    nudge the guide box and center by one pixel.

◆ movW() [1/3]

def AutoGuider.AppWin.movW (   self)

◆ movW() [2/3]

def AutoGuider.AppWin.movW (   self)

◆ movW() [3/3]

def AutoGuider.AppWin.movW (   self)

◆ newPic() [1/3]

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.

◆ newPic() [2/3]

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.

◆ newPic() [3/3]

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.

◆ pointingObj() [1/3]

def AutoGuider.AppWin.pointingObj (   RA,
  dec,
  az,
  el 
)
static

convert ra/dec and alt/az to a string for display

Parameters
RAright ascension in radians
decdeclination in radians
azazimuth in radians
elelevation in radians
Returns
A standard sexagesimal string representation HH:MM:SS +-DD:MM:SS; DD.ddd DD.ddd
Since
2017-11-07

◆ pointingObj() [2/3]

def AutoGuider.AppWin.pointingObj (   RA,
  dec,
  az,
  el 
)
static

convert ra/dec and alt/az to a string for display

Parameters
RAright ascension in radians
decdeclination in radians
azazimuth in radians
elelevation in radians
Returns
A standard sexagesimal string representation HH:MM:SS +-DD:MM:SS; DD.ddd DD.ddd
Since
2017-11-07

◆ pointingObj() [3/3]

def AutoGuider.AppWin.pointingObj (   RA,
  dec,
  az,
  el 
)
static

convert ra/dec and alt/az to a string for display

Parameters
RAright ascension in radians
decdeclination in radians
azazimuth in radians
elelevation in radians
Returns
A standard sexagesimal string representation HH:MM:SS +-DD:MM:SS; DD.ddd DD.ddd
Since
2017-11-07

◆ pointWrtCat() [1/3]

def AutoGuider.AppWin.pointWrtCat (   self)

print an error log if pointing and star catalogu are more than 3 arcmin apart

Since
2017-11-21
Author
R. J. Mathar

◆ pointWrtCat() [2/3]

def AutoGuider.AppWin.pointWrtCat (   self)

print an error log if pointing and star catalogu are more than 3 arcmin apart

Since
2017-11-21
Author
R. J. Mathar

◆ pointWrtCat() [3/3]

def AutoGuider.AppWin.pointWrtCat (   self)

print an error log if pointing and star catalogu are more than 3 arcmin apart

Since
2017-11-21
Author
R. J. Mathar

◆ rotateButtons() [1/3]

def AutoGuider.AppWin.rotateButtons (   self)
    Takes care of rotating the onscreen North-South-East-West buttons to match the view

◆ rotateButtons() [2/3]

def AutoGuider.AppWin.rotateButtons (   self)
    Takes care of rotating the onscreen North-South-East-West buttons to match the view

◆ rotateButtons() [3/3]

def AutoGuider.AppWin.rotateButtons (   self)
    Takes care of rotating the onscreen North-South-East-West buttons to match the view

◆ rotatOpt() [1/3]

def AutoGuider.AppWin.rotatOpt (   kang,
  pang,
  loopfl 
)
static

Convert k-mirror and parallactic angle to a string for display.

Parameters
k-mirrorangle in degrees
pangparallactic angle in degrees
loopflstatus of the BCU loop flag
Returns
A representation K ... deg, parall ... deg, {open|closed}
Since
2017-11-07

◆ rotatOpt() [2/3]

def AutoGuider.AppWin.rotatOpt (   kang,
  pang,
  loopfl 
)
static

Convert k-mirror and parallactic angle to a string for display.

Parameters
k-mirrorangle in degrees
pangparallactic angle in degrees
loopflstatus of the BCU loop flag
Returns
A representation K ... deg, parall ... deg, {open|closed}
Since
2017-11-07

◆ rotatOpt() [3/3]

def AutoGuider.AppWin.rotatOpt (   kang,
  pang,
  loopfl 
)
static

Convert k-mirror and parallactic angle to a string for display.

Parameters
k-mirrorangle in degrees
pangparallactic angle in degrees
loopflstatus of the BCU loop flag
Returns
A representation K ... deg, parall ... deg, {open|closed}
Since
2017-11-07

◆ saveStateFile() [1/3]

def AutoGuider.AppWin.saveStateFile (   self)
Reads LNAG.conf for last used paramters - NOTE: NOT FULLY IMPLEMENTED!

◆ saveStateFile() [2/3]

def AutoGuider.AppWin.saveStateFile (   self)
Reads LNAG.conf for last used paramters - NOTE: NOT FULLY IMPLEMENTED!

◆ saveStateFile() [3/3]

def AutoGuider.AppWin.saveStateFile (   self)
Reads LNAG.conf for last used paramters - NOTE: NOT FULLY IMPLEMENTED!

◆ setIblack() [1/3]

def AutoGuider.AppWin.setIblack (   self)

Set gray cuts.

◆ setIblack() [2/3]

def AutoGuider.AppWin.setIblack (   self)

Set gray cuts.

◆ setIblack() [3/3]

def AutoGuider.AppWin.setIblack (   self)

Set gray cuts.

◆ setIwhite() [1/3]

def AutoGuider.AppWin.setIwhite (   self)

set gray level cuts for ADU to display image conversion

◆ setIwhite() [2/3]

def AutoGuider.AppWin.setIwhite (   self)

set gray level cuts for ADU to display image conversion

◆ setIwhite() [3/3]

def AutoGuider.AppWin.setIwhite (   self)

set gray level cuts for ADU to display image conversion

◆ settings() [1/3]

def AutoGuider.AppWin.settings (   self)

pop up GUI to edit the settings

◆ settings() [2/3]

def AutoGuider.AppWin.settings (   self)

pop up GUI to edit the settings

◆ settings() [3/3]

def AutoGuider.AppWin.settings (   self)

pop up GUI to edit the settings

◆ shutdown() [1/3]

def AutoGuider.AppWin.shutdown (   self)

shutdown sub-threads and close the window(s), terminate.

◆ shutdown() [2/3]

def AutoGuider.AppWin.shutdown (   self)

shutdown sub-threads and close the window(s), terminate.

◆ shutdown() [3/3]

def AutoGuider.AppWin.shutdown (   self)

shutdown sub-threads and close the window(s), terminate.

◆ startStopAG() [1/3]

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.

◆ startStopAG() [2/3]

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.

◆ startStopAG() [3/3]

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.

◆ startStopMon() [1/3]

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.

◆ startStopMon() [2/3]

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.

◆ startStopMon() [3/3]

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.

◆ stepSlider() [1/3]

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.

◆ stepSlider() [2/3]

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.

◆ stepSlider() [3/3]

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.

◆ stuffVals() [1/3]

def AutoGuider.AppWin.stuffVals (   self)
    Put current values into GUI

◆ stuffVals() [2/3]

def AutoGuider.AppWin.stuffVals (   self)
    Put current values into GUI

◆ stuffVals() [3/3]

def AutoGuider.AppWin.stuffVals (   self)
    Put current values into GUI

◆ thrdMsg() [1/3]

def AutoGuider.AppWin.thrdMsg (   self,
  msgT,
  nLin = True 
)

Log something to the Main message window, optional blank line.

◆ thrdMsg() [2/3]

def AutoGuider.AppWin.thrdMsg (   self,
  msgT,
  nLin = True 
)

Log something to the Main message window, optional blank line.

◆ thrdMsg() [3/3]

def AutoGuider.AppWin.thrdMsg (   self,
  msgT,
  nLin = True 
)

Log something to the Main message window, optional blank line.

◆ togIauto() [1/3]

def AutoGuider.AppWin.togIauto (   self)

toggle autoscale flag true<->false

 

◆ togIauto() [2/3]

def AutoGuider.AppWin.togIauto (   self)

toggle autoscale flag true<->false

 

◆ togIauto() [3/3]

def AutoGuider.AppWin.togIauto (   self)

toggle autoscale flag true<->false

 

◆ togMov() [1/3]

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.

◆ togMov() [2/3]

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.

◆ togMov() [3/3]

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.

◆ updatePos() [1/3]

def AutoGuider.AppWin.updatePos (   self)

update pointing and angle strings in the main GUI

◆ updatePos() [2/3]

def AutoGuider.AppWin.updatePos (   self)

update pointing and angle strings in the main GUI

◆ updatePos() [3/3]

def AutoGuider.AppWin.updatePos (   self)

update pointing and angle strings in the main GUI

Member Data Documentation

◆ AG

AutoGuider.AppWin.AG

◆ agT

AutoGuider.AppWin.agT

◆ angs

AutoGuider.AppWin.angs

◆ bYo

AutoGuider.AppWin.bYo

◆ curIzoom

AutoGuider.AppWin.curIzoom

◆ frmCount

AutoGuider.AppWin.frmCount

◆ gSkipFrm

AutoGuider.AppWin.gSkipFrm

FLORIAN: The genPixMap command slows things down a lot! If monitoring, skip self.mSkipFrm frames If guiding, skip self.gSkipFrm frames.

◆ iMapFactor

AutoGuider.AppWin.iMapFactor

◆ imgScn

AutoGuider.AppWin.imgScn

◆ mon

AutoGuider.AppWin.mon

◆ mSkipFrm

AutoGuider.AppWin.mSkipFrm

◆ Nang

AutoGuider.AppWin.Nang

◆ PA

AutoGuider.AppWin.PA

◆ Pointing

AutoGuider.AppWin.Pointing

◆ pointTim

AutoGuider.AppWin.pointTim

◆ selCtr

AutoGuider.AppWin.selCtr

◆ selStar

AutoGuider.AppWin.selStar

◆ Settings_modal

AutoGuider.AppWin.Settings_modal

◆ seY

AutoGuider.AppWin.seY

◆ thScn

AutoGuider.AppWin.thScn

◆ thScnGItems

AutoGuider.AppWin.thScnGItems

◆ ui

AutoGuider.AppWin.ui

◆ zoomInFactor

AutoGuider.AppWin.zoomInFactor

◆ zoomOutFactor

AutoGuider.AppWin.zoomOutFactor

The documentation for this class was generated from the following file: