Commit b39f963e authored by Achim Morschhauser's avatar Achim Morschhauser
Browse files

Bugfix for calibrating

parent c7fd6705
......@@ -67,7 +67,7 @@ int Obs_Calibration_Vector::calibrate(data_obs* data){
// Check compatibility with data
if (data->get_Ndata() + data->get_Nsupp() != N){
std::cerr << "Calibration constant do not match data!"
std::cerr << "Calibration constants do not match data!"
<< std::endl;
return(-1);
}
......@@ -78,7 +78,7 @@ int Obs_Calibration_Vector::calibrate(data_obs* data){
data->get_all(datav);
for (int i=0; i<N;i++){
if(datav[i] != MD); datav[i] = datav[i]*scale[i]+offset[i];
if(datav[i] != MD) datav[i] = datav[i]*scale[i]+offset[i];
}
data->set_all(datav);
......
......@@ -41,7 +41,6 @@ data_obs_vector::data_obs_vector(int Nsupp) {
N_supp = Nsupp;
N_data = 3;
MD=-99999;
init();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment