Moench mess from developer (#953)

* new moench data structure for offline processing
This commit is contained in:
anberga 2024-09-05 15:32:20 +02:00 committed by GitHub
parent 588d11dedf
commit 15e8c0d9f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -175,13 +175,12 @@ int main(int argc, char *argv[]) {
int cf = 0; int cf = 0;
int numberOfPackets=nrows/8; int numberOfPackets=nrows/8;
#ifdef RECT #ifdef RECT
cout << "Should be rectangular but now it will crash! No data structure defined!" << endl; cout << "Should be rectangular but now it will crash! No data structure defined!" << endl;
#endif #endif
#ifndef MOENCH04 #ifndef MOENCH04
moench03v2Data *decoder = new moench03v2Data(100); moench03v2Data *decoder = new moench03v2Data(nrows/2);
cout << "MOENCH03!" << endl; cout << "MOENCH03!" << endl;
#endif #endif
@ -299,6 +298,7 @@ int main(int argc, char *argv[]) {
double *ped=new double[nx * ny];//, *ped1; double *ped=new double[nx * ny];//, *ped1;
int pos,pos1; int pos,pos1;
//return 0; //return 0;
if (pedfile.find(".raw") != std::string::npos) { if (pedfile.find(".raw") != std::string::npos) {
pos1=pedfile.rfind("/"); pos1=pedfile.rfind("/");
strcpy(froot,pedfile.substr(pos1).c_str()); strcpy(froot,pedfile.substr(pos1).c_str());
@ -337,7 +337,6 @@ int main(int argc, char *argv[]) {
filebin.close(); filebin.close();
while (mt->isBusy()) { while (mt->isBusy()) {
; ;
} }
sprintf(imgfname, "%s/%s_ped.tiff", outdir.c_str(),froot); sprintf(imgfname, "%s/%s_ped.tiff", outdir.c_str(),froot);
@ -463,7 +462,6 @@ int main(int argc, char *argv[]) {
} }
} else { } else {
cout << "bp " << ifr << " " << ff << " " << np << endl; cout << "bp " << ifr << " " << ff << " " << np << endl;
//break;
} }
ff = -1; ff = -1;
} }