|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +"""Effects for the METIS ifu_cube mode""" |
| 3 | + |
| 4 | +from typing import ClassVar |
| 5 | + |
| 6 | +from ..effects import Effect |
| 7 | +from ...optics.fov import FieldOfView |
| 8 | +from ...utils import from_currsys, get_logger |
| 9 | + |
| 10 | +logger = get_logger(__name__) |
| 11 | + |
| 12 | +class LineSpreadFunction(Effect): |
| 13 | + """ |
| 14 | + Compute and apply line spread function to IFU cube |
| 15 | + """ |
| 16 | + z_order: ClassVar[tuple[int, ...]] = (660,) |
| 17 | + report_plot_include: ClassVar[bool] = True |
| 18 | + report_table_include: ClassVar[bool] = False |
| 19 | + |
| 20 | + def __init__(self, **kwargs): |
| 21 | + super().__init__(**kwargs) |
| 22 | + params = { |
| 23 | + |
| 24 | + } |
| 25 | + self.meta.update(params) |
| 26 | + self.meta.update(kwargs) |
| 27 | + self.meta = from_currsys(self.meta, self.cmds) |
| 28 | + |
| 29 | + self.lsfwidth = None #self.get_width() |
| 30 | + self.kernel = None #self.get_kernel() |
| 31 | + |
| 32 | + def apply_to(self, obj, **kwargs): |
| 33 | + """Apply the LSF""" |
| 34 | + if not isinstance(obj, FieldOfView): |
| 35 | + return obj |
| 36 | + |
| 37 | + lamc = from_currsys("!OBS.wavelen", self.cmds) |
| 38 | + print(">>>>>>>>> Central wavelength:", lamc) |
0 commit comments