config.py 1.19 KB
Newer Older
Shuai Feng's avatar
Shuai Feng committed
1
2
import numpy as np

Shuai Feng's avatar
Shuai Feng committed
3

Shuai Feng's avatar
Shuai Feng committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class config():
    """
    The configuration of spectral modeling. The default value is used for ETC calculation.

    Parameters
    ----------
    wave_min : float, optional
        Minimum value of wavelength coverage, by default 3500.0A
    wave_max : float, optional
        Minimum value of wavelength coverage, by default 10000.0A
    dlam : float, optional
        Wavelength width of each spaxel, by default 2.0A
    inst_fwhm : float, optional
        Spectral resolution, by default 0.1A
    nx : int, optional
        Number of spaxel in a spatial direction, by default 30
    ny : int, optional
        Number of spaxel in a spatial direction, by default 30
    dpix : float, optional
        Pixel size in the spatial direction, by default 0.2arcsec
    """
Shuai Feng's avatar
Shuai Feng committed
25
    def __init__(self, wave_min=3500.0, wave_max=10000.0,
Shuai Feng's avatar
Shuai Feng committed
26
27
                 dlam=2.0, inst_fwhm=0.1,
                 nx=30, ny=30, dpix=0.2):
Shuai Feng's avatar
Shuai Feng committed
28
29
30
31
32
33
34
35
        self.dlam = dlam
        self.wave = np.arange(wave_min, wave_max, dlam)
        self.wave_min = wave_min
        self.inst_fwhm = inst_fwhm
        self.nx = nx
        self.ny = ny
        self.dpix = dpix
        self.fov_x = nx * dpix
36
        self.fov_y = ny * dpix