TwiceAsNice
2019-02-18
|
Public Member Functions | |
def | __init__ (self) |
def | initVar (self) |
def | initUI (self) |
def | loadTheo (self, eval, chZoom) |
def | loadTh (self) |
def | calcTh (self) |
def | loadImg (self, eval, chZoom) |
def | loadIm (self) |
def | mousePress (self, theText) |
def | shutdown (self) |
def | stuffVals (self) |
def | logTxt (self, msgT, nLin) |
def | getLastState (self) |
def | imgZin (self) |
def | imgZout (self) |
def | psfZin (self) |
def | psfZout (self) |
def | setPblack (self) |
def | setPwhite (self) |
def | setIblack (self) |
def | setIwhite (self) |
def | togPauto (self) |
def | togIauto (self) |
Public Attributes | |
zoomInFactor | |
zoomOutFactor | |
curIzoom | |
curPzoom | |
ui | |
stScn | |
Connect controls. More... | |
thScn | |
imgScn | |
cTh | |
imgAry | |
iMapFactor | |
This is the class for the main application window. The user interface elements are gathered into the variable ui, which is in turn loaded from the file myApp.ui generated by QT Designer.
def Strehlculator.AppWin.__init__ | ( | self | ) |
def Strehlculator.AppWin.calcTh | ( | self | ) |
User wants to generate a theoretical PSF.
def Strehlculator.AppWin.getLastState | ( | self | ) |
def Strehlculator.AppWin.imgZin | ( | self | ) |
def Strehlculator.AppWin.imgZout | ( | self | ) |
def Strehlculator.AppWin.initUI | ( | self | ) |
Initializes the GUI, especially attaching widgets to routines
def Strehlculator.AppWin.initVar | ( | self | ) |
Initializes important variables
def Strehlculator.AppWin.loadIm | ( | self | ) |
Prompts for a science image name and saves to SR_Conf -- DOES NOT LOAD IT --> loadImg does this
def Strehlculator.AppWin.loadImg | ( | self, | |
eval, | |||
chZoom | |||
) |
Loads the image SR_Conf.imNam into the GUI eval is a dummy variable to be parallel with loadTheo chZoom governs whether the image is auto-zoomed (not for gray stretch)
def Strehlculator.AppWin.loadTh | ( | self | ) |
NOTE: This routine gets the theoretical PSF filename only! The routine loadTheo does the actual work (and is also called by the calcTh routine.)
def Strehlculator.AppWin.loadTheo | ( | self, | |
eval, | |||
chZoom | |||
) |
Loads the desired theoretical PSF (SR_Conf.theoPSF) and if eval==True, performs the SR_Metric evaluation. If chZoom is false, the zoom factor is not changed (likely due to the user changing the cuts or autoscale). Note that the astropy info is at: http://docs.astropy.org/en/stable/io/fits/
def Strehlculator.AppWin.logTxt | ( | self, | |
msgT, | |||
nLin | |||
) |
def Strehlculator.AppWin.mousePress | ( | self, | |
theText | |||
) |
The user has clicked on a star. Extract the suitable subarray and evalaute its SR Metric. The size of the subarray comes from SR_Conf.obRad, the outer background radius for photometry.
def Strehlculator.AppWin.psfZin | ( | self | ) |
def Strehlculator.AppWin.psfZout | ( | self | ) |
def Strehlculator.AppWin.setIblack | ( | self | ) |
def Strehlculator.AppWin.setIwhite | ( | self | ) |
def Strehlculator.AppWin.setPblack | ( | self | ) |
def Strehlculator.AppWin.setPwhite | ( | self | ) |
def Strehlculator.AppWin.shutdown | ( | self | ) |
def Strehlculator.AppWin.stuffVals | ( | self | ) |
def Strehlculator.AppWin.togIauto | ( | self | ) |
def Strehlculator.AppWin.togPauto | ( | self | ) |
Strehlculator.AppWin.cTh |
Strehlculator.AppWin.curIzoom |
Strehlculator.AppWin.curPzoom |
Strehlculator.AppWin.iMapFactor |
Strehlculator.AppWin.imgAry |
Strehlculator.AppWin.imgScn |
Strehlculator.AppWin.stScn |
Connect controls.
Numeric Entry for Gray Cuts Set up Graphics Views - Note the imgScn needs mouse input!
Strehlculator.AppWin.thScn |
Strehlculator.AppWin.ui |
Strehlculator.AppWin.zoomInFactor |
Strehlculator.AppWin.zoomOutFactor |