Commit 166d920f authored by Reza  ANSARI's avatar Reza ANSARI
Browse files

Ajout protection ds P4gvCor::applyGain() si parametres de correction de gain...

Ajout protection ds P4gvCor::applyGain() si parametres de correction de gain G(t) pas defini, Reza 16/01/2018
parent c3f9dc42
......@@ -148,6 +148,12 @@ void P4gvCor::applyGain(TMatrix <complex <float> > & mtx, TimeStamp const & tms
if (mtx.NRows() != (sa_size_t)visi_norm_.size())
throw SzMismatchError("P4gvCor::applyGain(mtx) mtx.NRows()!=TotNbVisib");
if (!Gt_corr_param_defined_ && glob_normalisation_defined_ && fgdonorm) {
for(sa_size_t r=0; r< mtx.NRows(); r++)
mtx.Row(r) *= complex<float>((float)visi_norm_[(size_t)r],0.);
return;
}
if (!Gt_corr_param_defined_) return;
P4AVisiNumEncoder venc;
vector< double > visi_gains(venc.getTotalNbVisibilities());
......
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