Open Cadair opened 2 years ago
@eigenbrot Where's your code for this live?
@Cadair it can be found in the poorly named ApplyTargetCalibration
module in the VBI SV code repo:
https://bitbucket.org/dkistdc/vbi-science-pipeline/src/master/VBI_Pipeline/ApplyTargetCalibration.py
In particular stitch_FitsData
, which is the top-level thingy, and stitch_hdu
, which does the actual moving/stitching of a single camera position.
Note that that code only does the actual stitching and the result will only be as good as the WCS info in the headers. There are other functions to correct any small offsets in the WCS info, but those will/should run as part of the calibration pipeline. In other words, it's probably safe to assume that L1 data will have correct WCS values.
We should have helper functions to make it easy to stitch mosaics together.