;  Macro to linearly combine (average) the operation-averaged flat
;  images for ROI56 of 2010 May NORMAL MAP data 

;  base directory path for results of flatgen3_sbsp
basedir = '/Users/lites/bruce/hinode/eclipse_gndk_2011/'
;  specify the gaintables
roi56list = [ $
'gaintable_20110720_062120_roi56.save', $
'gaintable_20110721_131715_roi56.save', $
'gaintable_20110723_125235_roi56.save', $
'gaintable_20110724_133033_roi56.save', $
'gaintable_20110726_112732_roi56.save', $
'gaintable_20110727_120302_roi56.save', $
'gaintable_20110729_113938_roi56.save', $
'gaintable_20110729_131814_roi56.save' $
]
roi56list = basedir + roi56list

;  specify the pathnames to the corresponding flat data
flatz = [ $
'goodflats_56_20110720_062120.save', $
'goodflats_56_20110721_131715.save', $
'goodflats_56_20110723_125235.save', $
'goodflats_56_20110724_133033.save', $
'goodflats_56_20110726_112732.save', $
'goodflats_56_20110727_120302.save', $
'goodflats_56_20110729_113938.save', $
'goodflats_56_20110729_131814.save' $
]
flatz = basedir + flatz

;  specify the string for identifying date of flat data
savnam = '_july2011_roi56'

combine_flats_roi56,roi56list,flatz,savnam
