config.py 485 Bytes
Newer Older
Shuai Feng's avatar
Shuai Feng committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import numpy as np

class instrument():
    
    def __init__(self, wave_min = 3500, wave_max = 10000, 
                 dlam = 1, inst_fwhm = 2.5,
                 nx = 100, ny = 100, dpix = 0.1):

        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
        self.fov_y = ny * dpix