Loading csst_ifs_gehong/config.py +4 −3 Original line number Diff line number Diff line Loading @@ -3,7 +3,8 @@ import numpy as np class config(): """ The configuration of spectral modeling. The default value is used for ETC calculation. The configuration of spectral modeling. The default value is used for ETC calculation. Parameters ---------- Loading @@ -22,8 +23,8 @@ class config(): dpix : float, optional Pixel size in the spatial direction, by default 0.2arcsec """ def __init__(self, wave_min=3500.0, wave_max=10000.0, dlam=2.0, nx=30, ny=30, dpix=0.2): def __init__(self, wave_min=3500.0, wave_max=10000.0, dlam=2.0, nx=30, ny=30, dpix=0.2): self.dlam = dlam self.wave = np.arange(wave_min, wave_max, dlam) self.wave_min = wave_min Loading csst_ifs_gehong/map2d.py +2 −1 Original line number Diff line number Diff line Loading @@ -8,7 +8,8 @@ from skimage.transform import resize def Sersic2D(x, y, mag=12.0, r_eff=1.0, n=2.0, ellip=0.5, theta=0.0, x_0=0.0, y_0=0.0, pixelscale=0.01): """ Sersic2D: Caculate the surface brightness at given spatial position base on the Sersic model. Sersic2D: Caculate the surface brightness at given spatial position base on the Sersic model. Parameters ---------- Loading Loading
csst_ifs_gehong/config.py +4 −3 Original line number Diff line number Diff line Loading @@ -3,7 +3,8 @@ import numpy as np class config(): """ The configuration of spectral modeling. The default value is used for ETC calculation. The configuration of spectral modeling. The default value is used for ETC calculation. Parameters ---------- Loading @@ -22,8 +23,8 @@ class config(): dpix : float, optional Pixel size in the spatial direction, by default 0.2arcsec """ def __init__(self, wave_min=3500.0, wave_max=10000.0, dlam=2.0, nx=30, ny=30, dpix=0.2): def __init__(self, wave_min=3500.0, wave_max=10000.0, dlam=2.0, nx=30, ny=30, dpix=0.2): self.dlam = dlam self.wave = np.arange(wave_min, wave_max, dlam) self.wave_min = wave_min Loading
csst_ifs_gehong/map2d.py +2 −1 Original line number Diff line number Diff line Loading @@ -8,7 +8,8 @@ from skimage.transform import resize def Sersic2D(x, y, mag=12.0, r_eff=1.0, n=2.0, ellip=0.5, theta=0.0, x_0=0.0, y_0=0.0, pixelscale=0.01): """ Sersic2D: Caculate the surface brightness at given spatial position base on the Sersic model. Sersic2D: Caculate the surface brightness at given spatial position base on the Sersic model. Parameters ---------- Loading