Loading csst_mci_sim/csst_mci_sim.py +4 −4 Original line number Diff line number Diff line Loading @@ -211,10 +211,10 @@ def flux2ill(wave, flux): return E ################################################################ def ill2flux(E): def ill2flux(E,path): # use template from sky_bkg (background_spec_hst.dat) filename = self.information['dir_path']+'MCI_inputData/refs/background_spec_hst.dat' filename = path+'MCI_inputData/refs/background_spec_hst.dat' cat_spec = pd.read_csv(filename, sep='\s+', header=None, comment='#') wave0 = cat_spec[0].values # A spec0 = cat_spec[2].values # erg/s/cm^2/A/arcsec^2 Loading Loading @@ -2012,7 +2012,7 @@ class MCIsimulator(): if angle_earth < 0: earth_e = 0 earthshine_wave0, earthshine_flux0 = ill2flux(earth_e+star_e) earthshine_wave0, earthshine_flux0 = ill2flux(earth_e+star_e,self.information['dir_pah']) # sample as ifs wavelength wave_mci = np.linspace(2500, 11000, 8501) #np.arange(2500, 11000, 1) Loading Loading @@ -2585,7 +2585,7 @@ class MCIsimulator(): if angle_earth < 0: earth_e = 0 earthshine_wave0, earthshine_flux0 = ill2flux(earth_e+star_e) earthshine_wave0, earthshine_flux0 = ill2flux(earth_e+star_e,self.information['dir_path']) # sample as ifs wavelength wave_mci = np.linspace(2500, 11000, 8501) #np.arange(2500, 11000, 1) Loading Loading
csst_mci_sim/csst_mci_sim.py +4 −4 Original line number Diff line number Diff line Loading @@ -211,10 +211,10 @@ def flux2ill(wave, flux): return E ################################################################ def ill2flux(E): def ill2flux(E,path): # use template from sky_bkg (background_spec_hst.dat) filename = self.information['dir_path']+'MCI_inputData/refs/background_spec_hst.dat' filename = path+'MCI_inputData/refs/background_spec_hst.dat' cat_spec = pd.read_csv(filename, sep='\s+', header=None, comment='#') wave0 = cat_spec[0].values # A spec0 = cat_spec[2].values # erg/s/cm^2/A/arcsec^2 Loading Loading @@ -2012,7 +2012,7 @@ class MCIsimulator(): if angle_earth < 0: earth_e = 0 earthshine_wave0, earthshine_flux0 = ill2flux(earth_e+star_e) earthshine_wave0, earthshine_flux0 = ill2flux(earth_e+star_e,self.information['dir_pah']) # sample as ifs wavelength wave_mci = np.linspace(2500, 11000, 8501) #np.arange(2500, 11000, 1) Loading Loading @@ -2585,7 +2585,7 @@ class MCIsimulator(): if angle_earth < 0: earth_e = 0 earthshine_wave0, earthshine_flux0 = ill2flux(earth_e+star_e) earthshine_wave0, earthshine_flux0 = ill2flux(earth_e+star_e,self.information['dir_path']) # sample as ifs wavelength wave_mci = np.linspace(2500, 11000, 8501) #np.arange(2500, 11000, 1) Loading