pyobs / pyobs-core

Core packages for pyobs
Other
10 stars 3 forks source link

Image TrimSec #342

Open GermanHydrogen opened 7 months ago

GermanHydrogen commented 7 months ago

Applying the TRIMSEC header to the data, seems like a good candidate for the Image class. This is currently implemented in ProjectedOffsets: https://github.com/pyobs/pyobs-core/blob/d5f79525842a7ff8cad0e650dd10b867385865de/pyobs/images/processors/offsets/projected.py#L86

GermanHydrogen commented 7 months ago

I would suggest a signature def trim(self) -> Image There would be two possibilities implementing that:

  1. We write something ourself
  2. We could convert the Image to CCDData, use the trim_image method, and convert back. This would be the easier possibility, but would add a dependence to ccdproc.