You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1005 B
Matlab
39 lines
1005 B
Matlab
function [I_dark,Fn,QE,Gain,Noise_read,FWC,ADC,Lambda_center,D_aperture,GSD,H_orbit,Tao0,Epslong,M_TDI,Light_input_low,Light_input_classic,Light_input_high,pho_max,pho_L_k,pho_L_b] = readinput_SMR()
|
|
|
|
%打开参数文件读取数据
|
|
fileID = fopen("input_canshu.txt");
|
|
|
|
%指定读取格式
|
|
dataFormat = '%f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f';
|
|
|
|
%跳过参数文件第一行读取数据
|
|
data = textscan(fileID,dataFormat,'HeaderLines',1);
|
|
|
|
%关闭参数文件
|
|
fclose(fileID);
|
|
|
|
I_dark = data{1};
|
|
Fn = data{2};
|
|
QE = data{3};
|
|
Gain = data{4};
|
|
Noise_read = data{5};
|
|
FWC = data{6};
|
|
ADC = data{7};
|
|
Lambda_center = data{8};
|
|
D_aperture = data{9};
|
|
GSD = data{10};
|
|
H_orbit = data{11};
|
|
Tao0 = data{12};
|
|
Epslong = data{13};
|
|
M_TDI = data{14};
|
|
Light_input_low = data{15};
|
|
Light_input_classic = data{16};
|
|
Light_input_high = data{17};
|
|
pho_max = data{18};
|
|
pho_L_k = data{19};
|
|
pho_L_b = data{20};
|
|
|
|
|
|
end
|
|
|