Changeset 17006 for trunk/FACT++
- Timestamp:
- 08/14/13 13:15:58 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fitsCompressor.cc
r16944 r17006 1583 1583 } 1584 1584 1585 1585 1586 //should we use specific compression on some columns ? 1586 1587 const vector<string> columnsCompression = conf.Vec<string>("compression"); … … 1876 1877 ostringstream wrongChannels; 1877 1878 map<int, int> wrongChannelsMap; 1879 map<int, int> wrongChannelsLastValues; 1878 1880 for (uint32_t i=0;i<1440;i++) 1881 { 1879 1882 wrongChannelsMap[i] = 0; 1883 wrongChannelsLastValues[i] = 0; 1884 } 1880 1885 for (uint32_t i=0;i<inFile.GetNumRows();i++) 1881 1886 { 1882 1887 if (displayText) cout << "\r Row " << i+1 << flush; 1883 inFile.GetNextRow(); 1888 if (!inFile.GetNextRow()) 1889 { 1890 cout << "ERROR: file has less rows than advertized. aborting" << endl; 1891 exit(0); 1892 } 1884 1893 //copy from inFile internal structures to buffer 1885 1894 int32_t count=0; … … 1910 1919 { 1911 1920 wrongChannelsMap[j]++; 1921 wrongChannelsLastValues[j] = thisStartCell; 1912 1922 wrongChannels << j; 1913 1923 } … … 1926 1936 { 1927 1937 if (wrongChannelsMap[i] != 0) 1928 cout << i << "(" << wrongChannelsMap[i] << " ) ";1938 cout << i << "(" << wrongChannelsMap[i] << "|" << wrongChannelsLastValues[i] << ") "; 1929 1939 } 1930 1940 cout << endl; … … 2117 2127 cout << "ERROR: file checksums seems wrong" << endl; 2118 2128 2119 reconstructedFile.close(); 2129 if (!reconstructedFile.close()) 2130 { 2131 cout << "ERROR: disk probably full..." << endl; 2132 return -1; 2133 } 2120 2134 2121 2135 //get original and reconstructed checksum and datasum
Note:
See TracChangeset
for help on using the changeset viewer.