EranOfek / AstroPack

Astronomy & Astrophysics Software Pacakge
Other
16 stars 4 forks source link

modeVar_LogHist - negative variance #471

Closed EranOfek closed 3 weeks ago

EranOfek commented 3 weeks ago

[04180] 2024-07-06 14:53:22.677 > [ERR] last08w: pipeline.DemonLAST try error: Unable to find Var (Var is negative) - need to debug: Mode=11214.497070 Var=-2398836.000000 / funname: modeVar_LogHist @ line: 155 [04180] 2024-07-06 14:53:22.684 > [ERR] last08w: Exception: id= msg=Unable to find Var (Var is negative) - need to debug: Mode=11214.497070 Var=-2398836.000000 [04180] 2024-07-06 14:53:22.686 > [ERR] last08w: stack: Ind=1; FunName=modeVar_LogHist; line=155 [04180] 2024-07-06 14:53:22.688 > [ERR] last08w: stack: Ind=2; FunName=background; line=138 [04180] 2024-07-06 14:53:22.692 > [ERR] last08w: stack: Ind=3; FunName=background; line=131 [04180] 2024-07-06 14:53:22.694 > [ERR] last08w: stack: Ind=4; FunName=singleRaw2proc; line=287 [04180] 2024-07-06 14:53:22.696 > [ERR] last08w: stack: Ind=5; FunName=multiRaw2procCoadd; line=418 [04180] 2024-07-06 14:53:22.699 > [ERR] last08w: stack: Ind=6; FunName=DemonLAST.main; line=2836 [04180] 2024-07-06 14:53:22.701 > [ERR] last08w: stack: Ind=7; FunName=startBatchLASTPipeline; line=31 [04180] 2024-07-06 14:53:22.703 > [ERR] last08w: pipeline.DemonLAST: 20 images moved to failed directory [04180] 2024-07-06 14:53:24.510 > [INF] last08w: pipeline.DemonLAST / pipeline.generic.multiRaw2procCoadd analyzed 20 images starting at 20240706.000732.246

[04180] 2024-07-06 14:53:24.629 > [INF] last08w: pipline.DemonLAST executing pipeline for group 5 - First image: /last08w/data2/archive/LAST.01.08.04/new/LAST.01.08.04_20240706.000052.108_clear_1591_001_001_001_sci_raw_Image_1.fits

EranOfek commented 3 weeks ago

New behavior added to: modeVar_LogHist If Variance is negative, then the mode is estimated from the histogram (without fitting) and the variance is Mode*Factor (Factor default is 1.3). [dev1 52afbf5a]