- std::cout << "====================== PhaseEncodingDirection "
- << " neither COL nor ROW (?!?) : [ "
- << currentPhaseEncodingDirection << "]" << std::endl;
- chSessionIndex = "1";
+ if (seriesDescription.find("90", 0) != std::string::npos)
+ chSessionIndex = "1"; // 90 deg -> COL
+ else if (seriesDescription.find("0", 0)!= std::string::npos)
+ chSessionIndex = "2"; // 0 deg -> ROW
+ else
+ {
+ std::cout << "====================== seriesDescription doesn't contain"
+ << " neither '90' nor '0' (?!?) : ["
+ << seriesDescription << "]" << std::endl;
+ chSessionIndex = "1";
+ }
+ }
+ else // for all other 'normal' cases
+ {
+ if (currentPhaseEncodingDirection == "COL" || currentPhaseEncodingDirection == "COL " || currentPhaseEncodingDirection == " COL")
+ chSessionIndex = "1";
+ else if (currentPhaseEncodingDirection == "ROW" || currentPhaseEncodingDirection == "ROW "|| currentPhaseEncodingDirection == " ROW")
+ chSessionIndex = "2";
+ else
+ {
+ std::cout << "====================== PhaseEncodingDirection "
+ << " neither COL nor ROW (?!?) : [ "
+ << currentPhaseEncodingDirection << "]" << std::endl;
+ chSessionIndex = "1";
+ }