Module to reduce files. More...
Public Member Functions | |
def | __init__ |
Make a Hermes component and initialize variables. | |
def | validateArguments |
check eventual options | |
def | __call__ |
run from here | |
Public Attributes | |
results | |
default value More... | |
nFile | |
maxnFile | |
-m: Number of maximum input files | |
logger | |
mOrdPos | |
Number of the model order positions file to use. | |
ConsoleLogSeverity | |
isOrderOffsetGiven | |
inFile | |
Process FF files. More... | |
dobackground | |
Skip the background measurements. | |
CurrentCop | |
20110112 | |
CurrentSlits | |
isDebug4Cop | |
to use when there are problems with the cop generator | |
ModelOrderPositions | |
step | |
Step in background calculations. More... | |
orderOffset | |
Order Offset. | |
isDebug | |
debug switch | |
ffall | |
thall | |
exposureType | |
exposure type ["OBJ", "TH", "FF" ] | |
firstIndex | |
first index | |
lastIndex | |
last index | |
oneFile | |
Job requested for one particular file. | |
removeCosmics | |
removeCosmics | |
fsafe | |
fcrit | |
fiber | |
we do -ffall OR -thall, not both. More... | |
fflist | |
Do the FF files for fiber. | |
thlist | |
do the TH files for fiber | |
args | |
This argument holds a path or a filename (or both) to the wanted log file. More... | |
fiberMode | |
Static Public Attributes | |
tuple | h = strftime( "%H:%M:%S", localtime ( ) ) |
Begin the Run ####################################. | |
tuple | computebiasprescan = computeBiasPrescan( self.results ) |
tuple | cutPre = cutPrescanRegion( self.results ) |
tuple | subBiasCCD = subtractBiasCCD( self.results ) |
values are normally coming from previous module, otherwise defaults from instrumentModel will be used let's prepare the options | |
tuple | testOptions = subBiasCCD.optionsAreValid( optioncontainer ) |
tuple | convertADU = convertADUtoPhotonUnits( self.results ) |
int | maxOrderOffset = 14 |
tuple | estimateShift = estimateOrderPosition( self.results ) |
list | nightArgs = self.results[ "nightJOBargs" ] |
20110112 | |
tuple | locate = searchOrderPositions( self.results ) |
tuple | modeling = modelSearchedOrderPositions( self.results ) |
optioncontainer.addOption ( "areVirtualEdgeOrdersAdded", False, "Virtual orders at both edges of the CCD" ) More... | |
tuple | bckMeasure = measureBackground( self.results ) |
tuple | modelBckg = modelBackground( self.results ) |
list | modelBackgroundImage = self.results[ "modelBackgroundImage" ] |
list | bfile = files[ 0 ] |
bfile = self.inFile | |
tuple | b1 = os.path.join( self.results [ "DataOutput" ], bfile.replace(' ', '') + "_bck" ) |
tuple | subBckg = subtractBackground( self.results ) |
14 feb 2012 : making graphs does not work when threaded. More... | |
tuple | copmkr = generateCop( self.results ) |
tuple | extOrd = extractOrders( self.results ) |
tuple | h1 = strftime( "%H:%M:%S", localtime ( ) ) |
string | line = "=============================" |
string | nam = "report_run.info" |
tuple | fol = homedir( nam ) |
tuple | fil = open( fol, "w" ) |
Module to reduce files.
Performs computebiasprescan, subtractBias, convertADUtoPhotonUnits, searchOrderPositions, modelSearchOrder, measureBackground, modelBackground, subtractBackground, extractOrders.blacklist.xml
hermes.pipeline.run.absoluteDRS.absoluteDRS.args |
This argument holds a path or a filename (or both) to the wanted log file.
We need global access to args
hermes.pipeline.run.absoluteDRS.absoluteDRS.fiber |
we do -ffall OR -thall, not both.
Fiber is forced to that type only
hermes.pipeline.run.absoluteDRS.absoluteDRS.inFile |
Process FF files.
Process OBJ files.
Process TH files.
|
static |
optioncontainer.addOption ( "areVirtualEdgeOrdersAdded", False, "Virtual orders at both edges of the CCD" )
a negative value here means that the program will try to estimate it
hermes.pipeline.run.absoluteDRS.absoluteDRS.results |
default value
sys.exit()
For the moment, we have to drop all entries in the resultdict but the config file. We may NOT re-read the config file because some options (in nightDRS or any other calling program) may override some paths. First read in a copy of the config file, then create a new results dict. read the config file add other entries that must be found. Value will come from original. keep only those entries in an intermediary dic replace results by the intermediary dic
sys.exit() sys.exit() ## NO ! Do not brutally exit here, this will not stop the calling program. Just return, and the calling program must stop because it does not find the results it expects.
hermes.pipeline.run.absoluteDRS.absoluteDRS.step |
Step in background calculations.
Debug purposes.
|
static |
14 feb 2012 : making graphs does not work when threaded.
We prefer to save as .npy files and nightJob will transform those to graphs. When not launched by nightJob, we do not make those files.