Commit 87732455 authored by Reza  ANSARI's avatar Reza ANSARI
Browse files

Ajout protection pour bornes de tableaux, Reza 26/08/2018

parent a049fe9a
......@@ -173,9 +173,17 @@ int main(int narg, const char* arg[])
dateobs=cfdate;
double racourant = P4Coords::RAFromTimeTU(dateobs);
sa_size_t idxra = ram.getMapIndex(racourant);
if (kt >= timevec.Size()) {
cout << "visamm/ERRORInfo: kt="<<kt<<" >= (timevec.size()="<<timevec.Size()<<") skipping ..."<<endl;
kt++; cnt++;
continue;
}
timevec(kt) = dateobs.TimeDifferenceSeconds(dateobs, datestart);
ravec(kt) = racourant;
if (idxra < 0) continue; // Out of ra-map
if (idxra < 0) {
kt++; cnt++;
continue; // Out of ra-map
}
// updating count map
racntmap(idxra) += (r_4)1.;
// To compute auto-correlation average in each frequency band
......
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