DKISTDC / dkist

A Python library for obtaining, processing and interacting with calibrated DKIST data.
https://docs.dkist.nso.edu/projects/python-tools/
BSD 3-Clause "New" or "Revised" License
26 stars 13 forks source link

Add stitching support to TiledDataset #196

Open Cadair opened 2 years ago

Cadair commented 2 years ago

We should have helper functions to make it easy to stitch mosaics together.

Cadair commented 2 years ago

@eigenbrot Where's your code for this live?

eigenbrot commented 2 years ago

@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.