Open GermanHydrogen opened 7 months ago
I would suggest a signature def trim(self) -> Image
There would be two possibilities implementing that:
CCDData
, use the trim_image
method, and convert back. This would be the easier possibility, but would add a dependence to ccdproc.
Applying the
TRIMSEC
header to the data, seems like a good candidate for theImage
class. This is currently implemented inProjectedOffsets
: https://github.com/pyobs/pyobs-core/blob/d5f79525842a7ff8cad0e650dd10b867385865de/pyobs/images/processors/offsets/projected.py#L86