EranOfek / AstroPack

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

pipeline severe bug: failure due to generateImageID #520

Closed EranOfek closed 3 hours ago

EranOfek commented 4 hours ago

BitVal(Isub) = Args.FormatSt(Isub).Fun(TmpVal); Unable to perform assignment because the left and right sides have a different number of elements.

EranOfek commented 3 hours ago

Line 68 in imProc.db.generateImageID Args.FormatSt(Isub).Fun(TmpVal); when TmpVal is NaN output is empty (should be 0?) This is likely happens because the 'LEVEL' keyword is not in header. The failure start at line 365 in multiRaw2procCoadd, when generateImageID is called before some of the keywords were updated. Specifically, LEVEL and CROPIID are not populated for raw images.

EranOfek commented 3 hours ago

Fixed by adding:

AI = AI.setKeyVal('LEVEL','raw');
AI = AI.setKeyVal('CROPID',0);

also verified that after processing these keywords are updated.