NCAR / ucomp-pipeline

Data processing pipeline for UCoMP
Other
6 stars 3 forks source link

Implement GBU conditions from Steve's pipeline #95

Open mgalloy opened 1 year ago

mgalloy commented 1 year ago

Steve's implementation is in UCoMP_GBU and the current conditions are:

 1   spar guider control loop is not locked
 2   spar guider intensity below threshhold
 4   background > gbu_max_background
 8   background anamolously low, defined as < gbu_min_background
16   spurious Stokes V signal is above threshhold
32   chi-squared of occulter fit is above threshhold for either camera 0 or 1
64   deviation of the difference of the image with the median is above threshhold

Need:

Produce:

mgalloy commented 1 year ago

The GBU cutoff values are not available for 670, 761, 802, and 991.

mgalloy commented 1 year ago

There are epoch cutoffs for the SGSLOOP value:

if (jd lt 2459423.d) then begin
  sgs_loop = sxpar(header, 'SGSRAZR')
  sgs_volt = sxpar(header, 'SGSDIMS')
endif

Julian date 2459423.0 is July 27, 2021.

mgalloy commented 1 year ago

There are now two GBU checks that I used to do, that are no longer done:

Maybe they should be moved to quality?

mgalloy commented 1 year ago

The last GBU test must be done after all the level 1 processing for all the files and all the previous conditions have been tested for all the other files, where "all" above means at least all the files of the same wave region and number of unique wavelengths.

mgalloy commented 1 year ago

Method:

Need to:

mgalloy commented 1 year ago

See #150 for the fix of SGS keywords before 2021-07-26.