NCAR / kcor-pipeline

Pipeline code for KCor
Other
3 stars 2 forks source link

Add 2 new FITS keywords to subtraction image header #239

Open jburkepile opened 3 years ago

jburkepile commented 3 years ago

Add 2 new keywords to subtraction FITS image headers to capture the times used to create the foreground and background average images. One keyword will capture the image times used to create the foreground average and the other captures the image times used to make the background average.

The program averages up to 4 images for each average. Logic in the average image program kcor_create_averages.pro can be used as a guide. See the string arrays: imgtime and timestring in that routine.

mgalloy commented 1 week ago

The keywords are AVGTIME0 and AVGTIME1. The subtraction is calculated from an averaged foreground image and a single background image:

subimg = aveimg - bkdimg[*, *, j]

So AVGTIME0 should have one value and AVGTIME1 should have two values with the new cadence.