chihchunhsu/smart

Image Type Keyword Issue

wei-lingfeng opened this issue · 1 comments

It seems NIRSPEC has recently changed the keyword “IMAGETYP” to "IMTYPE". Might need to add a judgment whether "IMTYPE" or "IMAGETYP" is in data.keys().

('flatlamp' in str(data[0].header['IMAGETYP']).lower()) is True: # IMTYPE
if ('flatlampoff' in str(data[0].header['IMAGETYP']).lower()) is True: continue

Should be fixed now.