;  macro to process flat/dark 2011 eclipse season normal map data 
;  first define input parameters
basedir = '/Users/lites/bruce/hinode/flatdark_july2011/'
flatdirs = basedir + 'flats/' + ['20110720_062120/','20110721_131715/', $
	'20110723_125235/', '20110724_133033/', '20110726_112732/', '20110727_120302/', $
	'20110729_113938/', '20110729_131814/' ]
darkdirs = basedir + 'darks/' + ['20110720_121507/','20110721_125807/', $
	'20110723_122807/', '20110724_130507/', '20110726_110322/', '20110727_114022/', $
	'20110729_111547/', '20110729_125505/' ]
npair = n_elements(flatdirs)
xctrs = fltarr(npair) & xctrs(*) = 0.
yctrs = fltarr(npair) & yctrs(*) = 0.
;  these are all the standard wavelength offset
roistarts = intarr(npair) & roistarts(*) = 56
;  process the flat/dark pairs
process_dkgn,darkdirs,flatdirs,roistarts,xctrs,yctrs
;  to skip selection of good images in case that such selection has 
;  already been carried out, use the following
;process_dkgn,darkdirs,flatdirs,roistarts,xctrs,yctrs,/skipex
